Kambroz Posted May 25, 2017 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 14 Reputation: 0 Joined: 08/22/16 Last Seen: March 30, 2021 Share Posted May 25, 2017 Hi friends, I have a question. How can I put an event on an exact day of the month with its respective hour and minute? for example: Every 14 days at 3:45 p.m. I wish you could help me, I will be eternally grateful. PD: An apology for my English Quote Link to comment Share on other sites More sharing options...
0 Kambroz Posted May 25, 2017 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 14 Reputation: 0 Joined: 08/22/16 Last Seen: March 30, 2021 Author Share Posted May 25, 2017 Sorry, but it runs every reload, at 3:45 even though it's not the 15th. Is that normal? Quote Link to comment Share on other sites More sharing options...
0 Secrets Posted May 25, 2017 Group: Developer Topic Count: 36 Topics Per Day: 0.01 Content Count: 588 Reputation: 437 Joined: 01/26/16 Last Seen: Wednesday at 03:00 PM Share Posted May 25, 2017 24 minutes ago, Cyro said: if(gettime(DT_DAYOFMONTH)==14) OnClock0345: { mes "14th day of month event starts now, ie 3:45."; close; } https://github.com/rathena/rathena/wiki/Timers_(Scripting) https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L3003-L3019 Should be OnClock0345: if(gettime(DT_DAYOFMONTH)==14) { { // dosomething } 2 Quote Link to comment Share on other sites More sharing options...
0 Kambroz Posted May 25, 2017 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 14 Reputation: 0 Joined: 08/22/16 Last Seen: March 30, 2021 Author Share Posted May 25, 2017 (edited) Is not working Edited May 25, 2017 by Kambroz Quote Link to comment Share on other sites More sharing options...
0 Kambroz Posted May 25, 2017 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 14 Reputation: 0 Joined: 08/22/16 Last Seen: March 30, 2021 Author Share Posted May 25, 2017 It has already been solved, thank you very much for your help. I solve it using the first solution that gave me, Cyro supporting me with the contribution of Secret. Spoiler if(gettime(5)==14 || gettime(5)==28) OnClock0345: { mes "14th day of month event starts now, ie 3:45."; close2; end; } Quote Link to comment Share on other sites More sharing options...
-1 Cyro Posted May 25, 2017 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 1138 Reputation: 290 Joined: 04/29/13 Last Seen: July 20, 2024 Share Posted May 25, 2017 (edited) if(gettime(DT_DAYOFMONTH)==14) OnClock0345: { mes "14th day of month event starts now, ie 3:45."; close; } https://github.com/rathena/rathena/wiki/Timers_(Scripting) https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L3003-L3019 Edited May 25, 2017 by Cyro 1 Quote Link to comment Share on other sites More sharing options...
Question
Kambroz
Hi friends, I have a question. How can I put an event on an exact day of the month with its respective hour and minute?
for example:
Every 14 days at 3:45 p.m.
I wish you could help me, I will be eternally grateful. PD: An apology for my English
Link to comment
Share on other sites
5 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.