Thread: warpto
View Single Post
  #4  
Old 05-16-2001, 09:47 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Heh.. Id do it this way..

NPC Code:

if (created) setgif system.gif;
if (playerchats) {
if (strequals(#g,GP)) {
setstring this.lastuse,#a;
tokenize #c;
if (strequals(#t(0),jailaccount)) {
setstring this.jail,#t(1);
with(getplayer(#s(this.jail))) {
this.test = 1;
}
if (this.test == 1) {
this.test = 0;
with (getplayer(#s(this.jail))) {
warpto #F,playerx,playery;
setlevel2 jail.graal,30.5,30;
with(getplayer(#s(this.lastuse))) {
warpto #F,playerx,playery;
message Jailed #s(this.jail)!
sleep 3;
message ;
}
}
} else if (this.test == 0) {
message That Accout is invalid;
sleep 3;
message ;
}
}
}
}



Id do it nmore liek that.... No real confusing strings or anything... And it will tell you if you typed an account thats not on the server... No server junks... Only works with NPC server (or course) But it works. juslt like change jail.graal to your jail level and make it an officail jail level via serveroptions.

=)
__________________

subliminal message: 1+1=3