mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
22 lines
500 B
C++
Executable File
22 lines
500 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_damage(Client *c, const Seperator *sep)
|
|
{
|
|
if (c->GetTarget() == 0) {
|
|
c->Message(Chat::White, "Error: #Damage: No Target.");
|
|
}
|
|
else if (!sep->IsNumber(1)) {
|
|
c->Message(Chat::White, "Usage: #damage x");
|
|
}
|
|
else {
|
|
int32 nkdmg = atoi(sep->arg[1]);
|
|
if (nkdmg > 2100000000) {
|
|
c->Message(Chat::White, "Enter a value less then 2,100,000,000.");
|
|
}
|
|
else {
|
|
c->GetTarget()->Damage(c, nkdmg, SPELL_UNKNOWN, EQ::skills::SkillHandtoHand, false);
|
|
}
|
|
}
|
|
}
|
|
|