Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-16-2012, 11:25 PM
chrsschb's Avatar
chrsschb
Dragon
 
Join Date: Nov 2008
Location: GA
Posts: 904
Default

A quick and sloppy proximity, abuse it however you wish. Set the x or y values to define your proximity. A zone line running north to south would probably look something like x-5, x+5, y-3000, y+3000 (or however long the zone line should be).

The move char function below is set for just outside the wizard spire in North Ro. The first number is the zone number (34), the next values are X, Y, Z, and Heading (H). Heading is not required, I believe the default heading is 270 degrees.

Also remember the /loc command shows Y, X, Z where as #loc shows X, Y, Z. No idea why...

Code:
sub EVENT_SPAWN
	{
	my $x = $npc->GetX();
	my $y = $npc->GetY();
	quest::set_proximity($x - 50, $x + 50, $y - 50, $y + 50);
	}
	
sub EVENT_ENTER
	{
	quest::movepc(34, 828, 1418.1,5.2,134.4); 
	}
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 11:36 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