Jump to content

Recommended Posts

  • Active+ Member
This is the hidden content, please

Alternative download links →

This is the hidden content, please

 

A simple and configurable system that allows pets to automatically pick up items and gold for the player.
Supports picking up items directly in inventory, with proper handling of inventory limits.
Fully compatible with party systems, ensuring proper item distribution among party members.
Can be easily configured either for the item used to summon the pet or directly by the pet's vnum.
Compatible with the classic pet system and easily adjustable for new modern pet systems.
When the object is dropped, it is placed directly in the inventory (the pet does not have to be in front of the object to pick it up).

 

  • Metin2 Dev 32
  • Good 13
  • Love 1
  • Love 15
Link to comment
https://metin2.dev/topic/34274-pet-pickup-items/
Share on other sites

  • 2 months later...
  • Active+ Member
On 3/17/2026 at 8:01 PM, Unreconstructed said:

Works perfect ❤️. Thank you. Is there any way to add fillter? I would like to custom for certain items.

A simple and fast solution should look like this:

in char_battle.cpp:

Search:

#ifdef ENABLE_PET_PICKUP_ITEMS
            if (pkAttacker->HasPickupPet())
            {
                pkAttacker->AutoGiveItemInstant(item);
            }
            else
#endif

Change with:

#ifdef ENABLE_PET_PICKUP_ITEMS
            bool bIsFilterItem = (item->GetVnum() == 19 || item->GetVnum() == 71023 || item->GetVnum() == 71029);

            if (pkAttacker->HasPickupPet() && bIsFilterItem)
            {
                pkAttacker->AutoGiveItemInstant(item);
            }
            else
#endif

 

Search:

                    if (ch->HasPickupPet())
                    {
                        ch->AutoGiveItemInstant(item);
                    }
                    else

Change with:

                    bool bIsFilterItem = (item->GetVnum() == 19 || item->GetVnum() == 71023 || item->GetVnum() == 71029);

                    if (ch->HasPickupPet() && bIsFilterItem)
                    {
                        ch->AutoGiveItemInstant(item);
                    }
                    else



Change these vnums, or you cand add types, or subtypes or whatever you want.

bool bIsFilterItem = (item->GetVnum() == 19 || item->GetVnum() == 71023 || item->GetVnum() == 71029);



If you want to disable the auto gold pickup, search:

#ifdef ENABLE_PET_PICKUP_ITEMS
    if (pkAttacker->HasPickupPet())
    {
        isAutoLoot = true;
    }
#endif

And change isAutoLoot to false:

    isAutoLoot = false;

 

  • Love 1
Link to comment
https://metin2.dev/topic/34274-pet-pickup-items/#findComment-174893
Share on other sites

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.