20 static std::vector<ChatCommand> petCommandTable =
27 static std::vector<ChatCommand> commandTable =
47 if (!creatrueTemplate->
family)
49 handler->
PSendSysMessage(
"This creature cannot be tamed. (family id: 0).");
79 SF_LOG_ERROR(
"misc",
"InitStatsForLevel() in EffectTameCreature failed! Pet deleted.");
122 if (!spellId || !
sSpellMgr->GetSpellInfo(spellId))
@ LANG_COMMAND_SPELL_BROKEN
#define SF_LOG_ERROR(filterType__,...)
@ UNIT_FIELD_FACTION_TEMPLATE
WorldSession * GetSession()
Creature * getSelectedCreature()
uint32 extractSpellIdFromLink(char *text)
void PSendSysMessage(const char *format,...) ATTR_PRINTF(2
void SetSentErrorMessage(bool val)
CommandScript(const char *name)
void RemoveCorpse(bool setSpawnTime=true)
CreatureTemplate const * GetCreatureTemplate() const
void setDeathState(DeathState s) OVERRIDE
bool InitStatsForLevel(uint8 level)
void SetUInt32Value(uint16 index, uint32 value)
void SetUInt64Value(uint16 index, uint64 value)
void SavePetToDB(PetSaveMode mode)
bool removeSpell(uint32 spell_id, bool learn_prev, bool clear_ab=true)
bool CreateBaseAtCreature(Creature *creature)
bool HasSpell(uint32 spell) const
void InitPetCreateSpells()
bool learnSpell(uint32 spell_id)
void PetSpellInitialize()
static bool IsSpellValid(SpellInfo const *spellInfo, Player *player=NULL, bool msg=true)
Some checks for spells, to prevent adding deprecated/broken spells for trainers, spell book,...
void SetMinion(Minion *minion, bool apply)
uint32 getFaction() const
uint64 GetPetGUID() const
void SetHealth(uint32 val)
CharmInfo * GetCharmInfo()
Player * GetPlayer() const
std::vector< ChatCommand > GetCommands() const OVERRIDE
static bool HandlePetLearnCommand(ChatHandler *handler, char const *args)
static bool HandlePetUnlearnCommand(ChatHandler *handler, char const *args)
static bool HandlePetCreateCommand(ChatHandler *handler, char const *)
void AddSC_pet_commandscript()
@ RBAC_PERM_COMMAND_PET_LEARN
@ RBAC_PERM_COMMAND_PET_CREATE
@ RBAC_PERM_COMMAND_PET_UNLEARN
void SetPetNumber(uint32 petnumber, bool statwindow)