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

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-22-2003, 08:57 AM
Elrach
Sarnak
 
Join Date: Apr 2003
Posts: 66
Default

I added a new function to the quest parser on my build. I've not submitted it yet for CVS. I've not had much time to work on the project lately, and there are other functions I was thinking about adding to the quest parser. This one ports the user to the safepoint of destinationzone. It could easily be upgraded to port you to any point in any zone.

Using the new quest system:

zoneto(destinationzone)

Patch to parser.cpp
Code:
826,829d825
<          else if (strstr(strlwr(arglist[0]),"zoneto")) {
<             if (mob->IsClient())
<                mob->CastToClient()->MovePC(arglist[1],database.GetSafePoint(arglist[1],"x"),database.GetSafePoint(arglist[1],"y"),database.GetSafePoint(arglist[1],"z"));
<          }
Here is a sample quest file that works with it.
Code:
EVENT_SAY {
if($1- =~ "Hail"){
SAY("Hello $name, I can send you to [Sebilis] pronto if you wish.")
}
if($1- =~ "Sebilis"){
SAY("Have a safe trip!")
zoneto(sebilis)
}
__________________
Elrach
Raven City Server
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:49 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