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)
}