View Single Post
  #13  
Old 07-10-2016, 04:38 PM
mudman1
Sarnak
 
Join Date: Jan 2003
Posts: 64
Default

Quote:
Originally Posted by Kingly_Krab View Post
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 !!
Reply With Quote