AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Public Member Functions | |
modify_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 Public Member Functions | |
template<typename... Args> | |
static void | NotifyModification (ChatHandler *handler, Unit *target, AcoreStrings resourceMessage, AcoreStrings resourceReportMessage, Args &&... args) |
static bool | CheckModifyInt32 (ChatHandler *handler, Player *target, int32 modifyValue) |
static bool | HandleModifyHPCommand (ChatHandler *handler, int32 healthPoints) |
static bool | HandleModifyManaCommand (ChatHandler *handler, int32 manaPoints) |
static bool | HandleModifyEnergyCommand (ChatHandler *handler, int32 energyPoints) |
static bool | HandleModifyRageCommand (ChatHandler *handler, int32 ragePoints) |
static bool | HandleModifyRunicPowerCommand (ChatHandler *handler, int32 runePoints) |
static bool | HandleModifyFactionCommand (ChatHandler *handler, Optional< uint32 > factionID, Optional< uint32 > flagID, Optional< uint32 > npcFlagID, Optional< uint32 > dynamicFlagID) |
static bool | HandleModifySpellCommand (ChatHandler *handler, uint8 spellFlatID, uint8 op, uint16 val, Optional< uint16 > mark) |
static bool | HandleModifyTalentCommand (ChatHandler *handler, uint32 talentPoints) |
static bool | CheckModifySpeed (ChatHandler *handler, Unit *target, float speed, float minimumBound, float maximumBound, bool checkInFlight=true) |
static bool | HandleModifyASpeedCommand (ChatHandler *handler, float allSpeed) |
static bool | HandleModifySpeedCommand (ChatHandler *handler, float speed) |
static bool | HandleModifySwimCommand (ChatHandler *handler, float swimSpeed) |
static bool | HandleModifyBWalkCommand (ChatHandler *handler, float backSpeed) |
static bool | HandleModifyFlyCommand (ChatHandler *handler, float flySpeed) |
static bool | HandleModifyScaleCommand (ChatHandler *handler, float scale) |
static bool | HandleModifyMountCommand (ChatHandler *handler, uint32 creatureDisplayID, Optional< float > speed) |
static bool | HandleModifyMoneyCommand (ChatHandler *handler, Tail money) |
static bool | HandleModifyBitCommand (ChatHandler *handler, uint16 field, uint32 bit) |
static bool | HandleModifyHonorCommand (ChatHandler *handler, int32 amount) |
static bool | HandleModifyDrunkCommand (ChatHandler *handler, uint8 drunklevel) |
static bool | HandleModifyRepCommand (ChatHandler *handler, uint32 factionId, Variant< int32, std::string > rank, Optional< int32 > delta) |
static bool | HandleMorphTargetCommand (ChatHandler *handler, uint32 displayID) |
static bool | HandleMorphResetCommand (ChatHandler *handler) |
static bool | HandleMorphMountCommand (ChatHandler *handler, uint32 displayID) |
static bool | HandleModifyPhaseCommand (ChatHandler *handler, uint32 phaseMask) |
static bool | HandleModifyStandStateCommand (ChatHandler *handler, uint32 anim) |
static bool | HandleModifyArenaCommand (ChatHandler *handler, int32 amount) |
static bool | HandleModifyGenderCommand (ChatHandler *handler, Tail genderString) |
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 |
|
inlinestatic |
References ChatHandler::HasLowerSecurity(), LANG_BAD_VALUE, LANG_NO_CHAR_SELECTED, and ChatHandler::SendErrorMessage().
Referenced by HandleModifyEnergyCommand(), HandleModifyHPCommand(), HandleModifyManaCommand(), HandleModifyRageCommand(), and HandleModifyRunicPowerCommand().
|
inlinestatic |
References ChatHandler::GetNameLink(), ChatHandler::HasLowerSecurity(), LANG_BAD_VALUE, LANG_CHAR_IN_FLIGHT, LANG_NO_CHAR_SELECTED, ChatHandler::SendErrorMessage(), and Object::ToPlayer().
Referenced by HandleModifyASpeedCommand(), HandleModifyBWalkCommand(), HandleModifyFlyCommand(), HandleModifyMountCommand(), HandleModifySpeedCommand(), and HandleModifySwimCommand().
|
inlineoverridevirtual |
Implements CommandScript.
References HandleModifyArenaCommand(), HandleModifyASpeedCommand(), HandleModifyBitCommand(), HandleModifyBWalkCommand(), HandleModifyDrunkCommand(), HandleModifyEnergyCommand(), HandleModifyFactionCommand(), HandleModifyFlyCommand(), HandleModifyGenderCommand(), HandleModifyHonorCommand(), HandleModifyHPCommand(), HandleModifyManaCommand(), HandleModifyMoneyCommand(), HandleModifyMountCommand(), HandleModifyPhaseCommand(), HandleModifyRageCommand(), HandleModifyRepCommand(), HandleModifyRunicPowerCommand(), HandleModifyScaleCommand(), HandleModifySpeedCommand(), HandleModifySpellCommand(), HandleModifyStandStateCommand(), HandleModifySwimCommand(), HandleModifyTalentCommand(), HandleMorphMountCommand(), HandleMorphResetCommand(), HandleMorphTargetCommand(), SEC_ADMINISTRATOR, SEC_CONSOLE, SEC_GAMEMASTER, and SEC_MODERATOR.
|
inlinestatic |
References Player::GetArenaPoints(), ChatHandler::GetNameLink(), ChatHandler::getSelectedPlayer(), LANG_COMMAND_MODIFY_ARENA, LANG_PLAYER_NOT_FOUND, Player::ModifyArenaPoints(), ChatHandler::PSendSysMessage(), and ChatHandler::SendErrorMessage().
Referenced by GetCommands().
|
inlinestatic |
References CheckModifySpeed(), ChatHandler::getSelectedPlayerOrSelf(), LANG_YOU_CHANGE_ASPEED, LANG_YOURS_ASPEED_CHANGED, MOVE_FLIGHT, MOVE_RUN, MOVE_SWIM, MOVE_WALK, NotifyModification(), and Unit::SetSpeed().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::getSelectedUnit(), Object::GetValuesCount(), Object::HasFlag(), ChatHandler::HasLowerSecurity(), Object::IsPlayer(), LANG_BAD_VALUE, LANG_NO_CHAR_SELECTED, LANG_REMOVE_BIT, LANG_SET_BIT, ChatHandler::PSendSysMessage(), Object::RemoveFlag(), ChatHandler::SendErrorMessage(), Object::SetFlag(), and Object::ToPlayer().
Referenced by GetCommands().
|
inlinestatic |
References CheckModifySpeed(), ChatHandler::getSelectedPlayerOrSelf(), LANG_YOU_CHANGE_BACK_SPEED, LANG_YOURS_BACK_SPEED_CHANGED, MOVE_RUN_BACK, NotifyModification(), and Unit::SetSpeedRate().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::getSelectedPlayer().
Referenced by GetCommands().
|
inlinestatic |
References CheckModifyInt32(), ChatHandler::GetAcoreString(), Unit::GetMaxPower(), ChatHandler::GetNameLink(), ChatHandler::getSelectedPlayer(), Player::GetSession(), LANG_CURRENT_ENERGY, LANG_YOU_CHANGE_ENERGY, LANG_YOURS_ENERGY_CHANGED, LOG_DEBUG, ChatHandler::needReportToTarget(), POWER_ENERGY, ChatHandler::PSendSysMessage(), Unit::SetMaxPower(), and Unit::SetPower().
Referenced by GetCommands().
|
inlinestatic |
References Unit::GetDynamicFlags(), Unit::GetFaction(), Object::GetGUID(), Unit::GetNpcFlags(), ChatHandler::getSelectedCreature(), Unit::GetUnitFlags(), LANG_CURRENT_FACTION, LANG_SELECT_CREATURE, LANG_WRONG_FACTION, LANG_YOU_CHANGE_FACTION, ChatHandler::PSendSysMessage(), Unit::ReplaceAllDynamicFlags(), Unit::ReplaceAllNpcFlags(), Unit::ReplaceAllUnitFlags(), ChatHandler::SendErrorMessage(), Unit::SetFaction(), sFactionTemplateStore, and ObjectGuid::ToString().
Referenced by GetCommands().
|
inlinestatic |
References CheckModifySpeed(), ChatHandler::getSelectedPlayerOrSelf(), LANG_YOU_CHANGE_FLY_SPEED, LANG_YOURS_FLY_SPEED_CHANGED, MOVE_FLIGHT, NotifyModification(), and Unit::SetSpeedRate().
Referenced by GetCommands().
|
inlinestatic |
References GENDER_FEMALE, GENDER_MALE, Unit::getClass(), Unit::getGender(), ChatHandler::GetNameLink(), Unit::getRace(), ChatHandler::getSelectedPlayer(), Player::GetSession(), Player::InitDisplayIds(), LANG_MUST_MALE_OR_FEMALE, LANG_PLAYER_NOT_FOUND, LANG_YOU_CHANGE_GENDER, LANG_YOUR_GENDER_CHANGED, ChatHandler::needReportToTarget(), PLAYER_BYTES_3, ChatHandler::PSendSysMessage(), ChatHandler::SendErrorMessage(), Object::SetByteValue(), sObjectMgr, StringEqualI(), and UNIT_FIELD_BYTES_0.
Referenced by GetCommands().
|
inlinestatic |
References Player::GetHonorPoints(), ChatHandler::GetNameLink(), ChatHandler::getSelectedPlayer(), ChatHandler::HasLowerSecurity(), LANG_COMMAND_MODIFY_HONOR, LANG_PLAYER_NOT_FOUND, Player::ModifyHonorPoints(), ChatHandler::PSendSysMessage(), and ChatHandler::SendErrorMessage().
Referenced by GetCommands().
|
inlinestatic |
References CheckModifyInt32(), ChatHandler::GetNameLink(), ChatHandler::getSelectedPlayer(), Player::GetSession(), LANG_YOU_CHANGE_HP, LANG_YOURS_HP_CHANGED, ChatHandler::needReportToTarget(), ChatHandler::PSendSysMessage(), Unit::SetHealth(), and Unit::SetMaxHealth().
Referenced by GetCommands().
|
inlinestatic |
References CheckModifyInt32(), ChatHandler::GetNameLink(), ChatHandler::getSelectedPlayer(), Player::GetSession(), LANG_YOU_CHANGE_MANA, LANG_YOURS_MANA_CHANGED, ChatHandler::needReportToTarget(), POWER_MANA, ChatHandler::PSendSysMessage(), Unit::SetMaxPower(), and Unit::SetPower().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::GetAcoreString(), Player::GetMoney(), ChatHandler::GetNameLink(), ChatHandler::getSelectedPlayer(), Player::GetSession(), ChatHandler::HasLowerSecurity(), LANG_CURRENT_MONEY, LANG_NEW_MONEY, LANG_NO_CHAR_SELECTED, LANG_YOU_GIVE_MONEY, LANG_YOU_TAKE_ALL_MONEY, LANG_YOU_TAKE_MONEY, LANG_YOURS_ALL_MONEY_GONE, LANG_YOURS_MONEY_GIVEN, LANG_YOURS_MONEY_TAKEN, LOG_DEBUG, MAX_MONEY_AMOUNT, Player::ModifyMoney(), MoneyStringToMoney(), ChatHandler::needReportToTarget(), ChatHandler::PSendSysMessage(), ChatHandler::SendErrorMessage(), and Player::SetMoney().
Referenced by GetCommands().
|
inlinestatic |
References CheckModifySpeed(), ObjectGuid::Empty, ChatHandler::getSelectedPlayerOrSelf(), ChatHandler::HasLowerSecurity(), LANG_MOUNT_GIVED, LANG_NO_CHAR_SELECTED, LANG_NO_MOUNT, LANG_YOU_GIVE_MOUNT, Unit::Mount(), MOVE_FLIGHT, MOVE_RUN, NotifyModification(), sCreatureDisplayInfoStore, ChatHandler::SendErrorMessage(), and Unit::SetSpeed().
Referenced by GetCommands().
|
inlinestatic |
References WorldSession::GetPlayer(), ChatHandler::getSelectedUnit(), ChatHandler::GetSession(), ChatHandler::HasLowerSecurity(), Object::IsPlayer(), Unit::SetPhaseMask(), and Object::ToPlayer().
Referenced by GetCommands().
|
inlinestatic |
References CheckModifyInt32(), ChatHandler::GetNameLink(), ChatHandler::getSelectedPlayer(), Player::GetSession(), LANG_YOU_CHANGE_RAGE, LANG_YOURS_RAGE_CHANGED, ChatHandler::needReportToTarget(), POWER_RAGE, ChatHandler::PSendSysMessage(), Unit::SetMaxPower(), and Unit::SetPower().
Referenced by GetCommands().
|
inlinestatic |
References Acore::ChatCommands::Variant< T1, Ts >::get(), ChatHandler::GetAcoreString(), ChatHandler::GetNameLink(), ReputationMgr::GetReputation(), Player::GetReputationMgr(), ChatHandler::getSelectedPlayer(), ChatHandler::GetSessionDbcLocale(), ReputationMgr::GetState(), ChatHandler::HasLowerSecurity(), Acore::ChatCommands::Variant< T1, Ts >::holds_alternative(), LANG_COMMAND_FACTION_DELTA, LANG_COMMAND_FACTION_INVPARAM, LANG_COMMAND_FACTION_NOREP_ERROR, LANG_COMMAND_FACTION_UNKNOWN, LANG_COMMAND_MODIFY_REP, LANG_PLAYER_NOT_FOUND, MAX_REPUTATION_RANK, FactionEntry::name, ReputationMgr::PointsInRank, ChatHandler::PSendSysMessage(), FactionEntry::reputationListID, ReputationRankStrIndex, ChatHandler::SendErrorMessage(), ReputationMgr::SendState(), ReputationMgr::SetOneFactionReputation(), sFactionStore, Utf8toWStr(), and wstrToLower().
Referenced by GetCommands().
|
inlinestatic |
References CheckModifyInt32(), ChatHandler::GetNameLink(), ChatHandler::getSelectedPlayer(), Player::GetSession(), LANG_YOU_CHANGE_RUNIC_POWER, LANG_YOURS_RUNIC_POWER_CHANGED, ChatHandler::needReportToTarget(), POWER_RUNIC_POWER, ChatHandler::PSendSysMessage(), Unit::SetMaxPower(), and Unit::SetPower().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::GetNameLink(), ChatHandler::getSelectedUnit(), ChatHandler::HasLowerSecurity(), LANG_BAD_VALUE, LANG_SELECT_CHAR_OR_CREATURE, LANG_YOU_CHANGE_SIZE, LANG_YOURS_SIZE_CHANGED, ChatHandler::needReportToTarget(), ChatHandler::PSendSysMessage(), ChatHandler::SendErrorMessage(), Object::SetObjectScale(), and Object::ToPlayer().
Referenced by GetCommands().
|
inlinestatic |
References CheckModifySpeed(), ChatHandler::getSelectedPlayerOrSelf(), LANG_YOU_CHANGE_SPEED, LANG_YOURS_SPEED_CHANGED, MOVE_RUN, NotifyModification(), and Unit::SetSpeedRate().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::GetNameLink(), ChatHandler::getSelectedPlayer(), Player::GetSession(), ChatHandler::HasLowerSecurity(), LANG_NO_CHAR_SELECTED, LANG_YOU_CHANGE_SPELLFLATID, LANG_YOURS_SPELLFLATID_CHANGED, ChatHandler::needReportToTarget(), ChatHandler::PSendSysMessage(), ChatHandler::SendErrorMessage(), WorldSession::SendPacket(), and SMSG_SET_FLAT_SPELL_MODIFIER.
Referenced by GetCommands().
|
inlinestatic |
References WorldSession::GetPlayer(), ChatHandler::GetSession(), Unit::SetUInt32Value(), and UNIT_NPC_EMOTESTATE.
Referenced by GetCommands().
|
inlinestatic |
References CheckModifySpeed(), ChatHandler::getSelectedPlayerOrSelf(), LANG_YOU_CHANGE_SWIM_SPEED, LANG_YOURS_SWIM_SPEED_CHANGED, MOVE_SWIM, NotifyModification(), and Unit::SetSpeedRate().
Referenced by GetCommands().
|
inlinestatic |
References Unit::GetOwner(), ChatHandler::getSelectedUnit(), ChatHandler::HasLowerSecurity(), Unit::IsPet(), Object::IsPlayer(), LANG_NO_CHAR_SELECTED, ChatHandler::SendErrorMessage(), Player::SendTalentsInfoData(), Player::SetFreeTalentPoints(), and Object::ToPlayer().
Referenced by GetCommands().
|
inlinestatic |
References Unit::GetAuraEffectsByType(), ChatHandler::getSelectedPlayerOrSelf(), ChatHandler::HasLowerSecurity(), Object::IsPlayer(), Unit::SetUInt32Value(), SPELL_AURA_MOUNTED, Object::ToPlayer(), and UNIT_FIELD_MOUNTDISPLAYID.
Referenced by GetCommands().
|
inlinestatic |
References Unit::DeMorph(), WorldSession::GetPlayer(), ChatHandler::getSelectedUnit(), ChatHandler::GetSession(), ChatHandler::HasLowerSecurity(), Object::IsPlayer(), and Object::ToPlayer().
Referenced by GetCommands().
|
inlinestatic |
References WorldSession::GetPlayer(), ChatHandler::getSelectedUnit(), ChatHandler::GetSession(), ChatHandler::HasLowerSecurity(), Object::IsPlayer(), Unit::SetDisplayId(), and Object::ToPlayer().
Referenced by GetCommands().
|
inlinestatic |
References ChatHandler::GetNameLink(), ChatHandler::needReportToTarget(), ChatHandler::PSendSysMessage(), and Object::ToPlayer().
Referenced by HandleModifyASpeedCommand(), HandleModifyBWalkCommand(), HandleModifyFlyCommand(), HandleModifyMountCommand(), HandleModifySpeedCommand(), and HandleModifySwimCommand().