- script Agit_Event -1,{
end;
OnClock2100: //start time for Tues(2), Thurs(4)
OnClock2230: //end time for Tues(2), Thurs(4)
OnAgitInit:
// starting time checks
if((gettime(4)==3) && (gettime(3)==21 && gettime(2)==00) )
{
if (!agitcheck()) {
setmapflag "alde_gld", mf_bg_consume;
setmapflag "aldeg_cas02", mf_bg_consume;
agitstart;
callsub S_DisplayOwners;
}
end;
}
// end time checks
if ((gettime(4)==3) && (gettime(3)==22 && gettime(2)==30) )
{
if (agitcheck()) {
removemapflag "alde_gld", mf_bg_consume;
removemapflag "aldeg_cas02", mf_bg_consume;
agitend;
callsub S_DisplayOwners;
}
end;
}
end;
S_DisplayOwners:
setarray .@maps$[0],"aldeg_cas02";
if (getcastledata("aldeg_cas02",1))
announce "Замком [" + getcastlename("aldeg_cas02") + "] владеет гильдия [" + getguildname(getcastledata("aldeg_cas02",1)) + "].",bc_all|bc_woe;
else
announce "Замок [" + getcastlename("aldeg_cas02") + "] сейчас свободен.",bc_all|bc_woe;
end;
}