Quote:
Originally posted by Kumada
Would this work?? i want it so it would send the player to x=30 y=30 to the level. But it only works if the player is in that level
so if i said "unjail kumada" it would only unjail me if i was in jail.nw not anywhere else.
Heres what i have..
if (playerchats&&strequals(#g,Guild)){
tokenize #c;
if (strequals(unjail,#c)){
with (getplayer(#t(1))&&strequals(#l,Jail.nw)){
playerx=30;
playery=30;
}}}
|
Try this. I think I got the setlevel2 command right... Remember, this is a p2p only serverside npc.
NPC Code:
if (playerchats && strequals(#g,Guild)) {
tokenize #c;
if (strequals(unjail,#t(0))) {
with (getplayer(#t(1))) {
setlevel2 Jail.nw,30,30;
}
}
}