Go Back   EQEmulator Home > EQEmulator Forums > General > General::General Discussion

General::General Discussion General discussion about EverQuest(tm), EQEMu, and related topics.
Do not post support topics here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:42 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3