TrinityCore
Loading...
Searching...
No Matches
misc_commandscript Class Reference
+ Inheritance diagram for misc_commandscript:

Public Member Functions

 misc_commandscript ()
 
std::span< ChatCommandBuilder const > GetCommands () const override
 
- Public Member Functions inherited from CommandScript
 ~CommandScript ()
 
- Public Member Functions inherited from ScriptObject
 ScriptObject (ScriptObject const &right)=delete
 
 ScriptObject (ScriptObject &&right)=delete
 
ScriptObjectoperator= (ScriptObject const &right)=delete
 
ScriptObjectoperator= (ScriptObject &&right)=delete
 
std::string const & GetName () const
 

Static Public Member Functions

static bool HandlePvPstatsCommand (ChatHandler *handler)
 
static bool HandleDevCommand (ChatHandler *handler, Optional< bool > enableArg)
 
static bool HandleGPSCommand (ChatHandler *handler, char const *args)
 
static bool HandleAuraCommand (ChatHandler *handler, SpellInfo const *spell)
 
static bool HandleUnAuraCommand (ChatHandler *handler, Variant< SpellInfo const *, EXACT_SEQUENCE("all")> spellArg)
 
static bool HandleAppearCommand (ChatHandler *handler, char const *args)
 
static bool HandleSummonCommand (ChatHandler *handler, char const *args)
 
static bool HandleCommandsCommand (ChatHandler *handler)
 
static bool HandleDieCommand (ChatHandler *handler)
 
static bool HandleReviveCommand (ChatHandler *handler, char const *args)
 
static bool HandleDismountCommand (ChatHandler *handler)
 
static bool HandleGUIDCommand (ChatHandler *handler)
 
static bool HandleHelpCommand (ChatHandler *handler, Tail cmd)
 
static bool HandleItemMoveCommand (ChatHandler *handler, uint8 srcSlot, uint8 dstSlot)
 
static bool HandleCooldownCommand (ChatHandler *handler, Optional< SpellInfo const * > spellArg)
 
static bool HandleGetDistanceCommand (ChatHandler *handler, char const *args)
 
static bool HandleRecallCommand (ChatHandler *handler, char const *args)
 
static bool HandleSaveCommand (ChatHandler *handler)
 
static bool HandleSaveAllCommand (ChatHandler *handler)
 
static bool HandleKickPlayerCommand (ChatHandler *handler, char const *args)
 
static bool HandleUnstuckCommand (ChatHandler *handler, char const *args)
 
static bool HandleLinkGraveCommand (ChatHandler *handler, uint32 graveyardId, Optional< std::string > teamArg)
 
static bool HandleNearGraveCommand (ChatHandler *handler, Optional< std::string > teamArg)
 
static bool HandleShowAreaCommand (ChatHandler *handler, uint32 areaId)
 
static bool HandleHideAreaCommand (ChatHandler *handler, uint32 areaId)
 
static bool HandleAddItemCommandHelper (ChatHandler *handler, Player *player, Player *playerTarget, Variant< Hyperlink< item >, uint32, std::string_view > const &itemArg, Optional< int32 > countArg, Optional< std::string_view > const &bonusListIdString, Optional< uint8 > itemContextArg)
 
static bool HandleAddItemCommand (ChatHandler *handler, Variant< Hyperlink<::item >, uint32, std::string_view > const &item, Optional< int32 > countArg, Optional< std::string_view > const &bonusListIdString, Optional< uint8 > itemContextArg)
 
static bool HandleAddItemToCommand (ChatHandler *handler, PlayerIdentifier const &target, Variant< Hyperlink<::item >, uint32, std::string_view > const &item, Optional< int32 > countArg, Optional< std::string_view > const &bonusListIdString, Optional< uint8 > itemContextArg)
 
static bool HandleAddItemSetCommand (ChatHandler *handler, Variant< Hyperlink< itemset >, uint32 > itemSetId, Optional< std::string_view > bonuses, Optional< uint8 > context)
 
static bool HandleBankCommand (ChatHandler *handler)
 
static bool HandleChangeWeather (ChatHandler *handler, WeatherType type, float intensity)
 
