![]() |
TrinityCore
|
Inheritance diagram for reset_commandscript:Public Member Functions | |
| reset_commandscript () | |
| std::vector< ChatCommand > | GetCommands () const override |
Public Member Functions inherited from ScriptObject | |
| std::string const & | GetName () const |
Static Public Member Functions | |
| static bool | HandleResetAchievementsCommand (ChatHandler *handler, char const *args) |
| static bool | HandleResetHonorCommand (ChatHandler *handler, char const *args) |
| static bool | HandleResetStatsOrLevelHelper (Player *player) |
| static bool | HandleResetLevelCommand (ChatHandler *handler, char const *args) |
| static bool | HandleResetSpellsCommand (ChatHandler *handler, char const *args) |
| static bool | HandleResetStatsCommand (ChatHandler *handler, char const *args) |
| static bool | HandleResetTalentsCommand (ChatHandler *handler, char const *args) |
| static bool | HandleResetAllCommand (ChatHandler *handler, char const *args) |
Additional Inherited Members | |
Protected Member Functions inherited from CommandScript | |
| CommandScript (char const *name) | |
Protected Member Functions inherited from ScriptObject | |
| ScriptObject (char const *name) | |
| virtual | ~ScriptObject () |
Definition at line 42 of file cs_reset.cpp.
|
inline |
Definition at line 45 of file cs_reset.cpp.
|
inlineoverridevirtual |
Implements CommandScript.
Definition at line 47 of file cs_reset.cpp.
References HandleResetAchievementsCommand(), HandleResetAllCommand(), HandleResetHonorCommand(), HandleResetLevelCommand(), HandleResetSpellsCommand(), HandleResetStatsCommand(), HandleResetTalentsCommand(), rbac::RBAC_PERM_COMMAND_RESET, rbac::RBAC_PERM_COMMAND_RESET_ACHIEVEMENTS, rbac::RBAC_PERM_COMMAND_RESET_ALL, rbac::RBAC_PERM_COMMAND_RESET_HONOR, rbac::RBAC_PERM_COMMAND_RESET_LEVEL, rbac::RBAC_PERM_COMMAND_RESET_SPELLS, rbac::RBAC_PERM_COMMAND_RESET_STATS, and rbac::RBAC_PERM_COMMAND_RESET_TALENTS.
|
inlinestatic |
Definition at line 66 of file cs_reset.cpp.
References AchievementMgr::DeleteFromDB(), ChatHandler::extractPlayerTarget(), and Player::ResetAchievements().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 269 of file cs_reset.cpp.
References AT_LOGIN_RESET_PET_TALENTS, AT_LOGIN_RESET_SPELLS, AT_LOGIN_RESET_TALENTS, CHAR_UPD_ALL_AT_LOGIN_FLAGS, CharacterDatabase, ObjectAccessor::GetPlayers(), ChatHandler::GetSession(), LANG_RESETALL_SPELLS, LANG_RESETALL_TALENTS, LANG_RESETALL_UNKNOWN_CASE, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), PreparedStatementBase::setUInt16(), and sWorld.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 81 of file cs_reset.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL, ChatHandler::extractPlayerTarget(), PLAYER_FIELD_KILLS, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, PLAYER_FIELD_YESTERDAY_CONTRIBUTION, Player::SetHonorPoints(), Object::SetUInt32Value(), and Player::UpdateAchievementCriteria().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 128 of file cs_reset.cpp.
References Player::_ApplyAllLevelScaleItemMods(), CLASS_DEATH_KNIGHT, CONFIG_START_DEATH_KNIGHT_PLAYER_LEVEL, CONFIG_START_PLAYER_LEVEL, ChatHandler::extractPlayerTarget(), Unit::GetClass(), Unit::GetLevel(), Player::GetPet(), HandleResetStatsOrLevelHelper(), Player::InitGlyphsForLevel(), Player::InitRunes(), Player::InitStatsForLevel(), Player::InitTalentForLevel(), Player::InitTaxiNodesForLevel(), Unit::SetLevel(), Player::SetXP(), sScriptMgr, and sWorld.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 164 of file cs_reset.cpp.
References AT_LOGIN_RESET_SPELLS, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, ChatHandler::extractPlayerTarget(), ObjectGuid::GetCounter(), ChatHandler::GetNameLink(), WorldSession::GetPlayer(), ChatHandler::GetSession(), Player::GetSession(), LANG_RESET_SPELLS, LANG_RESET_SPELLS_OFFLINE, LANG_RESET_SPELLS_ONLINE, ChatHandler::PSendSysMessage(), Player::ResetSpells(), ChatHandler::SendSysMessage(), PreparedStatementBase::setUInt16(), and PreparedStatementBase::setUInt32().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 193 of file cs_reset.cpp.
References ChatHandler::extractPlayerTarget(), HandleResetStatsOrLevelHelper(), Player::InitGlyphsForLevel(), Player::InitRunes(), Player::InitStatsForLevel(), Player::InitTalentForLevel(), and Player::InitTaxiNodesForLevel().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 97 of file cs_reset.cpp.
References ChrClassesEntry::DisplayPower, FORM_NONE, Unit::GetClass(), Unit::GetRace(), Unit::GetShapeshiftForm(), Unit::HasAuraType(), Player::InitDisplayIds(), PLAYER_FIELD_WATCHED_FACTION_INDEX, Unit::ReplaceAllPvpFlags(), Unit::ReplaceAllUnitFlags(), sChrClassesStore, Player::SetFactionForRace(), Unit::SetPowerType(), Unit::SetShapeshiftForm(), Object::SetUInt32Value(), SPELL_AURA_MOD_SHAPESHIFT, TC_LOG_ERROR, UNIT_BYTE2_FLAG_PVP, and UNIT_FLAG_PLAYER_CONTROLLED.
Referenced by HandleResetLevelCommand(), and HandleResetStatsCommand().
|
inlinestatic |
Definition at line 211 of file cs_reset.cpp.
References AT_LOGIN_NONE, AT_LOGIN_RESET_PET_TALENTS, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, ChatHandler::extractPlayerTarget(), ObjectGuid::GetCounter(), ChatHandler::GetNameLink(), WorldObject::GetOwner(), Player::GetPet(), WorldSession::GetPlayer(), ChatHandler::getSelectedCreature(), ChatHandler::GetSession(), Object::GetTypeId(), ObjectGuid::IsEmpty(), Pet::IsPermanentPetFor(), Unit::IsPet(), LANG_NO_CHAR_SELECTED, LANG_RESET_PET_TALENTS_ONLINE, LANG_RESET_TALENTS_OFFLINE, LANG_RESET_TALENTS_ONLINE, ChatHandler::playerLink(), ChatHandler::PSendSysMessage(), Pet::resetTalents(), Player::ResetTalents(), Pet::resetTalentsForAllPetsOf(), ChatHandler::SendSysMessage(), Player::SendTalentsInfoData(), ChatHandler::SetSentErrorMessage(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), Unit::ToPet(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by GetCommands().