Jump to content
  • 0

Can help me put OnClock timer on this script


Question

20 answers to this question

Recommended Posts

Posted
OnMinute00:

    if ( ( gettime(3) % 3 ) == 0 )

        // start the event

    end;

 

Put this into script at bottom section or header where?..?

Posted
On what specific time you would like the script will automatically up. There will be a bit of modification, you can put OnClock or OnMinute.

Sry sir 

Lil Troll

 

I do want to make this mybe 4 hours on each day?..?

Posted

OK... Mybe all those script...

Starting from

 

12.00am

 

4.00am

 

8.00am

 

12.00pm

 

5.pm

 

8.pm

 

 

Can??...??

Btw i have a question... Since there was 24 hour system.. Is it ok to put not enough 24 hours in OnClock timer?..?

Posted
OnClock0000: // 12 am

OnClock0400: // 4 am

OnClock0800: // 8 am

OnClock1200: // 12 pm

OnClock1600: // 16:00 or 4pm

OnClock2000: // 20:00 or 8pm

 

Ok i got it sir..

But some of the script did not have space to put this.. i mean mybe will show some error...

About this??

 

OnMinute00:
    if ( ( gettime(7) % 7 ) == 0 )
        // start the event
    end;

 

 if ( ( gettime(7) % 7 ) == 0 )  = 7 mean 7 hours right?..?

 

and

OnMinute00: = What this mean?

Posted

Do you want all NPC to start at the same time? Every 4hours or like below:

12.00am  - Guess the Number

4.00am - Flower Counting

8.00am - Dice Event

12.00pm  - Guess the Number

5.pm - Flower Counting

8.pm- Dice Event

 

Give me the same format as this, then ill edit those script and make them automatically set to what time you stated. I will leave marks so that you will find where did I modify the script, and learn from it. :)

  • Upvote 1
Posted

( ( gettime(3) % 3 ) == 0 ) meaning if gettime(3) (hour of day) is divisible by 3 run the script.

 

03:00 06:00 09:00 12:00 15:00 18:00 21:00 24:00 are all divisible by 3.

1 Seconds (0 - 59)
2 Minutes (0 - 59)
3 Hours (0 - 23)
4 Day of Week (0: Sunday - 6: Saturday)
5 Day of Month (1 - 31)
6 Month (1 - 12)
7 Year (1970 - 2038)
8 Day of Year (1 - 366)
  • Upvote 1
Posted (edited)

Thanks guys.. that a lot of explanation... 
Im trying to understand now..  ^ ^

Thanks to 

Patskie

 

Lil Troll

 

for help..  ^ ^


 

Here actually what i need

  • Cluckers.txt                        Everyday.(Each 12pm,1pm,12am,1am)
  • Code_Breaker.txt                Everyday.(Each  5pm,7pm,5am,7am)
  • Dice_event.txt                     Everyday.(Each 3pm,9pm,3am,9am)
  • Flower_Counting_Game.txt    Everyday.(Each(2pm,3pm,4pm,8pm,9pm,10pm)
  • Guess_The_Number.txt        Everyday.(Each Saturday Only at (5pm,7pm,5am,7am)
  • FindTheMushroom.txt           Everyday.(Each Sunday Only at (5pm,7pm,5am,7am)


    Trying to make custom of it...  ^ ^
    And also want learn more about this timing section..

    Thanks again...

    Will help ya....  Lil Troll
     
Edited by CheckMate
Posted (edited)
Can you give me the scripts?

 

Its all in here sr...

At the top..  ^ ^ 

 

 I know some of that script needs a little modification for timers to work.
 
About this modification is i want to learn...  ^ ^ 

 

Btw here it is :
 
Attached Files

 

and

 

 

Edited by CheckMate
Posted

Thanks guys.. that a lot of explanation... 

Im trying to understand now..  ^ ^

Thanks to 

Patskie

 

Lil Troll

 

for help..  ^ ^

 

Here actually what i need

  • Cluckers.txt                        Everyday.(Each 12pm,1pm,12am,1am)
  • Code_Breaker.txt                Everyday.(Each  5pm,7pm,5am,7am)
  • Dice_event.txt                     Everyday.(Each 3pm,9pm,3am,9am)
  • Flower_Counting_Game.txt    Everyday.(Each(2pm,3pm,4pm,8pm,9pm,10pm)
  • Guess_The_Number.txt        Everyday.(Each Saturday Only at (5pm,7pm,5am,7am)
  • FindTheMushroom.txt           Everyday.(Each Sunday Only at (5pm,7pm,5am,7am)

    Trying to make custom of it...  ^ ^

    And also want learn more about this timing section..

    Thanks again...

    Will help ya....  Lil Troll

     

Ok I put OnClock`s based on what you stated, just look at OnClock inside script, now its all automatic except I haven't finished adding CodeBreaker event because I need to modify the script and dissect it first. Just give me time on it. Sorry took me so long haven't open the forums recently.

 

Also I modified the cluckers event of yours because its really outdated, tell me if not working and i will revert it back to your old ver.

Cluckers.txt

Dice_Event.txt

FindTheMushroom.txt

Flower_Counting_Game.txt

Guess_the_Number.txt

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