Script to start an event on the day and time chosen

ZelosAvalon

New member
Messages
218
Points
0
Age
34
Emulator
How can i start an event in an day and time i chose, like woe controller system ?

 
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.

 
Last edited by a moderator:
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

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

 
Back
Top