◆ honor_commandscript()
honor_commandscript::honor_commandscript |
( |
| ) |
|
|
inline |
Definition CommandScript.h:25
◆ GetCommands()
Implements CommandScript.
32 {
34 {
37 };
38
40 {
41 { "add", honorAddCommandTable },
43 };
44
46 {
47 { "honor", honorCommandTable }
48 };
49 return commandTable;
50 }
@ SEC_GAMEMASTER
Definition Common.h:59
static bool HandleHonorAddCommand(ChatHandler *handler, uint32 amount)
Definition cs_honor.cpp:52
static bool HandleHonorUpdateCommand(ChatHandler *handler)
Definition cs_honor.cpp:87
static bool HandleHonorAddKillCommand(ChatHandler *handler)
Definition cs_honor.cpp:69
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 |
53 {
55 if (!target)
56 {
58 return false;
59 }
60
61
63 return false;
64
66 return true;
67 }
@ 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:6084
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: