AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Public Member Functions | |
reset_commandscript () | |
ChatCommandTable | GetCommands () const override |
virtual std::vector< Acore::ChatCommands::ChatCommandBuilder > | GetCommands () const =0 |
Public Member Functions inherited from ScriptObject | |
virtual bool | IsDatabaseBound () const |
virtual bool | isAfterLoadScript () const |
virtual void | checkValidity () |
const std::string & | GetName () const |
uint16 | GetTotalAvailableHooks () |
Static Private Member Functions | |
static Player * | GetPlayerFromIdentifierOrSelectedTarget (ChatHandler *handler, Optional< PlayerIdentifier > target) |
static int16 | ResetItemsEquipped (Player *playerTarget) |
static int16 | ResetItemsInBags (Player *playerTarget) |
static int16 | ResetItemsInBank (Player *playerTarget) |
static int16 | ResetItemsInKeyring (Player *playerTarget) |
static int16 | ResetItemsInCurrenciesList (Player *playerTarget) |
static int16 | ResetItemsInVendorBuyBackTab (Player *playerTarget) |
static int16 | ResetItemsDeleteStandardBags (Player *playerTarget) |
static int16 | ResetItemsDeleteBankBags (Player *playerTarget) |
Additional Inherited Members | |
Protected Member Functions inherited from CommandScript | |
CommandScript (const char *name) | |
Protected Member Functions inherited from ScriptObject | |
ScriptObject (const char *name, uint16 totalAvailableHooks=0) | |
virtual | ~ScriptObject ()=default |
|
inline |
|
inlineoverridevirtual |
Implements CommandScript.
References HandleResetAchievementsCommand(), HandleResetAllCommand(), HandleResetHonorCommand(), HandleResetItemsAllAndDeleteBagsCommand(), HandleResetItemsAllCommand(), HandleResetItemsEquippedCommand(), HandleResetItemsInBagsCommand(), HandleResetItemsInBankCommand(), HandleResetItemsInCurrenciesListCommand(), HandleResetItemsInVendorBuyBackTabCommand(), HandleResetItemsKeyringCommand(), HandleResetLevelCommand(), HandleResetSpellsCommand(), HandleResetStatsCommand(), HandleResetTalentsCommand(), SEC_ADMINISTRATOR, and SEC_CONSOLE.
|
inlinestaticprivate |
References Acore::ChatCommands::PlayerIdentifier::FromTarget(), LANG_NO_CHAR_SELECTED, LANG_PLAYER_NOT_EXIST_OR_OFFLINE, and ChatHandler::SendSysMessage().
Referenced by HandleResetItemsAllAndDeleteBagsCommand(), HandleResetItemsAllCommand(), HandleResetItemsEquippedCommand(), HandleResetItemsInBagsCommand(), HandleResetItemsInBankCommand(), HandleResetItemsInCurrenciesListCommand(), HandleResetItemsInVendorBuyBackTabCommand(), and HandleResetItemsKeyringCommand().
|
inlinestatic |
References AchievementMgr::DeleteFromDB(), and Player::ResetAchievements().
Referenced by GetCommands().
|
inlinestatic |
References AT_LOGIN_RESET_PET_TALENTS, AT_LOGIN_RESET_SPELLS, AT_LOGIN_RESET_TALENTS, CHAR_UPD_ALL_AT_LOGIN_FLAGS, CharacterDatabase, ChatHandler::GetSession(), LANG_RESETALL_SPELLS, LANG_RESETALL_TALENTS, LANG_RESETALL_UNKNOWN_CASE, ChatHandler::SendErrorMessage(), ChatHandler::SendSysMessage(), ChatHandler::SendWorldText(), Player::SetAtLoginFlag(), PreparedStatementBase::SetData(), and sWorld.
Referenced by GetCommands().
|
inlinestatic |
References ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL, PLAYER_FIELD_KILLS, PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, PLAYER_FIELD_TODAY_CONTRIBUTION, PLAYER_FIELD_YESTERDAY_CONTRIBUTION, Player::SetHonorPoints(), Unit::SetUInt32Value(), and Player::UpdateAchievementCriteria().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::GetNameLink(), GetPlayerFromIdentifierOrSelectedTarget(), LANG_COMMAND_RESET_ITEMS_ALL_BAGS, ChatHandler::PSendSysMessage(), ResetItemsDeleteBankBags(), ResetItemsDeleteStandardBags(), ResetItemsEquipped(), ResetItemsInBags(), ResetItemsInBank(), ResetItemsInCurrenciesList(), ResetItemsInKeyring(), and ResetItemsInVendorBuyBackTab().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::GetNameLink(), GetPlayerFromIdentifierOrSelectedTarget(), LANG_COMMAND_RESET_ITEMS_ALL, ChatHandler::PSendSysMessage(), ResetItemsEquipped(), ResetItemsInBags(), ResetItemsInBank(), ResetItemsInCurrenciesList(), ResetItemsInKeyring(), and ResetItemsInVendorBuyBackTab().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::GetNameLink(), GetPlayerFromIdentifierOrSelectedTarget(), LANG_COMMAND_RESET_ITEMS_EQUIPPED, ChatHandler::PSendSysMessage(), and ResetItemsEquipped().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::GetNameLink(), GetPlayerFromIdentifierOrSelectedTarget(), LANG_COMMAND_RESET_ITEMS_BAGS, ChatHandler::PSendSysMessage(), and ResetItemsInBags().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::GetNameLink(), GetPlayerFromIdentifierOrSelectedTarget(), LANG_COMMAND_RESET_ITEMS_BANK, ChatHandler::PSendSysMessage(), and ResetItemsInBank().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::GetNameLink(), GetPlayerFromIdentifierOrSelectedTarget(), LANG_COMMAND_RESET_ITEMS_CURRENCY, ChatHandler::PSendSysMessage(), and ResetItemsInCurrenciesList().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::GetNameLink(), GetPlayerFromIdentifierOrSelectedTarget(), LANG_COMMAND_RESET_ITEMS_BUYBACK, ChatHandler::PSendSysMessage(), and ResetItemsInVendorBuyBackTab().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::GetNameLink(), GetPlayerFromIdentifierOrSelectedTarget(), LANG_COMMAND_RESET_ITEMS_KEYRING, ChatHandler::PSendSysMessage(), and ResetItemsInKeyring().
Referenced by GetCommands().
|
inlinestatic |
References Player::_ApplyAllLevelScaleItemMods(), CLASS_CONTEXT_INIT, CLASS_DEATH_KNIGHT, CONFIG_START_HEROIC_PLAYER_LEVEL, CONFIG_START_PLAYER_LEVEL, Unit::GetLevel(), Player::GetPet(), HandleResetStatsOrLevelHelper(), Player::InitGlyphsForLevel(), Player::InitRunes(), Player::InitStatsForLevel(), Player::InitTalentForLevel(), Player::InitTaxiNodesForLevel(), Player::IsClass(), PLAYER_XP, Unit::SetLevel(), Unit::SetUInt32Value(), sScriptMgr, and sWorld.
Referenced by GetCommands().
|
inlinestatic |
References AT_LOGIN_RESET_SPELLS, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, Acore::ChatCommands::PlayerIdentifier::FromTargetOrSelf(), ObjectGuid::GetCounter(), Object::GetGUID(), 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(), and PreparedStatementBase::SetData().
Referenced by GetCommands().
|
inlinestatic |
References HandleResetStatsOrLevelHelper(), Player::InitGlyphsForLevel(), Player::InitRunes(), Player::InitStatsForLevel(), Player::InitTalentForLevel(), and Player::InitTaxiNodesForLevel().
Referenced by GetCommands().
|
inlinestatic |
References FORM_NONE, Unit::getClass(), Unit::getGender(), Unit::getRace(), Unit::GetShapeshiftForm(), Unit::HasAuraType(), Player::InitDisplayIds(), LOG_ERROR, PLAYER_FIELD_WATCHED_FACTION_INDEX, ChrClassesEntry::powerType, Unit::ReplaceAllUnitFlags(), sChrClassesStore, Object::SetByteValue(), Player::SetFactionForRace(), Unit::SetShapeshiftForm(), Unit::SetUInt32Value(), SPELL_AURA_MOD_SHAPESHIFT, UNIT_BYTE2_FLAG_PVP, UNIT_FIELD_BYTES_0, UNIT_FIELD_BYTES_2, and UNIT_FLAG_PLAYER_CONTROLLED.
Referenced by HandleResetLevelCommand(), and HandleResetStatsCommand().
|
inlinestatic |
References AT_LOGIN_RESET_PET_TALENTS, AT_LOGIN_RESET_TALENTS, CHAR_UPD_ADD_AT_LOGIN_FLAG, CharacterDatabase, ChatHandler::GetNameLink(), Player::GetPet(), WorldSession::GetPlayer(), ChatHandler::GetSession(), Player::GetSession(), LANG_NO_CHAR_SELECTED, LANG_RESET_TALENTS, LANG_RESET_TALENTS_OFFLINE, LANG_RESET_TALENTS_ONLINE, ChatHandler::playerLink(), ChatHandler::PSendSysMessage(), Player::resetTalents(), Pet::resetTalentsForAllPetsOf(), ChatHandler::SendErrorMessage(), ChatHandler::SendSysMessage(), Player::SendTalentsInfoData(), and PreparedStatementBase::SetData().
Referenced by GetCommands().
|
inlinestaticprivate |
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, Player::DestroyItem(), Player::GetItemByPos(), and INVENTORY_SLOT_BAG_0.
Referenced by HandleResetItemsAllAndDeleteBagsCommand().
|
inlinestaticprivate |
References Player::DestroyItem(), Player::GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, and INVENTORY_SLOT_BAG_START.
Referenced by HandleResetItemsAllAndDeleteBagsCommand().
References Player::DestroyItem(), EQUIPMENT_SLOT_END, EQUIPMENT_SLOT_START, Player::GetItemByPos(), and INVENTORY_SLOT_BAG_0.
Referenced by HandleResetItemsAllAndDeleteBagsCommand(), HandleResetItemsAllCommand(), and HandleResetItemsEquippedCommand().
References Player::DestroyItem(), Bag::GetBagSize(), Player::GetItemByPos(), Bag::GetItemByPos(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, INVENTORY_SLOT_BAG_START, INVENTORY_SLOT_ITEM_END, and INVENTORY_SLOT_ITEM_START.
Referenced by HandleResetItemsAllAndDeleteBagsCommand(), HandleResetItemsAllCommand(), and HandleResetItemsInBagsCommand().
References BANK_SLOT_BAG_END, BANK_SLOT_BAG_START, BANK_SLOT_ITEM_END, BANK_SLOT_ITEM_START, Player::DestroyItem(), Bag::GetBagSize(), Player::GetItemByPos(), Bag::GetItemByPos(), and INVENTORY_SLOT_BAG_0.
Referenced by HandleResetItemsAllAndDeleteBagsCommand(), HandleResetItemsAllCommand(), and HandleResetItemsInBankCommand().
|
inlinestaticprivate |
References CURRENCYTOKEN_SLOT_END, CURRENCYTOKEN_SLOT_START, Player::DestroyItem(), Player::GetItemByPos(), and INVENTORY_SLOT_BAG_0.
Referenced by HandleResetItemsAllAndDeleteBagsCommand(), HandleResetItemsAllCommand(), and HandleResetItemsInCurrenciesListCommand().
References Player::DestroyItem(), Player::GetItemByPos(), INVENTORY_SLOT_BAG_0, KEYRING_SLOT_END, and KEYRING_SLOT_START.
Referenced by HandleResetItemsAllAndDeleteBagsCommand(), HandleResetItemsAllCommand(), and HandleResetItemsKeyringCommand().
|
inlinestaticprivate |
References BUYBACK_SLOT_END, BUYBACK_SLOT_START, Player::GetItemFromBuyBackSlot(), and Player::RemoveItemFromBuyBackSlot().
Referenced by HandleResetItemsAllAndDeleteBagsCommand(), HandleResetItemsAllCommand(), and HandleResetItemsInVendorBuyBackTabCommand().