Jump to content
  • 0

event_timer question


Question

Posted

Hi! I've found a script, and i wanted to fine-tune it to my server, it spawns mvps at every 3 hour, but i want to spawn them per 1 minute, ive set the timer but didnt work.

May you fix me / advice me please? script->

-    script    mvpinis    -1,{
OnInit:
setarray .Map$[0],"sec_pri";
setarray .MVP[0],1511,1785,1630,2320,1039,1272,1719,1389,1115,1418,1252,1086,1885,1492,1734,1251,1688,2156,1373,1147,1087,1190,1038,1157,1159,1623,1583,1312,1685,1658;
end;

OnMinute00:
killmonster .Map$[ .RandMap ],"All";
if( .event_timer%3 ) end; //<--- im not sure of this part, first it kills the mvps that were not killed on the last event
.event_timer++;//then if 8 hours transcurred after OnMinute00: the event will start ? because i see a end; there
set .RandMap,rand( getarraysize( .Map$ ) );
set .RandMVP,rand( getarraysize( .MVP ) );
monster .Map$[ .RandMap ],0,0,"MVP Event",.MVP[ .RandMVP ],1,strnpcinfo(0)+"::OnKilled";
announce "Invasion MvP : "+getmonsterinfo( .MVP[ .RandMVP ],0 )+" occurs in "+.Map$[ .RandMap ]+" .",0;
end;

OnKilled:
announce "Invasion MvP : All MvPs have been hunted",0;
set mvp_point, mvp_point + 1;// +1 mvp point
end;
}

 

4 answers to this question

Recommended Posts

  • 0
Posted
24 minutes ago, Sunset said:

you mean, triggers at: 00:00, then 00:01, 00:02, 00:03, and so on?

OnMinute00 = Triggers Every Hour

OnMinute20 = Triggers every 20 minutes of an hour (ex. 1:20, 2:20,3:20 and so on)

  • 0
Posted
4 minutes ago, crazyarashi said:

OnMinute00 = Triggers Every Hour

OnMinute20 = Triggers every 20 minutes of an hour (ex. 1:20, 2:20,3:20 and so on)

Thank you :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...