Log in

View Full Version : Plane of knowledge PORTS


izagod
05-21-2003, 07:08 PM
has any one found out how to make the knowlege portels work yet? it would be real nice to have for the legit servers. with pok working and then add in some Translocaters and quests for other spots like spires and boats and call it good for now, pok does not need to be populated hehe there realy wasnt much in there but a bank and some spells, but the portels them selfs would be so usefull! any ideas? :arrow: :idea: :?: :!: :o

Elrach
05-22-2003, 08:57 AM
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
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.
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)
}