Автор: sin4ik: Дата: 09.10.2009
- script Agit_Event -1,{
end;
OnClock2000: //start time for Tues(2), Thurs(4), Sat(7)
OnClock2100: //end time for Tues(2), Thurs(4)
OnClock2200: //end time for Sat(7)
OnAgitInit:
// starting time checks
if((gettime(4)==2) && (gettime(3)>=20 && gettime(3)<21) ||
(gettime(4)==4) && (gettime(3)>=20 && gettime(3)<21) ||
(gettime(4)==7) && (gettime(3)>=20 && gettime(3)<22)) {
if (!agitcheck()) {
AgitStart;
callsub S_DisplayOwners;
}
end;
}
// end time checks
if ((gettime(4)==2) && (gettime(3)==21) ||
(gettime(4)==4) && (gettime(3)==21) ||
(gettime(4)==7) && (gettime(3)==22)) {
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_cas03";
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;
}
else {
Announce "The [" + GetCastleName(.@maps$[.@i]) + "] castle is currently unoccupied.",bc_all;
}
}
end;
}
Автор: sin4ik: Дата: 09.10.2009
имп стоит не всегда , а когда гв ток , это стандартный афиновский скрипт я его отредактировал только
Автор: Мяфк: Дата: 09.10.2009
О боже, зачем эти тупые кастом скрипты, бери обычный афиновский.
Автор: San: Дата: 09.10.2009
Цитата Мяфк;12544:
О боже, зачем эти тупые кастом скрипты, бери обычный афиновский.
Автор: Respect: Дата: 09.10.2009
значит коряво написан скачай нормальный
Автор: nomn: Дата: 09.10.2009
ничего там не коряво, вот только не вижу толк в комментирование этого
//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";
- script Agit_Event -1,{
end;
OnClock2000:
OnClock2100:
OnClock2200:
OnAgitInit:
// starting time checks
if((gettime(4)==2) && (gettime(3)>=20 && gettime(3)<21) ||
(gettime(4)==4) && (gettime(3)>=20 && gettime(3)<21) ||
(gettime(4)==7) && (gettime(3)>=20 && gettime(3)<22)) {
if (!agitcheck()) {
AgitStart;
callsub S_DisplayOwners;
}
end;
}
// end time checks
if ((gettime(4)==2) && (gettime(3)==23) ||
(gettime(4)==4) && (gettime(3)==23) ||
(gettime(4)==6) && (gettime(3)==18)) {
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;
}
else {
Announce "The [" + GetCastleName(.@maps$[.@i]) + "] castle is currently unoccupied.",bc_all;
}
}
end;
}