[Dev]Medo 4 Posted December 11, 2016 Share Posted December 11, 2016 can someone tell me how to prevent putting weared equipment into safebox ? kind regards Link to comment Share on other sites More sharing options...
[Dev]Medo 4 Posted December 12, 2016 Author Share Posted December 12, 2016 someone gonna help ? Link to comment Share on other sites More sharing options...
metin2-factory 1000 Posted December 12, 2016 Share Posted December 12, 2016 in input_main.cpp look for: if (pkItem->GetCell() >= INVENTORY_MAX_NUM && IS_SET(pkItem->GetFlag(), ITEM_FLAG_IRREMOVABLE)) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<â°í> â°í·Î ¿Å±æ ¼ö ¾ø´Â ¾ÆÀÌÅÛ ÀÔ´Ï´Ù.")); return; } Add below: if (pkItem->IsEquipped()) { ch->ChatPacket(CHAT_TYPE_INFO, "You must first unequip this item."); return; } 1 Link to comment Share on other sites More sharing options...
[Dev]Medo 4 Posted December 12, 2016 Author Share Posted December 12, 2016 45 minutes ago, metin2-factory said: in input_main.cpp look for: if (pkItem->GetCell() >= INVENTORY_MAX_NUM && IS_SET(pkItem->GetFlag(), ITEM_FLAG_IRREMOVABLE)) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<â°í> â°í·Î ¿Å±æ ¼ö ¾ø´Â ¾ÆÀÌÅÛ ÀÔ´Ï´Ù.")); return; } Add below: if (pkItem->IsEquipped()) { ch->ChatPacket(CHAT_TYPE_INFO, "You must first unequip this item."); return; } i really appreciate your help thank you very much but do you know how to prevent feeding pet equipped items ? Link to comment Share on other sites More sharing options...
metin2-factory 1000 Posted December 12, 2016 Share Posted December 12, 2016 Look for: void CNewPetActor::ItemCubeFeed() below if (!itemxp) return; add: if (itemxp->IsEquipped()) return; 1 Link to comment Share on other sites More sharing options...
[Dev]Medo 4 Posted December 12, 2016 Author Share Posted December 12, 2016 8 minutes ago, metin2-factory said: Look for: void CNewPetActor::ItemCubeFeed() below if (!itemxp) return; add: if (itemxp->IsEquipped()) return; you made my day man thank you <3 1 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