Jump to content
  • 0
Sign in to follow this  
ZelosAvalon

Script to start an event on the day and time chosen

Question

3 answers to this question

Recommended Posts

  • 0

You can use 'OnDay<month><day>:' and 'OnClock<hour><minute>:' to do it.

See more in 'doc/script_commands.txt' in 'Labels'.

 

@EDIT

 

You can see 'npc/woe-fe/agit_controller.txt' too.

To get an example.

Edited by Cretino

Share this post


Link to post
Share on other sites
  • 0

You can use 'OnDay<month><day>:' and 'OnClock<hour><minute>:' to do it.

See more in 'doc/script_commands.txt' in 'Labels'.

 

@EDIT

 

You can see 'npc/woe-fe/agit_controller.txt' too.

To get an example.

with OnDay and OnClock working fine, but i dont know how to edit with the system of woe_controller ( from woe_controller custom npc ) where you can chose the day and hours and you can check when woe will start, i'm try to use it for i can check when events will start and gm can add and remove the event,

 

i try to edit the woe_controller but now i have alot of script error xD, I'll keep trying ... ty anyway

Share this post


Link to post
Share on other sites
  • 0

Little example:

 

 

 

 

-    script    Example#1    FAKE_NPC,{
    end;
 
    // Will execute to 21:00 o'clock.
    // Format: 'OnClock<Hour><Minute>:'
    OnClock2100:
        // GETTIME_WEEKDAY = Week day (0 for Sunday, 6 is Saturday)
        // Additional: SUNDAY=0, MONDAY=1, TUESDAY=2, WEDNESDAY=3, THURSDAY=4, FRIDAY=5, SATURDAY=6
 
        // Will execute to 21:00 o'clock on sunday if variable '$@event_var_start' is 'false' (0).
        if (gettime(GETTIME_WEEKDAY) == SUNDAY && $@event_var_start == false)
        {
            // Set variable event to 'true' (1)
            $@event_var_start = true;
            // Do something...
        }
    end;
}

 

 

 

Note: To GM execute or stop the event you will need manipulate variable '$@event_var_start'.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.