Jump to content
  • 0

Change Schedule WOE


sacrox

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.01
  • Content Count:  18
  • Reputation:   0
  • Joined:  10/09/20
  • Last Seen:  

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

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

WOE controller already have the original variable to control your WOE

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