Quote:
Originally Posted by sssssssssss
unfortunately, Im actually doing this for a guildhouse on a server, so I have no access to a DB NPC, and they wont let me. That would actually be easier on me than this for some reason. So this.flags will work fine for this too though correct?
And also, on the server warp, how do you get it to go on a level npc? I cant get it to work. :/
|
this vars on the NPC itself will work if the level is not emptied or updated.
As for setlevel2, it can be used on the serverside in any NPC as long as you have an object (typically a player) you are sending.
I believe people have already posted examples of this but if you want a function purely for warping players to a waiting room or spar room, you could write a function sending a player and another param (with the level name, an int, whatever) to warp the player.
PHP Code:
//pre: array dest contains levelname, x, y
//post: warps player pobj to dest.
function warpPlayer(pobj, dest)
{
pobj.setlevel2(dest[0], dest[1], dest[2]);
}