◆ honor_commandscript()
honor_commandscript::honor_commandscript |
( |
| ) |
|
|
inline |
Definition CommandScript.h:25
◆ GetCommands()
Implements CommandScript.
39 {
41 {
44 };
45
47 {
48 { "add", honorAddCommandTable },
50 };
51
53 {
54 { "honor", honorCommandTable }
55 };
56 return commandTable;
57 }
@ SEC_GAMEMASTER
Definition Common.h:59
static bool HandleHonorAddCommand(ChatHandler *handler, uint32 amount)
Definition cs_honor.cpp:59
static bool HandleHonorUpdateCommand(ChatHandler *handler)
Definition cs_honor.cpp:94
static bool HandleHonorAddKillCommand(ChatHandler *handler)
Definition cs_honor.cpp:76
std::vector< ChatCommandBuilder > ChatCommandTable
Definition ChatCommand.h:46
References HandleHonorAddCommand(), HandleHonorAddKillCommand(), HandleHonorUpdateCommand(), and SEC_GAMEMASTER.
◆ HandleHonorAddCommand()
static bool honor_commandscript::HandleHonorAddCommand |
( |
ChatHandler * |
handler, |
|
|
uint32 |
amount |
|
) |
| |
|
inlinestatic |
60 {
62 if (!target)
63 {
65 return false;
66 }
67
68
70 return false;
71
73 return true;
74 }
@ LANG_PLAYER_NOT_FOUND
Definition Language.h:540
void SendErrorMessage(uint32 entry)
Definition Chat.cpp:216
Player * getSelectedPlayer() const
Definition Chat.cpp:374
bool HasLowerSecurity(Player *target, ObjectGuid guid=ObjectGuid::Empty, bool strong=false)
Definition Chat.cpp:57
static ObjectGuid const Empty
Definition ObjectGuid.h:120
bool RewardHonor(Unit *victim, uint32 groupsize, int32 honor=-1, bool awardXP=true)
Definition Player.cpp:6105
References ObjectGuid::Empty, ChatHandler::getSelectedPlayer(), ChatHandler::HasLowerSecurity(), LANG_PLAYER_NOT_FOUND, Player::RewardHonor(), and ChatHandler::SendErrorMessage().
Referenced by GetCommands().
◆ HandleHonorAddKillCommand()
static bool honor_commandscript::HandleHonorAddKillCommand |
( |
ChatHandler * |
handler | ) |
|
|
inlinestatic |
◆ HandleHonorUpdateCommand()
static bool honor_commandscript::HandleHonorUpdateCommand |
( |
ChatHandler * |
handler | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: