57 {
"cheat", cheatCommandTable },
91 handler->
SendSysMessage(
"CastTime Cheat is ON. Your spells won't have a casttime.");
96 handler->
SendSysMessage(
"CastTime Cheat is OFF. Your spells will have a casttime.");
111 handler->
SendSysMessage(
"Cooldown Cheat is ON. You are not on the global cooldown.");
116 handler->
SendSysMessage(
"Cooldown Cheat is OFF. You are on the global cooldown.");
135 handler->
SendSysMessage(
"Power Cheat is ON. You don't need mana/rage/energy to use spells.");
140 handler->
SendSysMessage(
"Power Cheat is OFF. You need mana/rage/energy to use spells.");
150 char const* enabled =
"ON";
151 char const* disabled =
"OFF";
173 handler->
SendSysMessage(
"Waterwalking is ON. You can walk on water.");
179 handler->
SendSysMessage(
"Waterwalking is OFF. You can't walk on water.");
constexpr size_t PLAYER_EXPLORED_ZONES_SIZE
@ LANG_YOU_SET_EXPLORE_NOTHING
@ LANG_YOURS_TAXIS_REMOVED
@ LANG_COMMAND_CHEAT_POWER
@ LANG_YOURS_EXPLORE_SET_ALL
@ LANG_YOU_SET_EXPLORE_ALL
@ LANG_YOURS_EXPLORE_SET_NOTHING
@ LANG_COMMAND_CHEAT_STATUS
@ LANG_COMMAND_CHEAT_TAXINODES
std::optional< T > Optional
Optional helper class to wrap optional values within.
Role Based Access Control related classes definition.
Player * getSelectedPlayer()
WorldSession * GetSession()
virtual std::string GetNameLink() const
void PSendSysMessage(const char *fmt, Args &&... args)
bool HasLowerSecurity(Player *target, ObjectGuid guid, bool strong=false)
void SetSentErrorMessage(bool val)
virtual void SendSysMessage(std::string_view str, bool escapeCharacters=false)
virtual bool needReportToTarget(Player *chr) const
static ObjectGuid const Empty
bool GetCommandStatus(uint32 command) const
WorldSession * GetSession() const
void SetCommandStatusOn(uint32 command)
void AddExploredZones(uint32 pos, uint64 mask)
void SetCommandStatusOff(uint32 command)
void RemoveExploredZones(uint32 pos, uint64 mask)
void SetTaxiCheater(bool on)
bool isTaxiCheater() const
void SetFullPower(Powers power)
bool SetWaterWalking(bool enable)
Player * GetPlayer() const
static bool HandleCasttimeCheatCommand(ChatHandler *handler, Optional< bool > enableArg)
static bool HandleExploreCheatCommand(ChatHandler *handler, bool reveal)
ChatCommandTable GetCommands() const override
static bool HandleWaterWalkCheatCommand(ChatHandler *handler, Optional< bool > enableArg)
static bool HandleCoolDownCheatCommand(ChatHandler *handler, Optional< bool > enableArg)
static bool HandleTaxiCheatCommand(ChatHandler *handler, Optional< bool > enableArg)
static bool HandleGodModeCheatCommand(ChatHandler *handler, Optional< bool > enableArg)
static bool HandleCheatStatusCommand(ChatHandler *handler)
static bool HandlePowerCheatCommand(ChatHandler *handler, Optional< bool > enableArg)
void AddSC_cheat_commandscript()
std::vector< ChatCommandBuilder > ChatCommandTable
@ RBAC_PERM_COMMAND_CHEAT_POWER
@ RBAC_PERM_COMMAND_CHEAT_TAXI
@ RBAC_PERM_COMMAND_CHEAT_GOD
@ RBAC_PERM_COMMAND_CHEAT_COOLDOWN
@ RBAC_PERM_COMMAND_CHEAT_CASTTIME
@ RBAC_PERM_COMMAND_CHEAT_WATERWALK
@ RBAC_PERM_COMMAND_CHEAT_STATUS
@ RBAC_PERM_COMMAND_CHEAT_EXPLORE