prtg_treas.txt 4.8 KB

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