
09-25-2001, 07:06 AM
|
|
Banned
|
 |
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
|
|
|
here is my code,
which i made yesterday
// NPC made by Merlin
//with teaching from kai ;p
//level warper
if (playerenters) {
toweapons Warper;
setgif shadoworb.gif;
}
if (weaponfired) {
say2 Say,#b
warpto x y levelname.graal#b
to warp.#b
-Merlin;
}
if (playerchats) {
tokenize #c;
if (tokenscount==4) {
if (onduty) {
this.x=strtofloat(#t(1));
this.y=strtofloat(#t(2));
setstring local.level,#t(3);
timeout = .5;
}
else{
setplayerprop #c,Go on duty before warping!;
}
}
}
if (timeout) {
setlevel2 #s(local.level),this.x,this.y;
} |
|
|
|