static bool HandleSetSkillCommand (ChatHandler *handler, Variant< Hyperlink< skill >, uint32 > skillId, uint32 level, Optional< uint32 > maxSkillArg)
 
Player command: .pinfo

Prints information about a character and it's linked account to the commander

Date
05/19/2013

Non-applying information, e.g. a character that is not in gm mode right now or that is not banned/muted, is not printed

This can be done either by giving a name or by targeting someone, else, it'll use the commander

Parameters
argsname Prints information according to the given name to the commander target Prints information on the target to the commander none No given args results in printing information on the commander
Returns
Several pieces of information about the character and the account
static bool HandlePInfoCommand (ChatHandler *handler, Optional< PlayerIdentifier > arg)
 
static bool HandleRespawnCommand (ChatHandler *handler)
 
static bool HandleMuteCommand (ChatHandler *handler, Optional< PlayerIdentifier > player, uint32 muteTime, Tail muteReason)
 
static bool HandleUnmuteCommand (ChatHandler *handler, char const *args)
 
static bool HandleMuteHistoryCommand (ChatHandler *handler, std::string accountName)
 
static bool HandleMuteHistoryHelper (uint32 accountId, char const *accountName, ChatHandler *handler)
 
static bool HandleMovegensCommand (ChatHandler *handler)
 
static bool HandleComeToMeCommand (ChatHandler *handler)
 
static bool HandleDamageCommand (ChatHandler *handler, uint32 damage, Optional< SpellSchools > school, Optional< SpellInfo const * > spellInfo)
 
static bool HandleDamageGoCommand (ChatHandler *handler, Variant< Hyperlink< gameobject >, ObjectGuid::LowType > spawnId, int32 damage)
 
static bool HandleCombatStopCommand (ChatHandler *handler, char const *args)
 
static bool HandleRepairitemsCommand (ChatHandler *handler, char const *args)
 
static bool HandleFreezeCommand (ChatHandler *handler, char const *args)
 
static bool HandleUnFreezeCommand (ChatHandler *handler, Optional< std::string > targetNameArg)
 
static bool HandleListFreezeCommand (ChatHandler *handler)
 
static bool HandlePlayAllCommand (ChatHandler *handler, uint32 soundId, Optional< int32 > broadcastTextId)
 
static bool HandlePossessCommand (ChatHandler *handler)
 
static bool HandleUnPossessCommand (ChatHandler *handler)
 
static bool HandleBindSightCommand (ChatHandler *handler)
 
static bool HandleUnbindSightCommand (ChatHandler *handler)
 
static bool HandleMailBoxCommand (ChatHandler *handler)
 

Additional Inherited Members

- Protected Member Functions inherited from CommandScript
 CommandScript (char const *name) noexcept
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (char const *name) noexcept
 
virtual ~ScriptObject ()
 

Detailed Description

Definition at line 58 of file cs_misc.cpp.

Constructor & Destructor Documentation

◆ misc_commandscript()

misc_commandscript::misc_commandscript ( )
inline

Definition at line 61 of file cs_misc.cpp.

Member Function Documentation

◆ GetCommands()

std::span< ChatCommandBuilder const > misc_commandscript::GetCommands ( ) const
inlineoverridevirtual

Implements CommandScript.

Definition at line 63 of file cs_misc.cpp.

+ Here is the call graph for this function:

◆ HandleAddItemCommand()

static bool misc_commandscript::HandleAddItemCommand ( ChatHandler handler,
Variant< Hyperlink<::item >, uint32, std::string_view > const &  item,
Optional< int32 countArg,
Optional< std::string_view > const &  bonusListIdString,
Optional< uint8 itemContextArg 
)
inlinestatic

Definition at line 1279 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAddItemCommandHelper()

static bool misc_commandscript::HandleAddItemCommandHelper ( ChatHandler handler,
Player player,
Player playerTarget,
Variant< Hyperlink< item >, uint32, std::string_view > const &  itemArg,
Optional< int32 countArg,
Optional< std::string_view > const &  bonusListIdString,
Optional< uint8 itemContextArg 
)
inlinestatic

Definition at line 1142 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAddItemSetCommand()

static bool misc_commandscript::HandleAddItemSetCommand ( ChatHandler handler,
Variant< Hyperlink< itemset >, uint32 itemSetId,
Optional< std::string_view >  bonuses,
Optional< uint8 context 
)
inlinestatic

