ev_agit_event.txt 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. //===== eAthena Script =======================================
  2. //= War of Emperium - WoE Auto-Start
  3. //===== By: ==================================================
  4. //= kalen (1.0)
  5. //= 1.1 by Akaru and ho|yAnge|
  6. //===== Current Version: =====================================
  7. //= 1.5
  8. //===== Compatible With: =====================================
  9. //= eAthena 0.1+; RO Episode 4+
  10. //===== Description: =========================================
  11. //= Auto Start for War of Emperium
  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. //= v1.1a changed OnInit to OnAgitInit.[kobra_k88]
  18. //= v1.2 added gettime checks. removed $AgitStarted var.[kobra_k88]
  19. //= v1.3 Moved treasure spawn time here.[kobra_k88]
  20. //= v1.3a Implemented Shadowlady's idea to allow for different
  21. //= start/stop times on different days.[kobra_k88]
  22. //= 1.4 Fixed treasure chests spawn! We had to unroll some loops
  23. //= Now they appear in castles from 00:01 to 00:24. [Lupus]
  24. //= 1.5 Fixed WOE end messages on non-WOE days, by Avaj
  25. //============================================================
  26. //| To know how to set up WoE times, go to doc\woe_time_explanation.txt
  27. // WoE Start/Stop times
  28. //======================================
  29. - script Agit_Event -1,{
  30. end;
  31. OnClock2100: //start time for Tues(2), Thurs(4)
  32. OnClock2300: //end time for Tues(2), Thurs(4)
  33. OnClock1600: //start time for Sat(6)
  34. OnClock1800: //end time for Sat(6)
  35. OnAgitInit:
  36. // starting time checks
  37. if((gettime(4)==2) && (gettime(3)>=21 && gettime(3)<23)) goto L_Start;
  38. if((gettime(4)==4) && (gettime(3)>=21 && gettime(3)<23)) goto L_Start;
  39. if((gettime(4)==6) && (gettime(3)>=16 && gettime(3)<18)) goto L_Start;
  40. // end time checks
  41. if((gettime(4)==2) && (gettime(3)==23)) goto L_End;
  42. if((gettime(4)==4) && (gettime(3)==23)) goto L_End;
  43. if((gettime(4)==6) && (gettime(3)==18)) goto L_End;
  44. end;
  45. L_End:
  46. Announce "The War Of Emperium is over!",8;
  47. AgitEnd;
  48. end;
  49. L_Start:
  50. Announce "The War Of Emperium has begun!",8;
  51. AgitStart;
  52. end;
  53. }
  54. // Treasure Spawn Time
  55. //========================================
  56. - script TreasSpawn -1,{
  57. end;
  58. OnClock0001:
  59. callfunc "F_GldTreas","aldeg_cas01","A01",$boxNumA01,$@bxA01,$@boxIdA01,1324,114,218,123,227,0;
  60. end;
  61. OnClock0002:
  62. callfunc "F_GldTreas","aldeg_cas02","A02",$boxNumA02,$@bxA02,$@boxIdA02,1326,130,226,138,235,0;
  63. end;
  64. OnClock0003:
  65. callfunc "F_GldTreas","aldeg_cas03","A03",$boxNumA03,$@bxA03,$@boxIdA03,1328,220,264,229,273,0;
  66. end;
  67. OnClock0004:
  68. callfunc "F_GldTreas","aldeg_cas04","A04",$boxNumA04,$@bxA04,$@boxIdA04,1330,80,8,89,17,0;
  69. end;
  70. OnClock0005:
  71. callfunc "F_GldTreas","aldeg_cas05","A05",$boxNumA05,$@bxA05,$@boxIdA05,1332,58,8,65,15,0;
  72. end;
  73. OnClock0006:
  74. callfunc "F_GldTreas","gefg_cas01","G01",$boxNumG01,$@bxG01,$@boxIdG01,1334,150,108,158,114,0;
  75. end;
  76. OnClock0007:
  77. callfunc "F_GldTreas","gefg_cas02","G02",$boxNumG02,$@bxG02,$@boxIdG02,1336,136,112,145,118,0;
  78. end;
  79. OnClock0008:
  80. callfunc "F_GldTreas","gefg_cas03","G03",$boxNumG03,$@bxG03,$@boxIdG03,1338,266,286,275,293,0;
  81. end;
  82. OnClock0009:
  83. callfunc "F_GldTreas","gefg_cas04","G04",$boxNumG04,$@bxG04,$@boxIdG04,1340,112,114,119,123,0;
  84. end;
  85. OnClock0010:
  86. callfunc "F_GldTreas","gefg_cas05","G05",$boxNumG05,$@bxG05,$@boxIdG05,1342,140,106,147,113,0;
  87. end;
  88. OnClock0011:
  89. callfunc "F_GldTreas","payg_cas01","Py01",$boxNumPy01,$@bxPy01,$@boxIdPy01,1344,286,4,295,13,0;
  90. end;
  91. OnClock0012:
  92. callfunc "F_GldTreas","payg_cas02","Py02",$boxNumPy02,$@bxPy02,$@boxIdPy02,1346,140,140,148,149,0;
  93. end;
  94. OnClock0013:
  95. callfunc "F_GldTreas","payg_cas03","Py03",$boxNumPy03,$@bxPy03,$@boxIdPy03,1348,154,164,162,173,0;
  96. end;
  97. OnClock0014:
  98. callfunc "F_GldTreas","payg_cas04","Py04",$boxNumPy04,$@bxPy04,$@boxIdPy04,1350,142,44,151,51,0;
  99. end;
  100. OnClock0015:
  101. callfunc "F_GldTreas","payg_cas05","Py05",$boxNumPy05,$@bxPy05,$@boxIdPy05,1352,152,128,160,135,0;
  102. end;
  103. OnClock0016:
  104. callfunc "F_GldTreas","prtg_cas01","Pt01",$boxNumPt01,$@bxPt01,$@boxIdPt01,1354,6,204,15,213,0;
  105. end;
  106. OnClock0017:
  107. callfunc "F_GldTreas","prtg_cas02","Pt02",$boxNumPt02,$@bxPt02,$@boxIdPt02,1356,198,224,207,233,0;
  108. end;
  109. OnClock0018:
  110. callfunc "F_GldTreas","prtg_cas03","Pt03",$boxNumPt03,$@bxPt03,$@boxIdPt03,1358,184,128,193,135,0;
  111. end;
  112. OnClock0019:
  113. callfunc "F_GldTreas","prtg_cas04","Pt04",$boxNumPt04,$@bxPt04,$@boxIdPt04,1360,266,158,275,167,0;
  114. end;
  115. OnClock0020:
  116. callfunc "F_GldTreas","prtg_cas05","Pt05",$boxNumPt05,$@bxPt05,$@boxIdPt05,1362,272,174,279,181,0;
  117. end;
  118. OnClock0021:
  119. callfunc "F_GldTreas","nguild_alde","N01",$boxNumN01,$@bxN01,$@boxIdN01,1324,114,218,123,227,0;
  120. end;
  121. OnClock0022:
  122. callfunc "F_GldTreas","nguild_gef","N02",$boxNumN02,$@bxN02,$@boxIdN02,1334,150,108,158,114,0;
  123. end;
  124. OnClock0023:
  125. callfunc "F_GldTreas","nguild_pay","N03",$boxNumN03,$@bxN03,$@boxIdN03,1344,286,4,295,13,0;
  126. end;
  127. OnClock0024:
  128. callfunc "F_GldTreas","nguild_prt","N04",$boxNumN04,$@bxN04,$@boxIdN04,1354,6,204,15,213,0;
  129. end;
  130. }