cheat_commandscript::cheat_commandscript |
( |
| ) |
|
|
inline |
CommandScript(const char *name)
Definition: ScriptMgr.cpp:1616
std::vector<ChatCommand> cheat_commandscript::GetCommands |
( |
| ) |
const |
|
inlineoverridevirtual |
Implements CommandScript.
37 static std::vector<ChatCommand> cheatCommandTable =
50 static std::vector<ChatCommand> commandTable =
static bool HandleExploreCheatCommand(ChatHandler *handler, const char *args)
Definition: cs_cheat.cpp:246
static bool HandleCasttimeCheatCommand(ChatHandler *handler, const char *args)
Definition: cs_cheat.cpp:83
arena_t NULL
Definition: jemalloc_internal.h:624
static bool HandleGodModeCheatCommand(ChatHandler *handler, const char *args)
Definition: cs_cheat.cpp:57
static bool HandleTaxiCheatCommand(ChatHandler *handler, const char *args)
Definition: cs_cheat.cpp:207
static bool HandleCoolDownCheatCommand(ChatHandler *handler, const char *args)
Definition: cs_cheat.cpp:109
static bool HandlePowerCheatCommand(ChatHandler *handler, const char *args)
Definition: cs_cheat.cpp:135
static bool HandleWaterWalkCheatCommand(ChatHandler *handler, const char *args)
Definition: cs_cheat.cpp:178
static bool HandleCheatStatusCommand(ChatHandler *handler, const char *)
Definition: cs_cheat.cpp:161
static bool cheat_commandscript::HandleCasttimeCheatCommand |
( |
ChatHandler * |
handler, |
|
|
const char * |
args |
|
) |
| |
|
inlinestatic |
88 std::string argstr = (
char*)args;
91 argstr = (handler->
GetSession()->
GetPlayer()->GetCommandStatus(CHEAT_CASTTIME)) ?
"off" :
"on";
96 handler->
SendSysMessage(
"CastTime Cheat is OFF. Your spells will have a casttime.");
99 else if (argstr ==
"on")
102 handler->
SendSysMessage(
"CastTime Cheat is ON. Your spells won't have a casttime.");
Player * GetPlayer() const
Definition: WorldSession.h:927
WorldSession * GetSession()
Definition: Chat.h:59
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
165 const char* enabled =
"ON";
166 const char* disabled =
"OFF";
Definition: Language.h:386
Player * GetPlayer() const
Definition: WorldSession.h:927
Definition: Language.h:387
Definition: Language.h:392
Definition: Language.h:390
Definition: Language.h:388
Definition: Language.h:385
WorldSession * GetSession()
Definition: Chat.h:59
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
Definition: Language.h:389
static bool cheat_commandscript::HandleCoolDownCheatCommand |
( |
ChatHandler * |
handler, |
|
|
const char * |
args |
|
) |
| |
|
inlinestatic |
114 std::string argstr = (
char*)args;
117 argstr = (handler->
GetSession()->
GetPlayer()->GetCommandStatus(CHEAT_COOLDOWN)) ?
"off" :
"on";
122 handler->
SendSysMessage(
"Cooldown Cheat is OFF. You are on the global cooldown.");
125 else if (argstr ==
"on")
128 handler->
SendSysMessage(
"Cooldown Cheat is ON. You are not on the global cooldown.");
Player * GetPlayer() const
Definition: WorldSession.h:927
WorldSession * GetSession()
Definition: Chat.h:59
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
static bool cheat_commandscript::HandleExploreCheatCommand |
( |
ChatHandler * |
handler, |
|
|
const char * |
args |
|
) |
| |
|
inlinestatic |
252 int flag = atoi((
char*)args);
void SetSentErrorMessage(bool val)
Definition: Chat.h:138
Definition: Language.h:572
Player * GetPlayer() const
Definition: WorldSession.h:927
Definition: Language.h:140
#define PLAYER_EXPLORED_ZONES_SIZE
Definition: Player.h:72
virtual std::string GetNameLink() const
Definition: Chat.h:101
Player * getSelectedPlayer()
Definition: Chat.cpp:579
WorldSession * GetSession()
Definition: Chat.h:59
uint8_t uint8
Definition: Define.h:152
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
Definition: Language.h:570
Definition: Language.h:573
virtual bool needReportToTarget(Player *chr) const
Definition: Chat.cpp:1056
Definition: Language.h:571
Definition: UpdateFields.h:249
static bool cheat_commandscript::HandleGodModeCheatCommand |
( |
ChatHandler * |
handler, |
|
|
const char * |
args |
|
) |
| |
|
inlinestatic |
62 std::string argstr = (
char*)args;
73 else if (argstr ==
"on")
Player * GetPlayer() const
Definition: WorldSession.h:927
WorldSession * GetSession()
Definition: Chat.h:59
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
static bool cheat_commandscript::HandlePowerCheatCommand |
( |
ChatHandler * |
handler, |
|
|
const char * |
args |
|
) |
| |
|
inlinestatic |
140 std::string argstr = (
char*)args;
143 argstr = (handler->
GetSession()->
GetPlayer()->GetCommandStatus(CHEAT_POWER)) ?
"off" :
"on";
148 handler->
SendSysMessage(
"Power Cheat is OFF. You need mana/rage/energy to use spells.");
151 else if (argstr ==
"on")
154 handler->
SendSysMessage(
"Power Cheat is ON. You don't need mana/rage/energy to use spells.");
Player * GetPlayer() const
Definition: WorldSession.h:927
WorldSession * GetSession()
Definition: Chat.h:59
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
static bool cheat_commandscript::HandleTaxiCheatCommand |
( |
ChatHandler * |
handler, |
|
|
const char * |
args |
|
) |
| |
|
inlinestatic |
210 std::string argstr = (
char*)args;
219 argstr = (chr->isTaxiCheater()) ?
"off" :
"on";
225 chr->SetTaxiCheater(
false);
231 else if (argstr ==
"on")
233 chr->SetTaxiCheater(
true);
Definition: Language.h:159
void SetSentErrorMessage(bool val)
Definition: Chat.h:138
static ObjectGuid const Empty
Definition: ObjectGuid.h:196
Player * GetPlayer() const
Definition: WorldSession.h:927
bool HasLowerSecurity(Player *target, ObjectGuid guid, bool strong=false)
Definition: Chat.cpp:77
virtual std::string GetNameLink() const
Definition: Chat.h:101
Definition: Language.h:290
Definition: Language.h:160
Player * getSelectedPlayer()
Definition: Chat.cpp:579
WorldSession * GetSession()
Definition: Chat.h:59
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
Definition: Language.h:161
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
virtual bool needReportToTarget(Player *chr) const
Definition: Chat.cpp:1056
Definition: Language.h:162
static bool cheat_commandscript::HandleWaterWalkCheatCommand |
( |
ChatHandler * |
handler, |
|
|
const char * |
args |
|
) |
| |
|
inlinestatic |
183 std::string argstr = (
char*)args;
187 argstr = (target->GetCommandStatus(CHEAT_WATERWALK)) ?
"off" :
"on";
191 target->SetCommandStatusOff(CHEAT_WATERWALK);
192 target->SetWaterWalking(
false);
193 handler->
SendSysMessage(
"Waterwalking is OFF. You can't walk on water.");
196 else if (argstr ==
"on")
198 target->SetCommandStatusOn(CHEAT_WATERWALK);
199 target->SetWaterWalking(
true);
200 handler->
SendSysMessage(
"Waterwalking is ON. You can walk on water.");
Player * GetPlayer() const
Definition: WorldSession.h:927
WorldSession * GetSession()
Definition: Chat.h:59
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
The documentation for this class was generated from the following file: