View Single Post
  #6  
Old 12-22-2001, 02:10 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Re: With getplayer ...

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;
}
}
}

__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote