Jump to content

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
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 ?

Look for:

void CNewPetActor::ItemCubeFeed()

 

below 

if (!itemxp)
                return;

add:
            if (itemxp->IsEquipped())
                return;

  • Love 1
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

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.