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

Public Member Functions

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

Static Public Member Functions

static bool HandleGoCreatureCommand (ChatHandler *handler, char const *args)
 Teleport the GM to the specified creature.
static bool HandleGoGraveyardCommand (ChatHandler *handler, char const *args)
static bool HandleGoGridCommand (ChatHandler *handler, char const *args)
static bool HandleGoObjectCommand (ChatHandler *handler, char const *args)
static bool HandleGoTaxinodeCommand (ChatHandler *handler, char const *args)
static bool HandleGoTicketCommand (ChatHandler *handler, char const *args)
static bool HandleGoTriggerCommand (ChatHandler *handler, char const *args)
static bool HandleGoXYZCommand (ChatHandler *handler, char const *args)
static bool HandleGoZoneXYCommand (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_go.cpp.

Constructor & Destructor Documentation

◆ go_commandscript()

go_commandscript::go_commandscript ( )
inline

Definition at line 24 of file cs_go.cpp.

References CommandScript::CommandScript().

Member Function Documentation

◆ GetCommands()

◆ HandleGoCreatureCommand()

bool go_commandscript::HandleGoCreatureCommand ( ChatHandler * handler,
char const * args )
inlinestatic

Teleport the GM to the specified creature.

.gocreature <GUID> --> TP using creature.guid .gocreature azuregos --> TP player to the mob with this name Warning: If there is more than one mob with this name you will be teleported to the first one that is found. .gocreature id 6109 --> TP player to the mob, that has this creature_template.entry Warning: If there is more than one mob with this "id" you will be teleported to the first one that is found.

Definition at line 60 of file cs_go.cpp.

References _LIKE_, Player::CleanupAfterTaxiFlight(), ChatHandler::extractKeyFromLink(), Field::GetFloat(), Unit::GetMotionMaster(), WorldSession::GetPlayer(), ChatHandler::GetSession(), Field::GetUInt16(), Field::GetUInt32(), HIGHGUID_UNIT, Unit::IsInFlight(), MapManager::IsValidMapCoord(), LANG_COMMAND_GOCREATMULTIPLE, LANG_COMMAND_GOCREATNOTFOUND, LANG_INVALID_TARGET_COORD, MAKE_NEW_GUID(), MotionMaster::MovementExpired(), ChatHandler::PSendSysMessage(), Player::SaveRecallPosition(), ChatHandler::SendSysMessage(), ChatHandler::SetSentErrorMessage(), sObjectAccessor, Player::TeleportTo(), and WorldDatabase.

Referenced by GetCommands().

◆ HandleGoGraveyardCommand()

◆ HandleGoGridCommand()

◆ HandleGoObjectCommand()

◆ HandleGoTaxinodeCommand()

◆ HandleGoTicketCommand()

◆ HandleGoTriggerCommand()

◆ HandleGoXYZCommand()

◆ HandleGoZoneXYCommand()


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