Jump to content
  • 0

OnClock or OnHour?


Pneuma

Question


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

Okay so..I'm trying to make a script that happens every hour for all 24; How would I do this?(Never used timers before)

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

Just use :

mapname,xxx,yyy,5<tab>script<tab>NPCNAME<tab>ID,{
OnMinute00:
//Things to do ,which will happen every Hour at Minute 00,you can
//change it to Minute 30,too.
}

Edited by Rikimaru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

Thanks Riki :)

What about 1hour15 minutes

Edited by Pneuma
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

If you want to have it every hour at the Minute of 15 then change

OnMinute00:

to

OnMinute15:

If you want to start the Event every 1 Hour and 15 Minutes then you could make it like this:

mapname,xxx,yyy,5<tab>script<tab>npcname<tab>ID,{
OnClock0115:
OnClock0330:
OnClock0445:
OnClock0600:
OnClock0715:
OnClock0830:
OnClock0945:
OnClock1100:
OnClock1215:
OnClock1330:
OnClock1445:
OnClock1600:
OnClock1715:
OnClock1830:
OnClock1945:
OnClock2100:
OnClock2215:
OnClock2330:
OnClock0030:
mes .@npcname$;
mes "Things to do at that time goes here.";
close;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  04/06/12
  • Last Seen:  

i also got question how to make event start every hr and after start end in 30 min. then after end w8 1 hr and gain start

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

Try something like this :

mapname,xxx,yyy,5<tab>script<tab>NPCNAME<tab>ID,{
OnMinute00:
announce "Start event,event will be over in 30 Minutes",0;
enablenpc "NPC's";
Start event scritps;
close;
end;
OnMinute30:
announce "Event is over now.",0;
disablenpc "NPC's";
close;
end;
}

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...