Jump to content
  • 0

Can help me put OnClock timer on this script


Checkmate

Question


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

Can someone help me on this 3 script...
Put some ONClock on them to make them be auto...
OnCLock every 3 hours to each...


Greats thanks  ^ ^


 

Cluckers.txt

Code_Breaker.txt

FindTheMushroom.txt

Link to comment
Share on other sites

20 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

Hi... rAthena...
I would like to ask some help from all ppl in here..

Can someone explain me how to change this auto timing on this 3 script...??


Thanks.. ^ ^ 

 

Dice_Event.txt

Flower_Counting_Game.txt

Guess_the_Number.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Try this :

OnMinute00:
    if ( ( gettime(3) % 3 ) == 0 )
        // start the event
    end;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

OnMinute00:

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

        // start the event

    end;

 

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Anywhere on the script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

im try my best sir.. ^ ^ 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Give me the time of each event. I will make them automatically.

 

For example:

Guess the number 1PM, 5PM and so on.

Flower Counting 2PM,6PM and so on.

Dice Event 3PM,7PM and so on.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

use OnClock

OnClock0100:  // 1am
OnClock1000:  // 10am
OnClock2000:  // 8pm
etc

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

OnClock

OnClock0000: // 12 am
OnClock0400: // 4 am
OnClock0800: // 8 am
OnClock1200: // 12 pm 
OnClock1600: // 16:00 or 4pm
OnClock2000: // 20:00 or 8pm
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Can you give me the scripts? I know some of that script needs a little modification for timers to work.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Ok im editing the scripts now.



Can I know what emulator and its version do you use?  Because I see some of your scripts are really outdated. 

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

Ok im editing the scripts now.

Thanks sir.. That would be awesome.. I can learn something from this..  ^ ^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

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