stiflonda 1 Posted March 16, 2015 Share Posted March 16, 2015 (edited) Hi guys, im have problem with 6/7 bonus in source. char_item.cpp case 71051 : // ÁřŔç°ˇ { // ŔŻ·´, ˝Ě°ˇĆú, şŁĆ®ł˛ ÁřŔç°ˇ »çżë±ÝÁö if (LC_IsSingapore() || LC_IsVietnam()) return false; LPITEM item2; if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell))) return false; if (item2->IsExchanging() == true) return false; if (item2->GetAttributeSetIndex() == -1) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ĽÓĽşŔ» şŻ°ćÇŇ Ľö ľř´Â ľĆŔĚĹŰŔÔ´Ď´Ů.")); return false; } if (item2->AddRareAttribute() == true) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Ľş°řŔűŔ¸·Î ĽÓĽşŔĚ Ăß°ˇ µÇľú˝Ŕ´Ď´Ů")); int iAddedIdx = item2->GetRareAttrCount() + 4; char buf[21]; snprintf(buf, sizeof(buf), "%u", item2->GetID()); LogManager::instance().ItemLog( GetPlayerID(), item2->GetAttributeType(iAddedIdx), item2->GetAttributeValue(iAddedIdx), item->GetID(), "ADD_RARE_ATTR", buf, GetDesc()->GetHostName(), item->GetOriginalVnum()); item->SetCount(item->GetCount() - 1); } else { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("´ő ŔĚ»ó ŔĚ ľĆŔĚĹŰŔ¸·Î ĽÓĽşŔ» Ăß°ˇÇŇ Ľö ľř˝Ŕ´Ď´Ů")); } } break; case 71052 : // ÁřŔç°ć { // ŔŻ·´, ˝Ě°ˇĆú, şŁĆ®ł˛ ÁřŔç°ˇ »çżë±ÝÁö if (LC_IsSingapore() || LC_IsVietnam()) return false; LPITEM item2; if (!IsValidItemPosition(DestCell) || !(item2 = GetItem(DestCell))) return false; if (item2->IsExchanging() == true) return false; if (item2->GetAttributeSetIndex() == -1) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ĽÓĽşŔ» şŻ°ćÇŇ Ľö ľř´Â ľĆŔĚĹŰŔÔ´Ď´Ů.")); return false; } if (item2->ChangeRareAttribute() == true) { char buf[21]; snprintf(buf, sizeof(buf), "%u", item2->GetID()); LogManager::instance().ItemLog(this, item, "CHANGE_RARE_ATTR", buf); item->SetCount(item->GetCount() - 1); } else { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("şŻ°ć ˝ĂĹł ĽÓĽşŔĚ ľř˝Ŕ´Ď´Ů")); } } break; Problem: I converted item proto server > client. Query 6/7 INSERT INTO `item_proto` VALUES ('71051', 'A^A~ˇ¤A”A§Â°Ë‡AźA„Ä1Â', '6-7 Bon', '3', '10', '0', '1', '33152', '24576', '0', '', '30000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '-1', '-1', '-1', '-1', '-1', '-1', '0', '0', '0'); INSERT INTO `item_proto` VALUES ('71052', 'A^A~ˇ¤A”A§Â°Ä‡AźA„Ä1Â', '6-7 Bon', '3', '10', '0', '1', '33152', '24576', '0', '', '3000000', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '-1', '-1', '-1', '-1', '-1', '-1', '0', '0', '0'); Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
metin2team 766 Posted March 16, 2015 Share Posted March 16, 2015 // ŔŻ·´, ˝Ě°ˇĆú, şŁĆ®ł˛ ÁřŔç°ˇ »çżë±ÝÁö if (LC_IsSingapore() || LC_IsVietnam()) return false; remove that. Link to comment Share on other sites More sharing options...
Shang 369 Posted March 16, 2015 Share Posted March 16, 2015 // ŔŻ·´, ˝Ě°ˇĆú, şŁĆ®ł˛ ÁřŔç°ˇ »çżë±ÝÁö if (LC_IsSingapore() || LC_IsVietnam()) return false; remove that. Still the same error. Link to comment Share on other sites More sharing options...
dukaibalu1 39 Posted March 16, 2015 Share Posted March 16, 2015 Clientside: Type: 3 Subtype: 22 Serverside: Type: 3 Subtype: 10 2 Link to comment Share on other sites More sharing options...
Shang 369 Posted March 16, 2015 Share Posted March 16, 2015 Clientside: Type: 3 Subtype: 22 Serverside: Type: 3 Subtype: 10 Works, thanks. Link to comment Share on other sites More sharing options...
eduwaalker 0 Posted December 20, 2017 Share Posted December 20, 2017 On 16/03/2015 at 12:14 PM, dukaibalu1 said: Clientside: Type: 3 Subtype: 22 Serverside: Type: 3 Subtype: 10 Where do you put it there? 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