alin2894 14 Posted June 4, 2016 Share Posted June 4, 2016 (edited) 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:/ UNKNOWN_TYPE ? does it come from? Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Texas 4 Posted June 4, 2016 Share Posted June 4, 2016 Something in the DB has changed? Link to comment Share on other sites More sharing options...
alin2894 14 Posted June 5, 2016 Author Share Posted June 5, 2016 #solved. Problem is my offline shop CONFIG :)). (Socket) Link to comment Share on other sites More sharing options...
EmreGokceSnsz 0 Posted June 5, 2016 Share Posted June 5, 2016 (edited) 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:/ 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 August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now