Definition at line 1304 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAddItemToCommand()

static bool misc_commandscript::HandleAddItemToCommand ( ChatHandler handler,
PlayerIdentifier const &  target,
Variant< Hyperlink<::item >, uint32, std::string_view > const &  item,
Optional< int32 countArg,
Optional< std::string_view > const &  bonusListIdString,
Optional< uint8 itemContextArg 
)
inlinestatic

Definition at line 1289 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAppearCommand()

static bool misc_commandscript::HandleAppearCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 341 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleAuraCommand()

static bool misc_commandscript::HandleAuraCommand ( ChatHandler handler,
SpellInfo const *  spell 
)
inlinestatic

Definition at line 298 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleBankCommand()

static bool misc_commandscript::HandleBankCommand ( ChatHandler handler)
inlinestatic

Definition at line 1380 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleBindSightCommand()

static bool misc_commandscript::HandleBindSightCommand ( ChatHandler handler)
inlinestatic

Definition at line 2505 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleChangeWeather()

static bool misc_commandscript::HandleChangeWeather ( ChatHandler handler,
WeatherType  type,
float  intensity 
)
inlinestatic

Definition at line 1386 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleCombatStopCommand()

static bool misc_commandscript::HandleCombatStopCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 2229 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleComeToMeCommand()

static bool misc_commandscript::HandleComeToMeCommand ( ChatHandler handler)
inlinestatic

Definition at line 2128 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleCommandsCommand()

static bool misc_commandscript::HandleCommandsCommand ( ChatHandler handler)
inlinestatic

Definition at line 584 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleCooldownCommand()

static bool misc_commandscript::HandleCooldownCommand ( ChatHandler handler,
Optional< SpellInfo const * >  spellArg 
)
inlinestatic

Definition at line 705 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleDamageCommand()

static bool misc_commandscript::HandleDamageCommand ( ChatHandler handler,
uint32  damage,
Optional< SpellSchools school,
Optional< SpellInfo const * >  spellInfo 
)
inlinestatic

Definition at line 2145 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleDamageGoCommand()

static bool misc_commandscript::HandleDamageGoCommand ( ChatHandler handler,
Variant< Hyperlink< gameobject >, ObjectGuid::LowType spawnId,
int32  damage 
)
inlinestatic

Definition at line 2207 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleDevCommand()

static bool misc_commandscript::HandleDevCommand ( ChatHandler handler,
Optional< bool >  enableArg 
)
inlinestatic

Definition at line 151 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleDieCommand()

static bool misc_commandscript::HandleDieCommand ( ChatHandler handler)
inlinestatic

Definition at line 590 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleDismountCommand()

static bool misc_commandscript::HandleDismountCommand ( ChatHandler handler)
inlinestatic

Definition at line 638 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleFreezeCommand()

static bool misc_commandscript::HandleFreezeCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 2278 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleGetDistanceCommand()

static bool misc_commandscript::HandleGetDistanceCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 746 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleGPSCommand()

static bool misc_commandscript::HandleGPSCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 175 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleGUIDCommand()

static bool misc_commandscript::HandleGUIDCommand ( ChatHandler handler)
inlinestatic

Definition at line 662 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleHelpCommand()

static bool misc_commandscript::HandleHelpCommand ( ChatHandler handler,
Tail  cmd 
)
inlinestatic

Definition at line 677 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleHideAreaCommand()

static bool misc_commandscript::HandleHideAreaCommand ( ChatHandler handler,
uint32  areaId 
)
inlinestatic

Definition at line 1109 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleItemMoveCommand()

static bool misc_commandscript::HandleItemMoveCommand ( ChatHandler handler,
uint8  srcSlot,
uint8  dstSlot 
)
inlinestatic

Definition at line 686 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleKickPlayerCommand()

static bool misc_commandscript::HandleKickPlayerCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 864 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleLinkGraveCommand()

static bool misc_commandscript::HandleLinkGraveCommand ( ChatHandler handler,
uint32  graveyardId,
Optional< std::string >  teamArg 
)
inlinestatic

Definition at line 976 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleListFreezeCommand()

