|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Public Member Functions | |
| deserter_commandscript () | |
| std::vector< ChatCommand > | GetCommands () const OVERRIDE |
| Returns the command structure for the system. | |
| Public Member Functions inherited from ScriptObject | |
| const std::string & | GetName () const |
| virtual bool | IsDatabaseBound () const |
Static Public Member Functions | |
| static bool | HandleDeserterAdd (ChatHandler *handler, char const *args, bool isInstance) |
| Applies the Deserter Debuff to a player. | |
| static bool | HandleDeserterBGAdd (ChatHandler *handler, char const *args) |
| static bool | HandleDeserterBGRemove (ChatHandler *handler, char const *args) |
| static bool | HandleDeserterInstanceAdd (ChatHandler *handler, char const *args) |
| static bool | HandleDeserterInstanceRemove (ChatHandler *handler, char const *args) |
| static bool | HandleDeserterRemove (ChatHandler *handler, char const *, bool isInstance) |
| Removes the Deserter Debuff from a player. | |
Additional Inherited Members | |
| Protected Member Functions inherited from CommandScript | |
| CommandScript (const char *name) | |
| Protected Member Functions inherited from ScriptObject | |
| ScriptObject (const char *name) | |
| virtual | ~ScriptObject () |
Definition at line 25 of file cs_deserter.cpp.
|
inline |
Definition at line 28 of file cs_deserter.cpp.
References CommandScript::CommandScript().
|
inlinevirtual |
Returns the command structure for the system.
Implements CommandScript.
Definition at line 34 of file cs_deserter.cpp.
References HandleDeserterBGAdd(), HandleDeserterBGRemove(), HandleDeserterInstanceAdd(), HandleDeserterInstanceRemove(), OVERRIDE, rbac::RBAC_PERM_COMMAND_DESERTER, rbac::RBAC_PERM_COMMAND_DESERTER_BG, rbac::RBAC_PERM_COMMAND_DESERTER_BG_ADD, rbac::RBAC_PERM_COMMAND_DESERTER_BG_REMOVE, rbac::RBAC_PERM_COMMAND_DESERTER_INSTANCE, rbac::RBAC_PERM_COMMAND_DESERTER_INSTANCE_ADD, and rbac::RBAC_PERM_COMMAND_DESERTER_INSTANCE_REMOVE.
|
inlinestatic |
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.
| 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 :) |
Example Usage:
Definition at line 79 of file cs_deserter.cpp.
References Unit::AddAura(), BG_SPELL_DESERTER, ChatHandler::getSelectedPlayer(), IN_MILLISECONDS, LANG_BAD_VALUE, LANG_NO_CHAR_SELECTED, LFG_SPELL_DUNGEON_DESERTER, ChatHandler::SendSysMessage(), Aura::SetDuration(), and ChatHandler::SetSentErrorMessage().
Referenced by HandleDeserterBGAdd(), and HandleDeserterInstanceAdd().
|
inlinestatic |
Definition at line 162 of file cs_deserter.cpp.
References HandleDeserterAdd().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 174 of file cs_deserter.cpp.
References HandleDeserterRemove().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 156 of file cs_deserter.cpp.
References HandleDeserterAdd().
Referenced by GetCommands().
|
inlinestatic |
Definition at line 168 of file cs_deserter.cpp.
References HandleDeserterRemove().
Referenced by GetCommands().
|
inlinestatic |
Removes the Deserter Debuff from a player.
This function removes a Deserter Debuff of the given type (Instance or BG) from the selected player.
| 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 :) |
Example Usage:
Definition at line 140 of file cs_deserter.cpp.
References BG_SPELL_DESERTER, ChatHandler::getSelectedPlayer(), LANG_NO_CHAR_SELECTED, LFG_SPELL_DUNGEON_DESERTER, Unit::RemoveAura(), ChatHandler::SendSysMessage(), and ChatHandler::SetSentErrorMessage().
Referenced by HandleDeserterBGRemove(), and HandleDeserterInstanceRemove().