mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
* [Commands] Cleanup #interrupt Command # Notes - Cleanup messages and logic. * Update command.cpp
20 lines
494 B
C++
Executable File
20 lines
494 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_interrupt(Client *c, const Seperator *sep)
|
|
{
|
|
const auto arguments = sep->argnum;
|
|
|
|
uint16 interrupt_message = 0x01b7, interrupt_color = 0x0121;
|
|
|
|
if (arguments >= 1 && sep->IsNumber(1)) {
|
|
interrupt_message = static_cast<uint16>(Strings::ToUnsignedInt(sep->arg[1]));
|
|
}
|
|
|
|
if (arguments == 2 && sep->IsNumber(2)) {
|
|
interrupt_color = static_cast<uint16>(Strings::ToUnsignedInt(sep->arg[2]));
|
|
}
|
|
|
|
c->InterruptSpell(interrupt_message, interrupt_color);
|
|
}
|
|
|