View Single Post
  #6  
Old 06-02-2003, 04:05 PM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Code:
			else if (strstr(strlwr(arglist[0]),"movepc")) {
				if (mob->IsClient())
					mob->CastToClient()->MovePC((atoi(arglist[1])),(atoi(arglist[2])),(atoi(arglist[3])),(atoi(arglist[4])));
			}
If you can compile the source, add that code to parser.cpp at about line 1694 - that'll let you input a function like this:

if($1 == "sebilis") { movepc("sebilis","x","y","z") }

X, Y, and Z is the location within the zone you want the player to be sent to - if need be, zone to that zone, find the spot you want to send them to, and target yourself. Now type #loc and input those coordinates into the quest script.

Saves you having to modify the spells file if you don't wanna create custom spells for your server.
__________________
Xeldan
Lead Content Designer
Shards of Dalaya
Reply With Quote