Thread: NPC warping
View Single Post
  #25  
Old 12-31-2004, 02:26 AM
CaTigus CaTigus is offline
Scripter
Join Date: Oct 2002
Posts: 80
CaTigus is on a distinguished road
Quote:
Originally Posted by falco10291029
No, that means I know what i'm doing, but I made a mistake that I didn't realize. Beside,s I mean I made the script, by understand, so I know how it works, i just don't know why it doesnt work (get it?)
NPC Code:

else if (players[i].x in |x-3,x+3|&&players[i].y in |y-3,y+3|) {
this.w=int(random(0,1000));
copylevel neutral-battle.nw,neutral-battle#v(this.w).nw;<-Copylevel requires the folder names example:
copylevel levels/battlelevels/neutral-battle.nw,levels/battlelevels/neutral-battle#v(this.w).nw; and I really recommend making your own folder for these levels.
canwarp;
with(players[i]) {
detatchplayer;
setlevel2 neutral-battle#v(this.w).nw,30,20;
attachplayertoobj 0,id;
}
timeout=1;
}


Last edited by CaTigus; 12-31-2004 at 03:48 AM..
Reply With Quote