blob: c225d9874708ddec8da05cd49e144e7e1b463e2d (
plain) (
tree)
|
|
//===== Hercules Script ======================================
//= War of Emperium SE - Auto-Start
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
//= 1.0
//===== Description: =========================================
//= Auto Start for War of Emperium
//= To know how to set up WoE times, go to doc\woe_time_explanation.txt
//===== Additional Comments: =================================
//= 1.0 Copy/Paste of the original setter.
//============================================================
// WoE Start/Stop times
//============================================================
- script Agit2_Event -1,{
end;
OnClock1800: //start time for Tues(2), Thurs(4)
OnClock2000: //end time for Tues(2), Thurs(4)
OnClock2100: //start time for Sat(6)
OnClock2300: //end time for Sat(6)
OnAgitInit2:
// starting time checks
if((gettime(GETTIME_WEEKDAY) == 2 && gettime(GETTIME_HOUR) >= 18 && gettime(GETTIME_HOUR) < 21) ||
(gettime(GETTIME_WEEKDAY) == 4 && gettime(GETTIME_HOUR) >= 18 && gettime(GETTIME_HOUR) < 21) ||
(gettime(GETTIME_WEEKDAY) == 6 && gettime(GETTIME_HOUR) >= 22 && gettime(GETTIME_HOUR) < 23)) {
if (!agitcheck2()) {
agitstart2;
}
end;
}
// end time checks
if ((gettime(GETTIME_WEEKDAY) == 2 && gettime(GETTIME_HOUR) == 21) ||
(gettime(GETTIME_WEEKDAY) == 4 && gettime(GETTIME_HOUR) == 21) ||
(gettime(GETTIME_WEEKDAY) == 6 && gettime(GETTIME_HOUR) == 23)) {
if (agitcheck2()) {
agitend2;
}
end;
}
end;
}
|