Jump to content
  • 0

H> How to add time?


Quesooo

Question


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.08
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

Hi good day i would like to ask how to add time on this event https://github.com/rathena/rathena/blob/master/npc/custom/events/disguise.txt

 

Example :

- if the player answer is correct the npc will announce something like this 

Unknown is correct ! I was disguise as Plasma (guess time 15 sec)

 

thank you ^_^

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.08
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

41 minutes ago, Vegas said:

OnClock0000:
OnClock0200:
OnClock0400:
OnClock0600:
OnClock0800:
OnClock1000:
OnClock1200:
OnClock1400:
OnClock1600:
OnClock1800:
OnClock2000:
OnClock2200:

add you time :)

 

when the correct answer hit by the players the announcement should be

 

- Unknown is correct ! i was disguise a Plasma ( guess time 15sec )

image.png.d9f225d1dd6cc977616a1f0625d61d3c.png

i want to change this announcement with time interval how long does players guess the correct answer ^_^

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

8 hours ago, Quesooo said:

when the correct answer hit by the players the announcement should be

 

- Unknown is correct ! i was disguise a Plasma ( guess time 15sec )

image.png.d9f225d1dd6cc977616a1f0625d61d3c.png

i want to change this announcement with time interval how long does players guess the correct answer ^_^

You will need to setup an OnTimer15000:

with that, check if the Event is active, if it hasn't already been guessed, end the event and restart it later OnClock####:

etc

  • Upvote 1
  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.08
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

2 hours ago, Z3R0 said:

You will need to setup an OnTimer15000:

with that, check if the Event is active, if it hasn't already been guessed, end the event and restart it later OnClock####:

etc

Any sample?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

Sample is already given in the script look for other OnTimers there is probably one for event completed... If there is u can probably change it to OnTimer15000

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

when the round start or NPC disguised into monster, use

initnpctimer;

when the player answered it correctly

npc "You spent "+getnpctimer(0)+" milisecond to answer.";
stopnpctimer;

when time's up or event ended

stopnpctimer;

 

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   0
  • Joined:  02/19/18
  • Last Seen:  

OnClock0000:
OnClock0200:
OnClock0400:
OnClock0600:
OnClock0800:
OnClock1000:
OnClock1200:
OnClock1400:
OnClock1600:
OnClock1800:
OnClock2000:
OnClock2200:

add you time :)

 

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