View Single Post
  #24  
Old 08-27-2009, 11:57 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by sssssssssss View Post
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(pobjdest)
{
  
pobj.setlevel2(dest[0], dest[1], dest[2]);

Reply With Quote