Jump to content
×
×
  • Create New...
  • 0

prevent putting weared equipment into safebox


[Dev]Medo

Question

5 answers to this question

Recommended Posts

  • 0

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
  • 0
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
  • 0
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

  • Love 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.