Advertisement
Guest User

woe2

a guest
Jun 13th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  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.  
  20. // WoE Start/Stop times
  21. //============================================================
  22. - script Agit2_Event -1,{
  23. end;
  24.  
  25. OnClock1900: //start time for Tues(2), Thurs(4)
  26. OnClock2100: //end time for Tues(2), Thurs(4)
  27. OnClock2000: //start time for Sat(6)
  28. OnClock2200: //end time for Sat(6)
  29.  
  30. OnAgitInit2:
  31. // starting time checks
  32. if((gettime(4)==2) && (gettime(3)==19 && gettime(3)==19) ||
  33. (gettime(4)==4) && (gettime(3)==19 && gettime(3)==19) ||
  34. (gettime(4)==6) && (gettime(3)==20 && gettime(3)==20)) {
  35. if (!agitcheck2()) {
  36. AgitStart2;
  37. }
  38. end;
  39. }
  40.  
  41. // end time checks
  42. if ((gettime(4)==2) && (gettime(3)==21) ||
  43. (gettime(4)==4) && (gettime(3)==21) ||
  44. (gettime(4)==6) && (gettime(3)==22)) {
  45. if (agitcheck2()) {
  46. AgitEnd2;
  47. }
  48. end;
  49. }
  50. end;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement