payg_treas.txt 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. //===== eAthena Script =======================================
  2. //= War of Emperium Treasure Rooms for Payon Guild Castles
  3. //===== By: ==================================================
  4. //= jAthena - kalen (1.0)
  5. //= 1.1 by Akaru, ho|yAnge|X, and Valaris
  6. //===== Current Version: =====================================
  7. //= 1.3
  8. //===== Compatible With: =====================================
  9. //= eAthena 0.1+; RO Episode 4+
  10. //===== Description: =========================================
  11. //=
  12. //===== Additional Comments: =================================
  13. //= v1.2 Optimized with functions.[kobra_k88]
  14. //============================================================
  15. //<================================ Castle 1 ================================>\\
  16. // Treasure Spawn ----------------------------------------------------------
  17. payg_cas01,1,1,0 script Treasure_Py01 -1,{
  18. OnRecvCastlePy01:
  19. end;
  20. OnInit:
  21. if($boxNumPy01 == 0) end;
  22. set $@bxPy01, $boxNumPy01;
  23. callfunc "F_GldTreas","payg_cas01","Py01",$boxNumPy01,$@bxPy01,$@boxIdPy01,1344,286,4,295,13,1;
  24. end;
  25. OnDied:
  26. mapannounce "payg_cas01","Treasure Chest Broken Open",17;
  27. set $boxNumPy01, $boxNumPy01 -1;
  28. if($boxNumPy01 == 0) mapannounce "payg_cas01", "All of the treasure boxes have been opened. You must wait untill the next day for them to appear again.",0;
  29. end;
  30. }
  31. // Treasure Room Switch ---------------------------------------------------
  32. payg_cas01,295,8,0 script Switch#TresPy01 111,{
  33. callfunc "F_GldTreasSw", "payg_cas01",120,59;
  34. end;
  35. }
  36. // Treasure Room Protection ------------------------------------------------
  37. payg_cas01,291,8,0 script ban_warp#6 -1,6,6,{
  38. OnTouch:
  39. callfunc "F_TreasProtect", "payg_cas01", "payon",100,100;
  40. end;
  41. }
  42. //<================================ Castle 2 ================================>\\
  43. // Treasure Spawn ----------------------------------------------------------
  44. payg_cas02,1,1,0 script Treasure_Py02 -1,{
  45. OnRecvCastlePy02:
  46. end;
  47. OnInit:
  48. if($boxNumPy02 == 0) end;
  49. set $@bxPy02, $boxNumPy02;
  50. callfunc "F_GldTreas","payg_cas02","Py02",$boxNumPy02,$@bxPy02,$@boxIdPy02,1346,140,140,148,149,1;
  51. end;
  52. OnDied:
  53. mapannounce "payg_cas02","Treasure Chest Broken Open",17;
  54. set $boxNumPy02, $boxNumPy02 -1;
  55. if($boxNumPy02 == 0) mapannounce "payg_cas02", "All of the treasure boxes have been opened. You must wait untill the next day for them to appear again.",0;
  56. end;
  57. }
  58. // Treasure Room Switch ----------------------------------------------------
  59. payg_cas02,149,148,0 script Switch#TresPy02 111,{
  60. callfunc "F_GldTreasSw", "payg_cas02",22,261;
  61. end;
  62. }
  63. // Treasure Room Protection ------------------------------------------------
  64. payg_cas02,145,144,0 script ban_warp#7 -1,6,6,{
  65. OnTouch:
  66. callfunc "F_TreasProtect", "payg_cas02", "payon",100,100;
  67. end;
  68. }
  69. //<================================ Castle 3 ================================>\\
  70. // Treasure Spawn ----------------------------------------------------------
  71. payg_cas03,158,168,0 script Treasure_Py03 -1,{
  72. OnRecvCastlePy03:
  73. end;
  74. OnInit:
  75. if($boxNumPy03 == 0) end;
  76. set $@bxPy03, $boxNumPy03;
  77. callfunc "F_GldTreas","payg_cas03","Py03",$boxNumPy03,$@bxPy03,$@boxIdPy03,1348,154,164,162,173,1;
  78. end;
  79. OnDied:
  80. mapannounce "payg_cas03","Treasure Chest Broken Open",17;
  81. set $boxNumPy03, $boxNumPy03 -1;
  82. if($boxNumPy03 == 0) mapannounce "payg_cas03", "All of the treasure boxes have been opened. You must wait untill the next day for them to appear again.",0;
  83. end;
  84. }
  85. // Treasure Room Switch ----------------------------------------------------
  86. payg_cas03,163,167,0 script Switch#TresPy03 111,{
  87. callfunc "F_GldTreasSw", "payg_cas03",11,278;
  88. end;
  89. }
  90. // Treasure Room Protection ------------------------------------------------
  91. payg_cas03,159,168,0 script ban_warp#8 -1,6,6,{
  92. OnTouch:
  93. callfunc "F_TreasProtect", "payg_cas03", "payon",100,100;
  94. end;
  95. }
  96. //<================================ Castle 4 ================================>\\
  97. // Treasure Spawn ----------------------------------------------------------
  98. payg_cas04,146,48,0 script Treasure_Py04 -1,{
  99. OnRecvCastlePy04:
  100. end;
  101. OnInit:
  102. if($boxNumPy04 == 0) end;
  103. set $@bxPy04, $boxNumPy04;
  104. callfunc "F_GldTreas","payg_cas04","Py04",$boxNumPy04,$@bxPy04,$@boxIdPy04,1350,142,44,151,51,1;
  105. end;
  106. OnDied:
  107. mapannounce "payg_cas04","Treasure Chest Broken Open",17;
  108. set $boxNumPy04, $boxNumPy04 -1;
  109. if($boxNumPy04 == 0) mapannounce "payg_cas04", "All of the treasure boxes have been opened. You must wait untill the next day for them to appear again.",0;
  110. end;
  111. }
  112. // Treasure Room Switch ----------------------------------------------------
  113. payg_cas04,151,47,0 script Switch#TresPy04 111,{
  114. callfunc "F_GldTreasSw", "payg_cas04",38,285;
  115. end;
  116. }
  117. // Treasure Room Protection ------------------------------------------------
  118. payg_cas04,147,48,0 script ban_warp#9 -1,6,6,{
  119. OnTouch:
  120. callfunc "F_TreasProtect", "payg_cas04", "payon",100,100;
  121. end;
  122. }
  123. //<================================ Castle 5 ================================>\\
  124. // Treasure Spawn ----------------------------------------------------------
  125. payg_cas05,156,131,0 script Treasure_Py05 -1,{
  126. OnRecvCastlePy05:
  127. end;
  128. OnInit:
  129. if($boxNumPy05 == 0) end;
  130. set $@bxPy05, $boxNumPy05;
  131. callfunc "F_GldTreas","payg_cas05","Py05",$boxNumPy05,$@bxPy05,$@boxIdPy05,1352,152,128,160,135,1;
  132. end;
  133. OnDied:
  134. mapannounce "payg_cas05","Treasure Chest Broken Open",17;
  135. set $boxNumPy05, $boxNumPy05 -1;
  136. if($boxNumPy05 == 0) mapannounce "payg_cas05", "All of the treasure boxes have been opened. You must wait untill the next day for them to appear again.",0;
  137. end;
  138. }
  139. // Treasure Room Switch ----------------------------------------------------
  140. payg_cas05,161,136,0 script Switch#TresPy05 111,{
  141. callfunc "F_GldTreasSw", "payg_cas05",277,250;
  142. end;
  143. }
  144. // Treasure Room Protection ------------------------------------------------
  145. payg_cas05,157,132,0 script ban_warp#10 -1,6,6,{
  146. OnTouch:
  147. callfunc "F_TreasProtect", "payg_cas05", "payon",100,100;
  148. end;
  149. }