Quesooo Posted April 8, 2018 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Share 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 Link to comment Share on other sites More sharing options...
0 Quesooo Posted April 8, 2018 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
0 Z3R0 Posted April 8, 2018 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 618 Reputation: 201 Joined: 11/09/11 Last Seen: June 14, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 Quesooo Posted April 9, 2018 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
0 Z3R0 Posted April 9, 2018 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 618 Reputation: 201 Joined: 11/09/11 Last Seen: June 14, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted April 9, 2018 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
-1 Disable Posted April 8, 2018 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 46 Reputation: 0 Joined: 02/19/18 Last Seen: December 28, 2024 Share Posted April 8, 2018 OnClock0000: OnClock0200: OnClock0400: OnClock0600: OnClock0800: OnClock1000: OnClock1200: OnClock1400: OnClock1600: OnClock1800: OnClock2000: OnClock2200: add you time :) Quote Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.