eqemu-server/zone/gm_commands/aggrozone.cpp
Chris Miles f201d4c999
[int64] Support for HP / Mana / End / Damage / Hate (#2091)
* Initial int64 work

* Hate 64 bit

* Update special_attacks.cpp

* Aggro / Damage / Hate int64

* NPC edit adjustments

* Fix bot compile

* More int64 adjustments

* More int64 references

* npcedit references

* aggrozone

* More int64 changes

* More int64 changes for damage

* Many more damage int64 references

* More spell damage int64 conversions

* HealDamage

* Damage fully working

* Remove debug

* Add migration

* More int64 adjustments

* Much wow, many int64

* More int64

* PR adjustments
2022-05-07 22:32:02 -05:00

24 lines
411 B
C++
Executable File

#include "../client.h"
void command_aggrozone(Client *c, const Seperator *sep)
{
Mob *target = c;
if (c->GetTarget()) {
target = c->GetTarget();
}
uint64 hate = 0;
if (sep->IsNumber(1)) {
hate = std::strtoll(sep->arg[1], nullptr, 10);
}
entity_list.AggroZone(target, hate);
c->Message(
Chat::White,
fmt::format(
"Aggroing zone on {}.",
c->GetTargetDescription(target)
).c_str()
);
}