Method Pet:Remove [-] [+]

Removes the Pet from the world.

enum PetSaveMode
{
    PET_SAVE_AS_DELETED         = -1,                        // not saved in fact
    PET_SAVE_AS_CURRENT         =  0,                        // in current slot (with player)
    PET_SAVE_FIRST_STABLE_SLOT  =  1,
    PET_SAVE_LAST_STABLE_SLOT   =  MAX_PET_STABLES,          // last in DB stable slot index (including), all higher have same meaning as PET_SAVE_NOT_IN_SLOT
    PET_SAVE_NOT_IN_SLOT        =  100                       // for avoid conflict with stable size grow will use 100
};

Synopsis

Pet:Remove( mode )

Pet:Remove( mode, returnReagent )

Arguments

PetSaveMode mode

How to handle the removal.

boolean returnReagent (false)

If true, returns reagents used to summon.

Returns

Nothing.

Generated on
©2016 - Eluna Lua Engine