zmref Posted January 28, 2013 Group: Members Topic Count: 148 Topics Per Day: 0.03 Content Count: 299 Reputation: 6 Joined: 06/14/12 Last Seen: March 30, 2013 Share Posted January 28, 2013 (edited) this is a script of KOE which I found somewhere here then I edit some of the parts I would like to know what do I insert? add? in order to make the schedule weekly. - script ACE -1,{ OnInit: disablenpc "Archon's Castle#Arc"; disablenpc "Reward#Arc"; end; OnWhisperGlobal: if ( getgmlevel() < 99 ) end; else if ( compare ( @whispervar0$, "on" ) ) goto L_start; else if ( compare ( @whispervar0$, "off" ) ) goto L_end; else end; L_end: OnClock1909: announce "Archon's Castle Event is over!", 0; set .ACE_start, 0; enablenpc "Reward#Arc"; disablenpc "Archon's Castle#Arc"; killmonsterall "arch_cas"; end; OnClock1910: mapannounce "arch_cas","Please go down and speak to the reward officer to receive your prize.",0; end; L_start: OnClock1907: announce "The Archon's Castle Event (ACE) will begin in 5 minutes.",0; end; OnClock1908: announce "Archon's Castle Event has begun!", 0; set .ACE_start, 1; enablenpc "Archon's Castle#Arc"; disablenpc "Reward#Arc"; set $ACEgid, 0; donpcevent "::OnRevACE"; maprespawnguildid "guild_vs1", $ACEgid, 6; monster "arch_cas",321,256,"EMPERIUM",1288,1,"ACE::OnEmpDead"; end; OnEmpDead: set $ACEgid, getcharid(2); announce "The current Archon is [" + strcharinfo(2) + "] guild.", 0; donpcevent "::OnRevACE"; maprespawnguildid "arch_cas", $ACEgid, 6; sleep 500; if ( .ACE_start ) monster "arch_cas",321,256,"EMPERIUM",1288,1,"ACE::OnEmpDead"; end; } // ACE Entrance negel,74,182,0 script Archon's Castle#Arc 723,{ mes "[Archon's Assistant]"; if ( getcharid(2) == 0 ) { mes "You must have a guild to participate in the ^FF0000Archon's Castle Event^000000."; close; } mes "Warp to the ^FF0000Archon's Castle Event^000000?"; if ( select ( "Yes", "No" ) == 2 ) close; switch( rand(1,4) ){ case 1: warp "arch_cas", 338, 58; end; case 2: warp "arch_cas", 370, 90; end; case 3: warp "arch_cas", 337, 14; end; case 4: warp "arch_cas", 301, 31; end; } } // ACE Exit arch_cas,286,256,5 script Reward#Arc 51,{ mes "[Exit]"; mes "Having fun?"; next; mes "See you again next week!"; if ( getcharid(2) == $ACEgid ) getitem 501, 1; // configure prize here next; warp "Save",0,0; close; } // Flags negel,238,178,3 script ACE#1::ACE_flag 722,{ set .@gid, $ACEgid; if ( .@gid == 0 ) end; mes "[Archon]"; mes "The current Archon is ^7F00FF["+ getguildname(.@gid) +"]^000000 guild."; mes "The guild leader of this guild is ^336699["+getguildmaster($KOEGUILD)+"]^000000."; close; OnRevACE: flagemblem $ACEgid; end; } arch_cas,87,60,3 duplicate(ACE_flag) ACE#2 722 arch_cas,121,276,5 duplicate(ACE_flag) ACE#3 722 arch_cas,309,50,4 duplicate(ACE_flag) ACE#4 722 arch_cas,294,231,4 duplicate(ACE_flag) ACE#5 722 arch_cas,336,227,4 duplicate(ACE_flag) ACE#6 722 arch_cas,349,278,4 duplicate(ACE_flag) ACE#7 722 arch_cas,300,274,3 duplicate(ACE_flag) ACE#8 722 arch_cas mapflag gvg arch_cas mapflag nobranch arch_cas mapflag nomemo arch_cas mapflag nopenalty arch_cas mapflag noreturn arch_cas mapflag nosave SavePoint arch_cas mapflag noteleport arch_cas mapflag gvg_noparty arch_cas mapflag nowarp arch_cas mapflag nowarpto Edited January 29, 2013 by Emistry Please use [CODEBOX] or Attachments for long contents. Quote Link to comment Share on other sites More sharing options...
Capuche Posted January 28, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted January 28, 2013 Replace your OnClock<hour><minute>: by On<weekday><hour><minute>: This will execute when the server clock hits the specified date or time. Hoursand minutes are given in military time. ('0105' will mean 01:05 AM). Weekdays are Sun,Mon,Tue,Wed,Thu,Fri,Sat. Months are 01 to 12, days are 01 to 31. Remember the zero. 1 Quote Link to comment Share on other sites More sharing options...
zmref Posted January 29, 2013 Group: Members Topic Count: 148 Topics Per Day: 0.03 Content Count: 299 Reputation: 6 Joined: 06/14/12 Last Seen: March 30, 2013 Author Share Posted January 29, 2013 ok thanks Replace your OnClock<hour><minute>: by On<weekday><hour><minute>: This will execute when the server clock hits the specified date or time. Hoursand minutes are given in military time. ('0105' will mean 01:05 AM). Weekdays are Sun,Mon,Tue,Wed,Thu,Fri,Sat. Months are 01 to 12, days are 01 to 31. Remember the zero. what about every hour? Quote Link to comment Share on other sites More sharing options...
icabit Posted January 29, 2013 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 353 Reputation: 70 Joined: 07/14/12 Last Seen: February 12, 2023 Share Posted January 29, 2013 OnClock<hour><minute>: OnMinute<minute>: OnHour<hour>: On<weekday><hour><minute>: OnDay<month><day>: try using these commands 1 Quote Link to comment Share on other sites More sharing options...
Question
zmref
this is a script of KOE which I found somewhere here then I edit some of the parts
I would like to know what do I insert? add? in order to make the schedule weekly.
Edited by EmistryPlease use [CODEBOX] or Attachments for long contents.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.