Jump to content
  • 0

event_timer question


Sunset

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   3
  • Joined:  05/05/13
  • Last Seen:  

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;
}

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

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)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  746
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

OnMinute00: = Every 1hour of 1min

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   3
  • Joined:  05/05/13
  • Last Seen:  

48 minutes ago, Bringer said:

OnMinute00: = Every 1hour of 1min

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   3
  • Joined:  05/05/13
  • Last Seen:  

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 :)

Link to comment
Share on other sites

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.

×
×
  • Create New...