deserter_commandscript::deserter_commandscript |
( |
| ) |
|
|
inline |
CommandScript(const char *name)
Definition: ScriptMgr.cpp:1616
std::vector<ChatCommand> deserter_commandscript::GetCommands |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the command structure for the system.
Implements CommandScript.
48 static std::vector<ChatCommand> deserterInstanceCommandTable =
53 static std::vector<ChatCommand> deserterBGCommandTable =
59 static std::vector<ChatCommand> deserterCommandTable =
64 static std::vector<ChatCommand> commandTable =
arena_t NULL
Definition: jemalloc_internal.h:624
static bool HandleDeserterInstanceAdd(ChatHandler *handler, char const *args)
Definition: cs_deserter.cpp:168
static bool HandleDeserterBGAdd(ChatHandler *handler, char const *args)
Definition: cs_deserter.cpp:174
static bool HandleDeserterInstanceRemove(ChatHandler *handler, char const *args)
Definition: cs_deserter.cpp:180
static bool HandleDeserterBGRemove(ChatHandler *handler, char const *args)
Definition: cs_deserter.cpp:186
Applies the Deserter Debuff to a player.
This function applies a Deserter Debuff of the given type (Instance or BG) to the selected player, with the provided duration in seconds.
- Parameters
-
handler | The ChatHandler, passed by the system. |
args | The provided duration in seconds. |
isInstance | provided by the relaying functions, so we don't have to write that much code :) |
- Returns
- true if everything was correct, false if an error occured.
Example Usage:
.deserter instance add 3600 (
one hour)
-or-
.deserter bg add 3600 (
one hour)
103 char* timeStr = strtok((
char*)args,
" ");
110 uint32 time = atoi(timeStr);
void SetSentErrorMessage(bool val)
Definition: Chat.h:138
Definition: Language.h:140
uint32_t uint32
Definition: Define.h:150
Definition: cs_deserter.cpp:34
Player * getSelectedPlayer()
Definition: Chat.cpp:579
Definition: Language.h:139
Definition: cs_deserter.cpp:33
void SetDuration(int32 duration, bool withMods=false)
Definition: SpellAuras.cpp:806
Definition: SpellAuras.h:116
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
static bool deserter_commandscript::HandleDeserterBGAdd |
( |
ChatHandler * |
handler, |
|
|
char const * |
args |
|
) |
| |
|
inlinestatic |
- See also
- HandleDeserterAdd()
static bool HandleDeserterAdd(ChatHandler *handler, char const *args, bool isInstance)
Applies the Deserter Debuff to a player.
Definition: cs_deserter.cpp:91
static bool deserter_commandscript::HandleDeserterBGRemove |
( |
ChatHandler * |
handler, |
|
|
char const * |
args |
|
) |
| |
|
inlinestatic |
- See also
- HandleDeserterRemove()
static bool HandleDeserterRemove(ChatHandler *handler, char const *, bool isInstance)
Removes the Deserter Debuff from a player.
Definition: cs_deserter.cpp:152
static bool deserter_commandscript::HandleDeserterInstanceAdd |
( |
ChatHandler * |
handler, |
|
|
char const * |
args |
|
) |
| |
|
inlinestatic |
- See also
- HandleDeserterAdd()
static bool HandleDeserterAdd(ChatHandler *handler, char const *args, bool isInstance)
Applies the Deserter Debuff to a player.
Definition: cs_deserter.cpp:91
static bool deserter_commandscript::HandleDeserterInstanceRemove |
( |
ChatHandler * |
handler, |
|
|
char const * |
args |
|
) |
| |
|
inlinestatic |
- See also
- HandleDeserterRemove()
static bool HandleDeserterRemove(ChatHandler *handler, char const *, bool isInstance)
Removes the Deserter Debuff from a player.
Definition: cs_deserter.cpp:152
Removes the Deserter Debuff from a player.
This function removes a Deserter Debuff of the given type (Instance or BG) from the selected player.
- Parameters
-
handler | The ChatHandler, passed by the system. |
args | Should be nothing. |
isInstance | provided by the relaying functions, so we don't have to write that much code :) |
- Returns
- true if everything was correct, false if an error occured.
Example Usage:
.deserter instance remove
-or-
.deserter bg remove
void SetSentErrorMessage(bool val)
Definition: Chat.h:138
Definition: Language.h:140
Definition: cs_deserter.cpp:34
Player * getSelectedPlayer()
Definition: Chat.cpp:579
Definition: cs_deserter.cpp:33
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152
The documentation for this class was generated from the following file: