Jump to content
  • 0

(ASK) Need Help Dice Event >_<


Question

Posted

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

2 answers to this question

Recommended Posts

  • 1
Posted (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 by Haruka Mayumi
  • Upvote 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...