◆ honor_commandscript()
| honor_commandscript::honor_commandscript |
( |
| ) |
|
|
inline |
Definition CommandScript.h:25
◆ GetCommands()
Implements CommandScript.
31 {
33 {
36 };
37
39 {
40 { "add", honorAddCommandTable },
42 };
43
45 {
46 { "honor", honorCommandTable }
47 };
48 return commandTable;
49 }
@ SEC_GAMEMASTER
Definition Common.h:59
static bool HandleHonorAddCommand(ChatHandler *handler, uint32 amount)
Definition cs_honor.cpp:51
static bool HandleHonorUpdateCommand(ChatHandler *handler)
Definition cs_honor.cpp:86
static bool HandleHonorAddKillCommand(ChatHandler *handler)
Definition cs_honor.cpp:68
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 |
52 {
54 if (!target)
55 {
57 return false;
58 }
59
60
62 return false;
63
65 return true;
66 }
@ LANG_PLAYER_NOT_FOUND
Definition Language.h:545
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:6082
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: