agit_start_se.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 SVN; RO Episode 11.3
  9. //===== Description: =========================================
  10. //= Auto Start for War of Emperium
  11. //= To know how to set up WoE times, go to doc\woe_time_explanation.txt
  12. //=============================================
  13. //= gettime(3): Gets hour (24 hour time)
  14. //= gettime(4): Gets day of week 1=Monday, 2=Tuesday,
  15. //= 3=Wednesday, 4=Thursday, etc.
  16. //===== Additional Comments: =================================
  17. //= 1.0 Copy/Paste of the original setter.
  18. //============================================================
  19. // WoE Start/Stop times
  20. //============================================================
  21. - script Agit2_Event -1,{
  22. end;
  23. OnClock1800: //start time for Tues(2), Thurs(4)
  24. OnClock2000: //end time for Tues(2), Thurs(4)
  25. OnClock2100: //start time for Sat(6)
  26. OnClock2300: //end time for Sat(6)
  27. OnAgitInit2:
  28. // starting time checks
  29. if((gettime(4)==2) && (gettime(3)>=18 && gettime(3)<21) ||
  30. (gettime(4)==4) && (gettime(3)>=18 && gettime(3)<21) ||
  31. (gettime(4)==6) && (gettime(3)>=22 && gettime(3)<23)) {
  32. if (!agitcheck2()) {
  33. AgitStart2;
  34. }
  35. end;
  36. }
  37. // end time checks
  38. if ((gettime(4)==2) && (gettime(3)==21) ||
  39. (gettime(4)==4) && (gettime(3)==21) ||
  40. (gettime(4)==6) && (gettime(3)==23)) {
  41. if (agitcheck2()) {
  42. AgitEnd2;
  43. }
  44. end;
  45. }
  46. end;
  47. }