Test it:
- script agit#testing -1,{
end;
OnClock 0700:
OnClock 0800:
OnAgitInit:
if((gettime(4)==0 && (gettime(3)>=07 && gettime(3)<08)))
{
if(!agitcheck())
{
AgitStart;
callsub S_DisplayOwners;
}
end;
}
if((gettime(4)==0 && (gettime(3)==08)))
{
if(agitcheck())
{
AgitEnd;
callsub S_DisplayOwners;
}
end;
}
end;
S_DisplayOwners:
setarray .@mapGuild$,"aldeg_cas01";
if (GetCastleData(.@mapGuild$,1))
{
Announce "The guild [" + GetGuildName(GetCastleData(.@mapGuild$,1)) + "] has conquered the Castle [" + GetCastleName(.@mapGuild$) + "].",bc_all|bc_woe;
} else { Announce "The Castle of [" + GetCastleName(.@mapGuild$) + "] It is totally free.",bc_all|bc_woe; }
end;
}
Configure the map here:
setarray .@mapGuild$,"aldeg_cas01";
Configure the day and schedule