agit_start_se.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //===== rAthena Script =======================================
  2. //= War of Emperium SE - Auto-Start
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= rAthena Project; RO Episode 11.3
  9. //===== Description: =========================================
  10. //= Auto-start for War of Emperium SE.
  11. //= For instructions, see doc/woe_time_explanation.txt.
  12. //===== Additional Comments: =================================
  13. //= 1.0 Copy/Paste of the original setter.
  14. //============================================================
  15. - script Agit2_Event -1,{
  16. end;
  17. OnClock1800: //start time for Tuesday and Thursday
  18. OnClock2000: //end time for Tuesday and Thursday
  19. OnClock2100: //start time for Saturday
  20. OnClock2300: //end time for Saturday
  21. OnAgitInit2:
  22. // starting time checks
  23. if((gettime(DT_DAYOFWEEK)==TUESDAY) && (gettime(DT_HOUR)>=18 && gettime(DT_HOUR)<21) ||
  24. (gettime(DT_DAYOFWEEK)==THURSDAY) && (gettime(DT_HOUR)>=18 && gettime(DT_HOUR)<21) ||
  25. (gettime(DT_DAYOFWEEK)==SATURDAY) && (gettime(DT_HOUR)>=21 && gettime(DT_HOUR)<23)) {
  26. if (!agitcheck2()) {
  27. AgitStart2;
  28. }
  29. end;
  30. }
  31. // end time checks
  32. if ((gettime(DT_DAYOFWEEK)==TUESDAY) && (gettime(DT_HOUR)==21) ||
  33. (gettime(DT_DAYOFWEEK)==THURSDAY) && (gettime(DT_HOUR)==21) ||
  34. (gettime(DT_DAYOFWEEK)==SATURDAY) && (gettime(DT_HOUR)==23)) {
  35. if (agitcheck2()) {
  36. AgitEnd2;
  37. }
  38. end;
  39. }
  40. end;
  41. }