40#if TRINITY_COMPILER == TRINITY_COMPILER_GNU
41#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
51 std::span<ChatCommandBuilder const>
GetCommands()
const override
154 pet->SynchronizeLevelWithOwner();
156 sScriptMgr->OnPlayerLevelChanged(target, oldLevel);
165 std::string targetName;
211 std::string targetName;
256 else if (!targetGuid.
IsEmpty())
263 std::string nameLink = handler->
playerLink(targetName);
278 std::string caseName = args;
283 if (caseName ==
"spells")
290 else if (caseName ==
"talents")
311 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__, message__,...)
@ 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 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
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(uint8 index, uint16 value)
void setUInt64(uint8 index, uint64 value)
void ReplaceAllPvpFlags(UnitPVPStateFlags flags)
ShapeshiftForm GetShapeshiftForm() const
void ReplaceAllUnitFlags(UnitFlags flags)
bool HasAuraType(AuraType auraType) const
void SetLevel(uint8 lvl, bool sendUpdate=true)
void SetShapeshiftForm(ShapeshiftForm form)
void SetPowerType(Powers power, bool sendUpdate=true, bool onInit=false)
Player * GetPlayer() const
static bool HandleResetHonorCommand(ChatHandler *handler, char const *args)
std::span< ChatCommandBuilder const > GetCommands() const override
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()
ChatCommandBuilder const [] ChatCommandTable
@ 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