Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-01-2008, 06:52 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Well, I tried quite a bit more experimenting, but still haven't found a good solution. So far, I tried moving the section highlighted in red in the post above to the EVENT_ATTACK section and then it was working. But, even there I have another issue with it. I am spawning 10 NPCs at a time, so I would like for it to send hate to all 10 of them, but it is only sending it to the nearest NPC for each of the 3 types.

I still can't figure out why it won't work in the timer section like I posted it. I even made static spawned versions of the NPCs and commented out the spawning part and it still does nothing and breaks the script at that point.

It seems like the section in question is actually just doing this below, but I dunno why I can't just put it in the way it is here:
$EntityList->GetMobByNpcTypeID(2700659)->CastToNPC()->AddToHateList($client, 1);
$EntityList->GetMobByNpcTypeID(2700660)->CastToNPC()->AddToHateList($client, 1);
$EntityList->GetMobByNpcTypeID(2700661)->CastToNPC()->AddToHateList($client, 1);

So, I need a way for it to send hate to ALL npcs with that same ID. Otherwise, I will have to make 30 (10 spawns with random chance to spawn 1 of 3 different types) different NPC IDs and make them all individuals, which I would prefer to avoid. And the only other thing I need is to figure out why it won't work in the section with the timer as I posted originally.

If someone knows a better way to send hate and do what I need, I am open to suggestions
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
 

Thread Tools
Display Modes

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:43 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