prtg_treas.txt 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. //===== eAthena Script =======================================
  2. //= War of Emperium Treasure Rooms for Prontera 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. prtg_cas01.gat,1,1,0 script Treasure_Pt01 -1,{
  18. OnRecvCastlePt01:
  19. end;
  20. OnInit:
  21. if($boxNumPt01 == 0) end;
  22. set $@bxPt01, $boxNumPt01;
  23. callfunc "F_GldTreas","prtg_cas01","Pt01",$boxNumPt01,$@bxPt01,$@boxIdPt01,1354,6,204,15,213,1;
  24. end;
  25. OnDied:
  26. mapannounce "prtg_cas01.gat","Treasure Chest Broken Open",17;
  27. set $boxNumPt01, $boxNumPt01 -1;
  28. if($boxNumPt01 == 0) mapannounce "prtg_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. prtg_cas01.gat,15,209,0 script Switch#TresPt01 111,{
  33. callfunc "F_GldTreasSw", "prtg_cas01",109,179;
  34. end;
  35. }
  36. //<================================= Castle 2 ===============================>\\
  37. // Treasure Spawn ----------------------------------------------------------
  38. prtg_cas02.gat,1,1,0 script Treasure_Pt02 -1,{
  39. OnRecvCastlePt02:
  40. end;
  41. OnInit:
  42. if($boxNumPt02 == 0) end;
  43. set $@bxPt02, $boxNumPt02;
  44. callfunc "F_GldTreas","prtg_cas02","Pt02",$boxNumPt02,$@bxPt02,$@boxIdPt02,1356,198,224,207,233,1;
  45. end;
  46. OnDied:
  47. mapannounce "prtg_cas02.gat","Treasure Chest Broken Open",17;
  48. set $boxNumPt02, $boxNumPt02 -1;
  49. if($boxNumPt02 == 0) mapannounce "prtg_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. prtg_cas02.gat,207,228,0 script Switch#TresPt02 111,{
  54. callfunc "F_GldTreasSw", "prtg_cas02",94,62;
  55. end;
  56. }
  57. //<================================ Castle 3 ================================>\\
  58. // Treasure Spawn ----------------------------------------------------------
  59. prtg_cas03.gat,1,1,0 script Treasure_Pt03 -1,{
  60. OnRecvCastlePt03:
  61. end;
  62. OnInit:
  63. if($boxNumPt03 == 0) end;
  64. set $@bxPt03, $boxNumPt03;
  65. callfunc "F_GldTreas","prtg_cas03","Pt03",$boxNumPt03,$@bxPt03,$@boxIdPt03,1358,184,128,193,135,1;
  66. end;
  67. OnDied:
  68. mapannounce "prtg_cas03.gat","Treasure Chest Broken Open",17;
  69. set $boxNumPt03, $boxNumPt03 -1;
  70. if($boxNumPt03 == 0) mapannounce "prtg_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. prtg_cas03.gat,193,130,0 script Switch#TresPt03 111,{
  75. callfunc "F_GldTreasSw", "prtg_cas03",45,99;
  76. end;
  77. }
  78. //<================================ Castle 4 ================================>\\
  79. // Treasure Spawn ----------------------------------------------------------
  80. prtg_cas04.gat,1,1,0 script Treasure_Pt04 -1,{
  81. OnRecvCastlePt04:
  82. end;
  83. OnInit:
  84. if($boxNumPt04 == 0) end;
  85. set $@bxPt04, $boxNumPt04;
  86. callfunc "F_GldTreas","prtg_cas04","Pt04",$boxNumPt04,$@bxPt04,$@boxIdPt04,1360,266,158,275,167,1;
  87. end;
  88. OnDied:
  89. mapannounce "prtg_cas04.gat","Treasure Chest Broken Open",17;
  90. set $boxNumPt04, $boxNumPt04 -1;
  91. if($boxNumPt04 == 0) mapannounce "prtg_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. prtg_cas04.gat,275,160,0 script Switch#TresPt04 111,{
  96. callfunc "F_GldTreasSw", "prtg_cas04",259,265;
  97. end;
  98. }
  99. //<================================ Castle 5 ================================>\\
  100. // Treasure Spawn ----------------------------------------------------------
  101. prtg_cas05.gat,1,1,0 script Treasure_Pt05 -1,{
  102. OnRecvCastlePt05:
  103. end;
  104. OnInit:
  105. if($boxNumPt05 == 0) end;
  106. set $@bxPt05, $boxNumPt05;
  107. callfunc "F_GldTreas","prtg_cas05","Pt05",$boxNumPt05,$@bxPt05,$@boxIdPt05,1362,272,174,279,181,1;
  108. end;
  109. OnDied:
  110. mapannounce "prtg_cas05.gat","Treasure Chest Broken Open",17;
  111. set $boxNumPt05, $boxNumPt05 -1;
  112. if($boxNumPt05 == 0) mapannounce "prtg_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. prtg_cas05.gat,281,176,0 script Switch#TresPt05 111,{
  117. callfunc "F_GldTreasSw", "prtg_cas05",34,30;
  118. end;
  119. }