amemachi Posted November 9, 2017 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 12 Reputation: 1 Joined: 09/19/17 Last Seen: January 24, 2018 Share Posted November 9, 2017 Dear all, I'm using this dice script event on my server. The NPC are there and works fine. But the event didnt start even if i already triggered the event and setting the time. Here's the script : How to make it works ? Please help me.. Thank you so much dice ver.1.txt Quote Link to comment Share on other sites More sharing options...
1 Haruka Mayumi Posted November 10, 2017 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 485 Reputation: 271 Joined: 06/13/17 Last Seen: Monday at 10:43 AM Share Posted November 10, 2017 (edited) Change this line if(gettime(3) % 2 == 0) donpcevent "DiceTrigger::OnDiceETrigger"; into donpcevent "DiceTrigger::OnDiceETrigger"; The reason why it doesnt start is because .. You set The OnClock0100, Onclock0300.. gettime(3) = get the hour. the script will work on your set OnClock.. 0100 = 1:00 AM so once it starts. this is what happens OnClock0100: if(gettime(3) % 2 == 0) is 1 % 2 = 1, so the if statement will block the donpc event =) Also here another one.. OnClock0100: OnClock0300: OnClock0500: OnClock0700: OnClock0900: OnClock1100: OnClock1300: OnClock1500: OnClock1700: OnClock1900: OnClock2100: OnClock2300: donpcevent "DiceTrigger::OnDiceETrigger"; end; //The code below will do the same as above =) OnMinute00: if(gettime(3) % 2 == 1) donpcevent "DiceTrigger::OnDiceETrigger"; end; Don't forget to press the Answer if it helps you and upvote =) Edited November 10, 2017 by Haruka Mayumi 1 Quote Link to comment Share on other sites More sharing options...
0 amemachi Posted November 10, 2017 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 12 Reputation: 1 Joined: 09/19/17 Last Seen: January 24, 2018 Author Share Posted November 10, 2017 @mayumi yeah problem solved .. thank you very much (done upvote too) .. Quote Link to comment Share on other sites More sharing options...
Question
amemachi
Dear all,
I'm using this dice script event on my server. The NPC are there and works fine. But the event didnt start even if i already triggered the event and setting the time.
Here's the script :
How to make it works ? Please help me..
Thank you so much
dice ver.1.txt
Link to comment
Share on other sites
2 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.