Ich hab ein ganz ganz großes problem mit dem auto woe script
ich wollte die woe zeiten
Tuesday @ 16:00~Tuesday @ 20:00
Thursday @ 16:00~Thursday @ 20:00
Sunday @ 14:00~Sunday @ 20:00
Komme aber mit dem autoscript nicht wirklich klar
mein script momentan
Agit Controller
- script Agit_Event -1,{
end;
OnClock1600: //start time for Tues(2), Thurs(4)
OnClock2000: //end time for Tues(2), Thurs(4)
OnClock1400: //start time for Sat(6)
OnClock2000: //end time for Sat(6)
OnAgitInit:
// starting time checks
if((gettime(4)==2) && (gettime(3)>=16 && gettime(3)<20) ||
(gettime(4)==4) && (gettime(3)>=16 && gettime(3)<20) ||
(gettime(4)==0) && (gettime(3)>=14 && gettime(3)<20)) {
if (!agitcheck()) {
AgitStart;
callsub S_DisplayOwners;
}
end;
}
// end time checks
if ((gettime(4)==2) && (gettime(3)==20) ||
(gettime(4)==4) && (gettime(3)==20) ||
(gettime(4)==0) && (gettime(3)==20)) {
if (agitcheck()) {
AgitEnd;
callsub S_DisplayOwners;
}
end;
}
end;
S_DisplayOwners:
setarray .@maps$[0],"aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05";
setarray .@maps$[5],"gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05";
setarray .@maps$[10],"payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05";
setarray .@maps$[15],"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05";
for( set .@i, 0; .@i <= 19; set .@i, .@i+1 ) {
if (GetCastleData(.@maps$[.@i],1)) {
Announce "The [" + GetCastleName(.@maps$[.@i]) + "] castle has been conquered by the [" + GetGuildName(GetCastleData(.@maps$[.@i],1)) + "] guild.",bc_all|bc_woe;
}
else {
Announce "The [" + GetCastleName(.@maps$[.@i]) + "] castle is currently unoccupied.",bc_all|bc_woe;
}
}
end;
}
Aber das script will nicht wo liegt mein fehler