Quote:
Originally Posted by Kingly_Krab
Take note of the changes. This will let you aggro zone on any mob target (NPCs/Clients).
Code:
void command_aggrozone(Client *c, const Seperator *sep) {
if(!c)
return;
Mob *m = c->CastToMob();
if (!m)
return;
uint32 hate = atoi(sep->arg[1]); //should default to 0 if we don't enter anything
entity_list.AggroZone(m, hate);
c->Message(0, "Train to you! Last chance to go invulnerable...");
}
Code:
void command_aggrozone(Client *c, const Seperator *sep) {
if(!c)
return;
Mob *m = (c->GetTarget() ? c->GetTarget()->CastToMob() : c->CastToMob());
if (!m)
return;
uint32 hate = atoi(sep->arg[1]); //should default to 0 if we don't enter anything
entity_list.AggroZone(m, hate);
if (m->IsClient())
m->CastToClient()->Message(0, "Train to you! Last chance to go invulnerable...");
}
|
should i merge this to my database or will this be in the next eqemu release? if merge what are the steps using hiedi thanks !!