38#if TRINITY_COMPILER == TRINITY_COMPILER_GNU
39#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
49 static std::vector<ChatCommand> resetCommandTable =
59 static std::vector<ChatCommand> commandTable =
158 pet->SynchronizeLevelWithOwner();
160 sScriptMgr->OnPlayerLevelChanged(target, oldLevel);
169 std::string targetName;
216 std::string targetName;
221 if (!*args && creature && creature->
IsPet())
253 else if (!targetGuid.
IsEmpty())
260 std::string nameLink = handler->
playerLink(targetName);
275 std::string caseName = args;
280 if (caseName ==
"spells")
287 else if (caseName ==
"talents")
308 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)
DatabaseWorkerPool< CharacterDatabaseConnection > CharacterDatabase
Accessor to the character database.
@ 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 TC_LOG_ERROR(filterType__,...)
@ AT_LOGIN_RESET_PET_TALENTS
Role Based Access Control related classes definition.
@ SPELL_AURA_MOD_SHAPESHIFT
@ UNIT_FLAG_PLAYER_CONTROLLED
@ PLAYER_FIELD_TODAY_CONTRIBUTION
@ PLAYER_FIELD_YESTERDAY_CONTRIBUTION
@ PLAYER_FIELD_WATCHED_FACTION_INDEX
@ PLAYER_FIELD_LIFETIME_HONORABLE_KILLS
static void DeleteFromDB(ObjectGuid lowguid)
std::string playerLink(std::string const &name) const
WorldSession * GetSession()
virtual std::string GetNameLink() const
Creature * getSelectedCreature()
void SetSentErrorMessage(bool val)
void PSendSysMessage(char const *fmt, Args &&... args)
virtual void SendSysMessage(std::string_view str, bool escapeCharacters=false)
bool extractPlayerTarget(char *args, Player **player, ObjectGuid *player_guid=nullptr, std::string *player_name=nullptr)
std::unordered_map< ObjectGuid, T * > MapType
LowType GetCounter() const
void SetUInt32Value(uint16 index, uint32 value)
static Player * ToPlayer(Object *o)
static void resetTalentsForAllPetsOf(Player *owner, Pet *online_pet=nullptr, bool involuntarily=false)
bool IsPermanentPetFor(Player *owner) const
bool resetTalents(bool involuntarily=false)
void _ApplyAllLevelScaleItemMods(bool apply)
void ResetSpells(bool myClassOnly=false)
void SendTalentsInfoData(bool pet)
void InitTalentForLevel()
void InitGlyphsForLevel()
void UpdateAchievementCriteria(AchievementCriteriaTypes type, uint32 miscValue1=0, uint32 miscValue2=0, WorldObject *ref=nullptr)
WorldSession * GetSession() const
void SetHonorPoints(uint32 value)
void InitTaxiNodesForLevel()
void InitStatsForLevel(bool reapplyMods=false)
bool ResetTalents(bool involuntarily=false)
void SetFactionForRace(uint8 race)
void setUInt16(uint8 index, uint16 value)
void setUInt32(uint8 index, uint32 value)
void ReplaceAllPvpFlags(UnitPVPStateFlags flags)
ShapeshiftForm GetShapeshiftForm() const
void ReplaceAllUnitFlags(UnitFlags flags)
bool HasAuraType(AuraType auraType) const
void SetPowerType(Powers power, bool sendUpdate=true)
void SetLevel(uint8 lvl, bool sendUpdate=true)
void SetShapeshiftForm(ShapeshiftForm form)
Player * GetPlayer() const
std::vector< ChatCommand > GetCommands() const override
static bool HandleResetHonorCommand(ChatHandler *handler, char const *args)
static bool HandleResetAllCommand(ChatHandler *handler, char const *args)
static bool HandleResetTalentsCommand(ChatHandler *handler, char const *args)
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()
@ CONFIG_START_DEATH_KNIGHT_PLAYER_LEVEL
@ CONFIG_START_PLAYER_LEVEL
TC_GAME_API HashMapHolder< Player >::MapType const & GetPlayers()
@ 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