Jump to content
  • 0

How to make the schedule weekly?


zmref

Question


  • Group:  Members
  • Topic Count:  148
  • Topics Per Day:  0.03
  • Content Count:  299
  • Reputation:   6
  • Joined:  06/14/12
  • Last Seen:  

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 by Emistry
Please use [CODEBOX] or Attachments for long contents.
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Replace your OnClock<hour><minute>: by On<weekday><hour><minute>:

This will execute when the server clock hits the specified date or time. Hours

and 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. :)

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  148
  • Topics Per Day:  0.03
  • Content Count:  299
  • Reputation:   6
  • Joined:  06/14/12
  • Last Seen:  

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

and 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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

OnClock<hour><minute>:

OnMinute<minute>:

OnHour<hour>:

On<weekday><hour><minute>:

OnDay<month><day>:

try using these commands

  • Upvote 1
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...