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 12-14-2006, 02:36 PM
JrFaust
Sarnak
 
Join Date: Aug 2005
Location: Overthere
Posts: 82
Question Help with quest::set_proximity

So far what I
Reply With Quote
  #2  
Old 12-14-2006, 02:46 PM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

heres a working example of a proximity..

Code:
sub EVENT_SPAWN
{
	$x = $npc->GetX();
	$y = $npc->GetY();
	$z = $npc->GetZ();
	quest::set_proximity($x - 20, $x + 20, $y - 8, $y + 8, $z - 15, $z + 50);
}

sub EVENT_ENTER
{
quest::movepc(34,-780,2120,5);
}
quest::set_proximity(minx,maxx,miny,maxy,miz,maxz) is what it is so you have to specify the exact locs you can even just make it like..

quest::set_proximity(200,-200,100,-100,10,-10);

this would make a proximity at those same coords.

hope this makes sense and helps

edit: yours is probably working but you have to go to the coords 0,30
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
  #3  
Old 12-14-2006, 02:47 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Code:
sub EVENT_SPAWN
{
	$x = $npc->GetX();
	$y = $npc->GetY();
	quest::set_proximity($x - 30, $x + 30, $y - 30, $y + 30);
}
EDIT;
I fixed the last line, yours was bad

Last edited by Angelox; 12-14-2006 at 10:51 PM..
Reply With Quote
  #4  
Old 12-14-2006, 03:09 PM
JrFaust
Sarnak
 
Join Date: Aug 2005
Location: Overthere
Posts: 82
Default

oh see I thought that the code ment the distance away from the NPC.

sub EVENT_SPAWN {
quest::set_proximity(0,30,0,30,0,30);
}

So that 0 would be right on top of the NPC and 30 would be 30 units away from the NPC in all directions. But what your saying is that it means that I have to be at 0,30 to get the reaction, yes or no?
Reply With Quote
  #5  
Old 12-14-2006, 03:26 PM
JrFaust
Sarnak
 
Join Date: Aug 2005
Location: Overthere
Posts: 82
Default

I just tested the code below and that works just as I wanted thank you Angelox and Cripp.
Code:
sub EVENT_SPAWN
{
	$x = $npc->GetX();
	$y = $npc->GetY();
	$z = $npc->GetZ();
	quest::set_proximity($x - 30, $x + 30, $y - 30, $y + 30, $z - 30, $z + 30);
}
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 06:23 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3