How can i make this work online?
it works offline perfect, but when i try it online, it wont shwio the time or anything i say
Its for babylon, so no p2p plz.
Heres the first NPC:
NPC Code:
// NPC made by Tyrial
if (playerenters) {
}
if (playertouchsme) {
toweapons Portal Layer;
}
if (playerchats) {
if (startswith(layportal,#c)) {
tokenize #c;
if (tokenscount==6) {
playersprite=17;
playerdir=2;
putnpc warptile.gif,babylonwarp.txt,playerx+0.5,playery+3 ;
sleep 0.1;
setplayerprop #c,Warp Layed!;
play chest.wav;
} else { say2 Acces Denied. Use correct syntax:#blayportal <levelname> #b<x> <y> <time> <name>.#b
Use ""'s to or it wont work.;
}
}
}
if (weaponfired) {
say2 Portal Layer.#bTo put an portal say:#blayportal <levelname> #b<x> <y> <time> <name>.#b
Use ""'s to or it wont work.;
}
heres the txt file:
NPC Code:
if (created) {
tokenize #c;
message #v(this.timer) seconds left. It will warp you to: #s(this.warpname);
setstring this.warplevel,#t(1);
this.warpx=strtofloat(#t(2));
this.warpy=strtofloat(#t(3));
this.timer=strtofloat(#t(4));
setstring this.warpname,#t(5);
}
if (timeout) {
message #v(this.timer) seconds left. It will warp you to: #s(this.warpname);
this.timer-=1;
}
if (playertouchsme) {
setlevel2 #s(this.warplevel),this.warpx,this.warpy;
}
timeout=1;
if (this.timer<=-2) {
destroy;
}
timereverywhere;