Jump to content
  • 0

(ASK) Need Help Dice Event >_<


amemachi

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  09/19/17
  • Last Seen:  

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

  • 1

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  09/19/17
  • Last Seen:  

@mayumi

 

yeah problem solved .. thank you very much ^_^ (done upvote too) ..

 

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