40#if TRINITY_COMPILER == TRINITY_COMPILER_GNU
41#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
51 static std::vector<ChatCommand> resetCommandTable =
61 static std::vector<ChatCommand> commandTable =
152 pet->SynchronizeLevelWithOwner();
154 sScriptMgr->OnPlayerLevelChanged(target, oldLevel);
163 std::string targetName;
209 std::string targetName;
254 else if (!targetGuid.
IsEmpty())
261 std::string nameLink = handler->
playerLink(targetName);
276 std::string caseName = args;
281 if (caseName ==
"spells")
288 else if (caseName ==
"talents")
309 itr->second->SetAtLoginFlag(atLogin);
@ CHAR_UPD_ADD_AT_LOGIN_FLAG
@ CHAR_UPD_ALL_AT_LOGIN_FLAGS
DB2Storage< ChrClassesEntry > sChrClassesStore("ChrClasses.db2", &ChrClassesLoadInfo::Instance)
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
#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
std::string playerLink(std::string const &name) const
WorldSession * GetSession()
virtual std::string GetNameLink() const
void PSendSysMessage(const char *fmt, Args &&... args)
void SetSentErrorMessage(bool val)
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
static void DeleteFromDB(ObjectGuid const &guid)
uint8 GetStartLevel(uint8 race, uint8 playerClass, Optional< int32 > characterTemplateId) const
void SetWatchedFactionIndex(int32 index)
void _ApplyAllLevelScaleItemMods(bool apply)
void ResetSpells(bool myClassOnly=false)
void InitTalentForLevel()
void SendTalentsInfoData()
WorldSession * GetSession() const
void ResetTalentSpecialization()
void UpdateCriteria(CriteriaType type, uint64 miscValue1=0, uint64 miscValue2=0, uint64 miscValue3=0, WorldObject *ref=nullptr)
void InitTaxiNodesForLevel()
void InitStatsForLevel(bool reapplyMods=false)
void SetFactionForRace(uint8 race)
bool ResetTalents(bool noCost=false)
void setUInt16(const uint8 index, const uint16 value)
void setUInt64(const uint8 index, const uint64 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()
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