|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Public Member Functions | |
| std::vector< ChatCommand > | GetCommands () const OVERRIDE |
| reset_commandscript () | |
| Public Member Functions inherited from ScriptObject | |
| const std::string & | GetName () const |
| virtual bool | IsDatabaseBound () const |
Static Public Member Functions | |
| static bool | HandleResetAchievementsCommand (ChatHandler *handler, char const *args) |
| static bool | HandleResetAllCommand (ChatHandler *handler, char const *args) |
| static bool | HandleResetHonorCommand (ChatHandler *handler, char const *args) |
| 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 | HandleResetStatsOrLevelHelper (Player *player) |
| static bool | HandleResetTalentsCommand (ChatHandler *handler, char const *args) |
Additional Inherited Members | |
| Protected Member Functions inherited from CommandScript | |
| CommandScript (const char *name) | |
| Protected Member Functions inherited from ScriptObject | |
| ScriptObject (const char *name) | |
| virtual | ~ScriptObject () |
Definition at line 21 of file cs_reset.cpp.
|
inline |
Definition at line 24 of file cs_reset.cpp.
References CommandScript::CommandScript().
|
inlinevirtual |
Implements CommandScript.
Definition at line 26 of file cs_reset.cpp.
References HandleResetAchievementsCommand(), HandleResetAllCommand(), HandleResetHonorCommand(), HandleResetLevelCommand(), HandleResetSpellsCommand(), HandleResetStatsCommand(), HandleResetTalentsCommand(), OVERRIDE, 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 45 of file cs_reset.cpp.
References AchievementMgr< T >::DeleteFromDB(), ChatHandler::extractPlayerTarget(), GUID_LOPART(), and Player::ResetAchievements().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 247 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, HashMapHolder< T >::GetLock(), ChatHandler::GetSession(), LANG_RESETALL_SPELLS, LANG_RESETALL_TALENTS, LANG_RESETALL_UNKNOWN_CASE, ChatHandler::PSendSysMessage(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), PreparedStatement::setUInt16(), SF_SHARED_GUARD, sObjectAccessor, and sWorld.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 60 of file cs_reset.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL, ChatHandler::extractPlayerTarget(), PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_YESTERDAY_HONORABLE_KILLS, Object::SetUInt32Value(), and Player::UpdateAchievementCriteria().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 109 of file cs_reset.cpp.
References Player::_ApplyAllLevelScaleItemMods(), CLASS_DEATH_KNIGHT, CONFIG_START_HEROIC_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(), PLAYER_FIELD_XP, Unit::SetLevel(), Object::SetUInt32Value(), sScriptMgr, and sWorld.
Referenced by GetCommands().
|
inlinestatic |
Definition at line 145 of file cs_reset.cpp.
References AT_LOGIN_RESET_SPELLS, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, ChatHandler::extractPlayerTarget(), ChatHandler::GetNameLink(), WorldSession::GetPlayer(), ChatHandler::GetSession(), Player::GetSession(), GUID_LOPART(), LANG_RESET_SPELLS, LANG_RESET_SPELLS_OFFLINE, LANG_RESET_SPELLS_ONLINE, ChatHandler::PSendSysMessage(), Player::resetSpells(), ChatHandler::SendSysMessage(), PreparedStatement::setUInt16(), and PreparedStatement::setUInt32().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 174 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 73 of file cs_reset.cpp.
References FORM_NONE, Unit::getClass(), Unit::getGender(), Unit::getRace(), Unit::GetShapeshiftForm(), Unit::HasAuraType(), Player::InitDisplayIds(), PLAYER_FIELD_WATCHED_FACTION_INDEX, ChrClassesEntry::powerType, sChrClassesStore, Object::SetByteValue(), Unit::SetClass(), Player::setFactionForRace(), Unit::SetFieldPowerType(), Unit::SetGender(), Unit::SetRace(), Unit::SetShapeshiftForm(), Object::SetUInt32Value(), SF_LOG_ERROR, SPELL_AURA_MOD_SHAPESHIFT, UNIT_BYTE2_FLAG_PVP, UNIT_FIELD_FLAGS, UNIT_FIELD_SHAPESHIFT_FORM, and UNIT_FLAG_PVP_ATTACKABLE.
Referenced by HandleResetLevelCommand(), and HandleResetStatsCommand().
|
inlinestatic |
Definition at line 192 of file cs_reset.cpp.
References AT_LOGIN_NONE, AT_LOGIN_RESET_PET_TALENTS, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, ChatHandler::extractPlayerTarget(), ChatHandler::GetNameLink(), Unit::GetOwner(), WorldSession::GetPlayer(), ChatHandler::getSelectedCreature(), ChatHandler::GetSession(), Player::GetSession(), Object::GetTypeId(), GUID_LOPART(), Pet::IsPermanentPetFor(), Unit::IsPet(), LANG_NO_CHAR_SELECTED, LANG_RESET_PET_TALENTS, LANG_RESET_PET_TALENTS_ONLINE, LANG_RESET_TALENTS, LANG_RESET_TALENTS_OFFLINE, LANG_RESET_TALENTS_ONLINE, ChatHandler::playerLink(), ChatHandler::PSendSysMessage(), Player::ResetTalents(), Pet::resetTalents(), ChatHandler::SendSysMessage(), Player::SendTalentsInfoData(), ChatHandler::SetSentErrorMessage(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), Unit::ToPet(), Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by GetCommands().