static bool misc_commandscript::HandleListFreezeCommand ( ChatHandler handler)
inlinestatic

Definition at line 2433 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleMailBoxCommand()

static bool misc_commandscript::HandleMailBoxCommand ( ChatHandler handler)
inlinestatic

Definition at line 2526 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleMovegensCommand()

static bool misc_commandscript::HandleMovegensCommand ( ChatHandler handler)
inlinestatic

Definition at line 2045 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleMuteCommand()

static bool misc_commandscript::HandleMuteCommand ( ChatHandler handler,
Optional< PlayerIdentifier player,
uint32  muteTime,
Tail  muteReason 
)
inlinestatic

Definition at line 1870 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleMuteHistoryCommand()

static bool misc_commandscript::HandleMuteHistoryCommand ( ChatHandler handler,
std::string  accountName 
)
inlinestatic

Definition at line 1994 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleMuteHistoryHelper()

static bool misc_commandscript::HandleMuteHistoryHelper ( uint32  accountId,
char const *  accountName,
ChatHandler handler 
)
inlinestatic

Definition at line 2014 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleNearGraveCommand()

static bool misc_commandscript::HandleNearGraveCommand ( ChatHandler handler,
Optional< std::string >  teamArg 
)
inlinestatic

Definition at line 1018 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandlePInfoCommand()

static bool misc_commandscript::HandlePInfoCommand ( ChatHandler handler,
Optional< PlayerIdentifier arg 
)
inlinestatic

Definition at line 1464 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandlePlayAllCommand()

static bool misc_commandscript::HandlePlayAllCommand ( ChatHandler handler,
uint32  soundId,
Optional< int32 broadcastTextId 
)
inlinestatic

Definition at line 2469 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandlePossessCommand()

static bool misc_commandscript::HandlePossessCommand ( ChatHandler handler)
inlinestatic

Definition at line 2484 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandlePvPstatsCommand()

static bool misc_commandscript::HandlePvPstatsCommand ( ChatHandler handler)
inlinestatic

Definition at line 122 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleRecallCommand()

static bool misc_commandscript::HandleRecallCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 809 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleRepairitemsCommand()

static bool misc_commandscript::HandleRepairitemsCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 2258 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleRespawnCommand()

static bool misc_commandscript::HandleRespawnCommand ( ChatHandler handler)
inlinestatic

Definition at line 1830 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleReviveCommand()

static bool misc_commandscript::HandleReviveCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 616 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleSaveAllCommand()

static bool misc_commandscript::HandleSaveAllCommand ( ChatHandler handler)
inlinestatic

Definition at line 856 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleSaveCommand()

static bool misc_commandscript::HandleSaveCommand ( ChatHandler handler)
inlinestatic

Definition at line 832 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleSetSkillCommand()

static bool misc_commandscript::HandleSetSkillCommand ( ChatHandler handler,
Variant< Hyperlink< skill >, uint32 skillId,
uint32  level,
Optional< uint32 maxSkillArg 
)
inlinestatic

Definition at line 1412 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleShowAreaCommand()

static bool misc_commandscript::HandleShowAreaCommand ( ChatHandler handler,
uint32  areaId 
)
inlinestatic

Definition at line 1076 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleSummonCommand()

static bool misc_commandscript::HandleSummonCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 467 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleUnAuraCommand()

static bool misc_commandscript::HandleUnAuraCommand ( ChatHandler handler,
Variant< SpellInfo const *, EXACT_SEQUENCE("all")>  spellArg 
)
inlinestatic

Definition at line 315 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleUnbindSightCommand()

static bool misc_commandscript::HandleUnbindSightCommand ( ChatHandler handler)
inlinestatic

Definition at line 2515 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleUnFreezeCommand()

static bool misc_commandscript::HandleUnFreezeCommand ( ChatHandler handler,
Optional< std::string >  targetNameArg 
)
inlinestatic

Definition at line 2376 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleUnmuteCommand()

static bool misc_commandscript::HandleUnmuteCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 1945 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleUnPossessCommand()

static bool misc_commandscript::HandleUnPossessCommand ( ChatHandler handler)
inlinestatic

Definition at line 2494 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleUnstuckCommand()

static bool misc_commandscript::HandleUnstuckCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 900 of file cs_misc.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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