Jump to content

prevent putting weared equipment into safebox


Recommended Posts

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;
    }

  • Love 1
Link to comment
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.