Jump to content

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

16 hours ago, alin2894 said:

Hello, how is it possible?
P.S: These items are Drop.

Average damage 72%? Change of blocking 71%? (In item_attr is normal bonus)

IMAGE:
277459a097c44d1e94a2e350b1c8feef.png/8efdea0954144440a3bb14200e49ab34.png

 

UNKNOWN_TYPE ?  does it come from?

bonus bug fix

char.cpp open

char szColumns[QUERY_MAX_LEN], szValues[QUERY_MAX_LEN];

find

change the following

            char szColumns[QUERY_MAX_LEN], szValues[QUERY_MAX_LEN];


          int iLen = snprintf(szColumns, sizeof(szColumns), "id,owner_id,pos,count,price,vnum");
            int iUpdateLen = snprintf(szValues, sizeof(szValues), "%u,%u,%d,%u,%u,%u", pkItem->GetID(), GetPlayerID(), (pTable + i)->display_pos, pkItem->GetCount(), (pTable + i)->price, pkItem->GetVnum());

            iLen += snprintf(szColumns + iLen, sizeof(szColumns) - iLen, ",socket0,socket1,socket2");
            iUpdateLen += snprintf(szValues + iUpdateLen, sizeof(szValues) - iUpdateLen, ",%ld,%ld,%ld", pkItem->GetSocket(0), pkItem->GetSocket(1), pkItem->GetSocket(2));

            iLen += snprintf(szColumns + iLen, sizeof(szColumns) - iLen, ",attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue4,attrtype5,attrvalue5,attrtype6,attrvalue6");
            iUpdateLen += snprintf(szValues + iUpdateLen, sizeof(szValues) - iUpdateLen, ",%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",
                pkItem->GetAttributeType(0), pkItem->GetAttributeValue(0),
                pkItem->GetAttributeType(1), pkItem->GetAttributeValue(1),
                pkItem->GetAttributeType(2), pkItem->GetAttributeValue(2),
                pkItem->GetAttributeType(3), pkItem->GetAttributeValue(3),
                pkItem->GetAttributeType(4), pkItem->GetAttributeValue(4),
                pkItem->GetAttributeType(5), pkItem->GetAttributeValue(5),
                pkItem->GetAttributeType(6), pkItem->GetAttributeValue(6));

            char szInsertQuery[QUERY_MAX_LEN];
            snprintf(szInsertQuery, sizeof(szInsertQuery), "INSERT INTO %soffline_shop_item (%s) VALUES (%s)", get_table_postfix(), szColumns, szValues);
            std::auto_ptr<SQLMsg> pMsg(DBManager::instance().DirectQuery(szInsertQuery));
            pkItem->RemoveFromCharacter();

 

 

bonus bug fix

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 13

      Metin2 Closed Beta Content (2003-2004)

    2. 25

      [SRC] Metin2 on LINUX - The Old Metin2 Project

    3. 2

      United/Club/Midgard serverfiles?

    4. 13

      Metin2 Closed Beta Content (2003-2004)

    5. 13

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.