Jump to content
  • 0

Month, day and exact time for event.


Kambroz

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/22/16
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/22/16
  • Last Seen:  

Sorry, but it runs every reload, at 3:45 even though it's not the 15th. Is that normal?

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

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
}

 

  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/22/16
  • Last Seen:  

Is not working

No name.jpg

Edited by Kambroz
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/22/16
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

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 by Cyro
  • Upvote 1
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...