Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 04-21-2009, 03:43 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

You may be misunderstanding what this is for. This will not effect how any current NPC scripts work. So, you won't see 10 NPCs in pok responding to a hail unless that is something that was setup specifically to be that way by the script writer. I don't think hail should be ignored. If someone wants hail to require a target, they could set it that way.

What if I wanted to write a quest where people have to go through a zone looking for an invisible NPC and the only way to find them is by running around hailing to see if they get a response?

Code:
sub EVENT_SPAWN {
   $x = $npc->GetX();
   $y = $npc->GetY();
   quest::set_proximity($x - 500, $x + 500, $y - 500, $y + 500);
}

sub EVENT_PROXIMITY_SAY {

        if($text=~/Hail/i) {
                quest::me("A mysterious voice responds from the darkness.");
                quest::say("So, you have found me at last.  Would you please [free] my soul?");
        }

#and so on...
}
IMO, the proximity say should have no restrictions, because any wanted restriction could be added by the script writer in the individual script. Proximity say probably won't be used overly much, so there isn't much reason to set restrictions on it. But, it will certainly be nice to have the option to use it now.

I didn't check the code for it yet, but I was curious if Proximity says would work even if the NPC has aggro on the player?
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!

Last edited by trevius; 04-21-2009 at 11:52 AM..
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 08:43 AM.


 

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