28 static std::vector<ChatCommand> resetCommandTable =
38 static std::vector<ChatCommand> commandTable =
138 pet->SynchronizeLevelWithOwner();
140 sScriptMgr->OnPlayerLevelChanged(target, oldLevel);
149 std::string targetName;
196 std::string targetName;
201 if (!*args && creature && creature->
IsPet())
237 std::string nameLink = handler->
playerLink(targetName);
252 std::string caseName = args;
257 if (caseName ==
"spells")
264 else if (caseName ==
"talents")
285 itr->second->SetAtLoginFlag(atLogin);
@ CHAR_UPD_ADD_AT_LOGIN_FLAG
@ CHAR_UPD_ALL_AT_LOGIN_FLAGS
@ ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL
DBCStorage< ChrClassesEntry > sChrClassesStore(ChrClassesEntryfmt)
@ LANG_RESET_SPELLS_ONLINE
@ LANG_RESET_TALENTS_OFFLINE
@ LANG_RESET_SPELLS_OFFLINE
@ LANG_RESETALL_UNKNOWN_CASE
@ LANG_RESET_TALENTS_ONLINE
@ LANG_RESET_PET_TALENTS_ONLINE
#define SF_LOG_ERROR(filterType__,...)
uint32 GUID_LOPART(uint64 x)
@ AT_LOGIN_RESET_PET_TALENTS
@ SPELL_AURA_MOD_SHAPESHIFT
@ UNIT_FLAG_PVP_ATTACKABLE
@ UNIT_FIELD_SHAPESHIFT_FORM
@ PLAYER_FIELD_YESTERDAY_HONORABLE_KILLS
@ PLAYER_FIELD_WATCHED_FACTION_INDEX
@ PLAYER_FIELD_LIFETIME_HONORABLE_KILLS
static void DeleteFromDB(uint32 lowguid)
virtual std::string GetNameLink() const
std::string playerLink(std::string const &name) const
WorldSession * GetSession()
Creature * getSelectedCreature()
void PSendSysMessage(const char *format,...) ATTR_PRINTF(2
void SetSentErrorMessage(bool val)
bool extractPlayerTarget(char *args, Player **player, uint64 *player_guid=NULL, std::string *player_name=NULL)
virtual void SendSysMessage(const char *str)
CommandScript(const char *name)
static SF_SHARED_MUTEX * GetLock()
UNORDERED_MAP< uint64, T * > MapType
void SetByteValue(uint16 index, uint8 offset, uint8 value)
void SetUInt32Value(uint16 index, uint32 value)
bool IsPermanentPetFor(Player *owner) const
void setFactionForRace(uint8 race)
void _ApplyAllLevelScaleItemMods(bool apply)
void InitTalentForLevel()
void InitGlyphsForLevel()
void SendTalentsInfoData()
WorldSession * GetSession() const
bool ResetTalents(bool noCost=false, bool resetTalents=true, bool resetSpecialization=true)
void InitTaxiNodesForLevel()
void InitStatsForLevel(bool reapplyMods=false)
void UpdateAchievementCriteria(AchievementCriteriaTypes type, uint64 miscValue1=0, uint64 miscValue2=0, uint64 miscValue3=0, Unit *unit=NULL)
void resetSpells(bool myClassOnly=false)
void setUInt16(const uint8 index, const uint16 value)
void setUInt32(const uint8 index, const uint32 value)
ShapeshiftForm GetShapeshiftForm() const
void SetClass(uint8 newClass)
void SetGender(uint8 gender)
bool HasAuraType(AuraType auraType) const
void SetFieldPowerType(uint32 powerType)
void SetShapeshiftForm(ShapeshiftForm form)
Player * GetPlayer() const
static bool HandleResetHonorCommand(ChatHandler *handler, char const *args)
static bool HandleResetAllCommand(ChatHandler *handler, char const *args)
static bool HandleResetTalentsCommand(ChatHandler *handler, char const *args)
std::vector< ChatCommand > GetCommands() const OVERRIDE
static bool HandleResetStatsCommand(ChatHandler *handler, char const *args)
static bool HandleResetStatsOrLevelHelper(Player *player)
static bool HandleResetLevelCommand(ChatHandler *handler, char const *args)
static bool HandleResetAchievementsCommand(ChatHandler *handler, char const *args)
static bool HandleResetSpellsCommand(ChatHandler *handler, char const *args)
void AddSC_reset_commandscript()
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
@ CONFIG_START_HEROIC_PLAYER_LEVEL
@ CONFIG_START_PLAYER_LEVEL
@ RBAC_PERM_COMMAND_RESET_STATS
@ RBAC_PERM_COMMAND_RESET_LEVEL
@ RBAC_PERM_COMMAND_RESET_HONOR
@ RBAC_PERM_COMMAND_RESET_ALL
@ RBAC_PERM_COMMAND_RESET
@ RBAC_PERM_COMMAND_RESET_SPELLS
@ RBAC_PERM_COMMAND_RESET_TALENTS
@ RBAC_PERM_COMMAND_RESET_ACHIEVEMENTS