Jump to content
sacrox

Change Schedule WOE

Recommended Posts

 
Hello everyone! I am trying to change Woe's Schedule, this is the text I have put, but I don't know how to modify it,
it helps !! Thank you all very much, you are a great community! :D
Gods of Ragnarok
 
The ideal would be from 11 at night to 12 :D thanks

OnClock2100:    //start time for Tuesday and Thursday
OnClock2300:    //end time for Tuesday and Thursday
OnClock1600:    //start time for Saturday
OnClock1800:    //end time for Saturday

OnAgitInit:
    // starting time checks
    if((gettime(DT_DAYOFWEEK)==TUESDAY) && (gettime(DT_HOUR)>=21 && gettime(DT_HOUR)<23) ||
       (gettime(DT_DAYOFWEEK)==THURSDAY) && (gettime(DT_HOUR)>=21 && gettime(DT_HOUR)<23) ||
       (gettime(DT_DAYOFWEEK)==SATURDAY) && (gettime(DT_HOUR)>=16 && gettime(DT_HOUR)<18)) {
        if (!agitcheck()) {
            AgitStart;
            callsub S_DisplayOwners;
        }
        end;
    }

    // end time checks
    if ((gettime(DT_DAYOFWEEK)==TUESDAY) && (gettime(DT_HOUR)==23) ||
        (gettime(DT_DAYOFWEEK)==THURSDAY) && (gettime(DT_HOUR)==23) ||
        (gettime(DT_DAYOFWEEK)==SATURDAY) && (gettime(DT_HOUR)==18)) {
        if (agitcheck()) {
            AgitEnd;
            callsub S_DisplayOwners;
        }
        end;
    }
    end;

 

Edited by Mael
Use a codebox

Share this post


Link to post
Share on other sites

Just use woe_controller.txt inside npc/custom/ folder, load the NPC and talk to the billboard NPC and set it up there.

Share this post


Link to post
Share on other sites

WOE controller already have the original variable to control your WOE

Share this post


Link to post
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
Reply to this topic...

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

Important Information

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