Quesooo Posted April 8, 2018 Posted April 8, 2018 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 Quote
0 Quesooo Posted April 8, 2018 Author Posted April 8, 2018 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 ) i want to change this announcement with time interval how long does players guess the correct answer Quote
0 Z3R0 Posted April 8, 2018 Posted April 8, 2018 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 ) 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 1 1 Quote
0 Quesooo Posted April 9, 2018 Author Posted April 9, 2018 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? Quote
0 Z3R0 Posted April 9, 2018 Posted April 9, 2018 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 Quote
0 Emistry Posted April 9, 2018 Posted April 9, 2018 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; Quote
-1 Disable Posted April 8, 2018 Posted April 8, 2018 OnClock0000: OnClock0200: OnClock0400: OnClock0600: OnClock0800: OnClock1000: OnClock1200: OnClock1400: OnClock1600: OnClock1800: OnClock2000: OnClock2200: add you time :) Quote
Question
Quesooo
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
6 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.