Hi, please help me to fix this script; this is a npc who spawn a random monster
The problem who i find are:
On: StartEvent i can't insert the "close"
if on the map there are 30 mob the event is turned off until at least one monster is killed
If is possible automatizate the event: "StartEvent and StopEvent" if there is at least one player
thx a lot
pvp_n_3-5,99,99,5 script Brancher 757,{
menu "Start",StartEvent,"Stop",StopEvent,"Cancel",cancel;
StartEvent: // To turn the event on...
set .active,1;
dispbottom "Started";
goto OnInit;
StopEvent: // To turn it off...
set .active,0;
dispbottom "Stopped";
close2;
goto OnInit;
cancel:
close;
OnInit:
while (.active == 1) { // Loop until event is turned off.
monster "pvp_n_3-5",0,0,"--ja--",-1,1; // Summon a random monster at random coordinates.
sleep 5000; // Wait 5 seconds.
}
}
Question
Belkan
Hi, please help me to fix this script; this is a npc who spawn a random monster
The problem who i find are:
On: StartEvent i can't insert the "close"
if on the map there are 30 mob the event is turned off until at least one monster is killed
If is possible automatizate the event: "StartEvent and StopEvent" if there is at least one player
thx a lot
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.