Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
guild_commandscript Class Reference
Inheritance diagram for guild_commandscript:
Collaboration diagram for guild_commandscript:

Public Member Functions

std::vector< ChatCommandGetCommands () const
 guild_commandscript ()
Public Member Functions inherited from ScriptObject
const std::string & GetName () const
virtual bool IsDatabaseBound () const

Static Public Member Functions

static bool HandleGuildCreateCommand (ChatHandler *handler, char const *args)
 GM command level 3 - Create a guild.
static bool HandleGuildDeleteCommand (ChatHandler *handler, char const *args)
static bool HandleGuildInviteCommand (ChatHandler *handler, char const *args)
static bool HandleGuildRankCommand (ChatHandler *handler, char const *args)
static bool HandleGuildRenameCommand (ChatHandler *handler, char const *_args)
static bool HandleGuildUninviteCommand (ChatHandler *handler, char const *args)

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 ()

Detailed Description

Definition at line 21 of file cs_guild.cpp.

Constructor & Destructor Documentation

◆ guild_commandscript()

guild_commandscript::guild_commandscript ( )
inline

Definition at line 24 of file cs_guild.cpp.

References CommandScript::CommandScript().

Member Function Documentation

◆ GetCommands()

◆ HandleGuildCreateCommand()

bool guild_commandscript::HandleGuildCreateCommand ( ChatHandler * handler,
char const * args )
inlinestatic

GM command level 3 - Create a guild.

This command allows a GM (level 3) to create a guild.

The "args" parameter contains the name of the guild leader and then the name of the guild.

Definition at line 52 of file cs_guild.cpp.

References Guild::Create(), ChatHandler::extractPlayerTarget(), ChatHandler::extractQuotedArg(), Player::GetGuildId(), LANG_GUILD_NOT_CREATED, LANG_PLAYER_IN_GUILD, ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), and sGuildMgr.

Referenced by GetCommands().

◆ HandleGuildDeleteCommand()

bool guild_commandscript::HandleGuildDeleteCommand ( ChatHandler * handler,
char const * args )
inlinestatic

Definition at line 92 of file cs_guild.cpp.

References Guild::Disband(), ChatHandler::extractQuotedArg(), and sGuildMgr.

Referenced by GetCommands().

◆ HandleGuildInviteCommand()

bool guild_commandscript::HandleGuildInviteCommand ( ChatHandler * handler,
char const * args )
inlinestatic

◆ HandleGuildRankCommand()

bool guild_commandscript::HandleGuildRankCommand ( ChatHandler * handler,
char const * args )
inlinestatic

◆ HandleGuildRenameCommand()

◆ HandleGuildUninviteCommand()

bool guild_commandscript::HandleGuildUninviteCommand ( ChatHandler * handler,
char const * args )
inlinestatic

The documentation for this class was generated from the following file: