Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 12-31-2004, 06:17 AM
CaTigus CaTigus is offline
Scripter
Join Date: Oct 2002
Posts: 80
CaTigus is on a distinguished road
You could do:
NPC Code:

else if (players[i].x in |x-3,x+3|&&players[i].y in |y-3,y+3|) {
this.w++;
copylevel levels/neutral-battle.nw,levels/neutral-battle#v(this.w).nw;
canwarp;
with(players[i]) {
attachplayertoobj 0,id;
setlevel2 neutral-battle#v(this.w).nw,30,20;
detachplayer;
}
timeout=1;
}


and in levels/neutral-battle.nw put this script exactly:
NPC Code:

if (playerleaves && playercount<0) {
deletelevel #L;
}


But make sure you have a backup of the original neutral battle.
We're deleting the level to make less lag. Now if that doesn't work i'll get online and play with it.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:02 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.