payg_treas.txt 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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.gat,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.gat","Treasure Chest Broken Open",17;
  27. set $boxNumPy01, $boxNumPy01 -1;
  28. if($boxNumPy01 == 0) mapannounce "payg_cas01.gat", "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.gat,295,8,0 script Switch#TresPy01 111,{
  33. callfunc "F_GldTreasSw", "payg_cas01",120,59;
  34. end;
  35. }
  36. //<================================ Castle 2 ================================>\\
  37. // Treasure Spawn ----------------------------------------------------------
  38. payg_cas02.gat,1,1,0 script Treasure_Py02 -1,{
  39. OnRecvCastlePy02:
  40. end;
  41. OnInit:
  42. if($boxNumPy02 == 0) end;
  43. set $@bxPy02, $boxNumPy02;
  44. callfunc "F_GldTreas","payg_cas02","Py02",$boxNumPy02,$@bxPy02,$@boxIdPy02,1346,140,140,148,149,1;
  45. end;
  46. OnDied:
  47. mapannounce "payg_cas02.gat","Treasure Chest Broken Open",17;
  48. set $boxNumPy02, $boxNumPy02 -1;
  49. if($boxNumPy02 == 0) mapannounce "payg_cas02.gat", "All of the treasure boxes have been opened. You must wait untill the next day for them to appear again.",0;
  50. end;
  51. }
  52. // Treasure Room Switch ----------------------------------------------------
  53. payg_cas02.gat,149,148,0 script Switch#TresPy02 111,{
  54. callfunc "F_GldTreasSw", "payg_cas02",22,261;
  55. end;
  56. }
  57. //<================================ Castle 3 ================================>\\
  58. // Treasure Spawn ----------------------------------------------------------
  59. payg_cas03.gat,158,168,0 script Treasure_Py03 -1,{
  60. OnRecvCastlePy03:
  61. end;
  62. OnInit:
  63. if($boxNumPy03 == 0) end;
  64. set $@bxPy03, $boxNumPy03;
  65. callfunc "F_GldTreas","payg_cas03","Py03",$boxNumPy03,$@bxPy03,$@boxIdPy03,1348,154,164,162,173,1;
  66. end;
  67. OnDied:
  68. mapannounce "payg_cas03.gat","Treasure Chest Broken Open",17;
  69. set $boxNumPy03, $boxNumPy03 -1;
  70. if($boxNumPy03 == 0) mapannounce "payg_cas03.gat", "All of the treasure boxes have been opened. You must wait untill the next day for them to appear again.",0;
  71. end;
  72. }
  73. // Treasure Room Switch ----------------------------------------------------
  74. payg_cas03.gat,163,167,0 script Switch#TresPy03 111,{
  75. callfunc "F_GldTreasSw", "payg_cas03",11,278;
  76. end;
  77. }
  78. //<================================ Castle 4 ================================>\\
  79. // Treasure Spawn ----------------------------------------------------------
  80. payg_cas04.gat,146,48,0 script Treasure_Py04 -1,{
  81. OnRecvCastlePy04:
  82. end;
  83. OnInit:
  84. if($boxNumPy04 == 0) end;
  85. set $@bxPy04, $boxNumPy04;
  86. callfunc "F_GldTreas","payg_cas04","Py04",$boxNumPy04,$@bxPy04,$@boxIdPy04,1350,142,44,151,51,1;
  87. end;
  88. OnDied:
  89. mapannounce "payg_cas04.gat","Treasure Chest Broken Open",17;
  90. set $boxNumPy04, $boxNumPy04 -1;
  91. if($boxNumPy04 == 0) mapannounce "payg_cas04.gat", "All of the treasure boxes have been opened. You must wait untill the next day for them to appear again.",0;
  92. end;
  93. }
  94. // Treasure Room Switch ----------------------------------------------------
  95. payg_cas04.gat,151,47,0 script Switch#TresPy04 111,{
  96. callfunc "F_GldTreasSw", "payg_cas04",38,285;
  97. end;
  98. }
  99. //<================================ Castle 5 ================================>\\
  100. // Treasure Spawn ----------------------------------------------------------
  101. payg_cas05.gat,156,131,0 script Treasure_Py05 -1,{
  102. OnRecvCastlePy05:
  103. end;
  104. OnInit:
  105. if($boxNumPy05 == 0) end;
  106. set $@bxPy05, $boxNumPy05;
  107. callfunc "F_GldTreas","payg_cas05","Py05",$boxNumPy05,$@bxPy05,$@boxIdPy05,1352,152,128,160,135,1;
  108. end;
  109. OnDied:
  110. mapannounce "payg_cas05.gat","Treasure Chest Broken Open",17;
  111. set $boxNumPy05, $boxNumPy05 -1;
  112. if($boxNumPy05 == 0) mapannounce "payg_cas05.gat", "All of the treasure boxes have been opened. You must wait untill the next day for them to appear again.",0;
  113. end;
  114. }
  115. // Treasure Room Switch ----------------------------------------------------
  116. payg_cas05.gat,161,136,0 script Switch#TresPy05 111,{
  117. callfunc "F_GldTreasSw", "payg_cas05",277,250;
  118. end;
  119. }