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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 08-03-2010, 01:10 AM
blindaviator
Sarnak
 
Join Date: Jul 2010
Posts: 61
Default Help with Set Proximity

I am trying to set an area effect with the quest::set_proximity and using an invisible man...

Can anyone give me a quick rundown on how this function works?? Have been trying to setup proximities in certain areas to prevent un-flagged players from getting past a certain point... Would like to have it move them back a short distance when they enter the area... Not sure how I would write such a script... Not 100% sure how the function works...

I tried a few test setups but so far haven't had any luck with it working...

Anyone give me a few pointers??

Thx
Reply With Quote
  #2  
Old 08-03-2010, 07:05 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Code:
sub EVENT_SPAWN {
  quest::set_proximity($x - 5, $x + 5, $y - 5, $y + 5);
}

sub EVENT_ENTER {
  quest::say("Hey, $name just entered my 10 x 10 box.");
}

sub EVENT_EXIT {
  quest::say("Goodbye, $name.");
}
Reply With Quote
  #3  
Old 08-03-2010, 09:27 AM
blindaviator
Sarnak
 
Join Date: Jul 2010
Posts: 61
Default

Hey I appreciate it... I will work with it and see what I get...

It makes more sense now...
Reply With Quote
  #4  
Old 08-03-2010, 10:43 AM
blindaviator
Sarnak
 
Join Date: Jul 2010
Posts: 61
Default

Well it seems to work but if you don't specify the Z coordinates then it is z+- infinite it seems... Bad for an area that has different levels...

If you set the Z then it seems to be a +- set amount?? I can't seem to get the +- on the Z to go more than about 20... Is there a trick to it?

I have the Y and X +- 65 and Z +- 50 but the Z seems to kick in around 20 or so.. Is there some latency for the proximity check and that is what I am seeing?
Reply With Quote
  #5  
Old 08-03-2010, 11:07 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

The proximities are checked once per second (this is set in features.h and requires a recompile to change).
Reply With Quote
  #6  
Old 08-04-2010, 08:35 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Yeah, proximities are not really the best for completely restricting an area of a zone unless the proximity range is bigger than someone could possibly pass within 1 second, or else if timed correctly, people can get through.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #7  
Old 08-04-2010, 09:43 AM
steve
Discordant
 
Join Date: Jan 2002
Posts: 305
Default

Not to mention that a ton of people seem to use MQ, which they could bypass any proximity checks easily by warping past them.
Reply With Quote
Reply


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 05:11 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