nguild_treas.txt 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. //===== eAthena Script =======================================
  2. //= War of Emperium Treasure Rooms for NGuild Guild Castles
  3. //===== By: ==================================================
  4. //= kobra_k88
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= eAthena 0.1+; RO Episode 4+
  9. //===== Description: =========================================
  10. //=
  11. //===== Additional Comments: =================================
  12. //= Based off existing guild scripts. Do not know if it is accurate.[kobra_k88]
  13. //= 1.2 Official treasure spawn [Lupus]
  14. //============================================================
  15. //<=============================== Castle 1 =================================>\\
  16. // Treasure Spawn -----------------------
  17. nguild_alde.gat,1,1,1 script Treasure_N01 -1,{
  18. OnRecvCastleN01:
  19. end;
  20. OnInit:
  21. if($boxNumN01 == 0) end;
  22. set $@bxN01, $boxNumN01;
  23. callfunc "F_GldTreas","nguild_alde","N01",$boxNumN01,$@bxN01,$@boxIdN01,1324+rand(10),114,218,123,227,1;
  24. end;
  25. OnDied:
  26. mapannounce "nguild_alde.gat","Treasure Chest Broken Open",17;
  27. set $boxNumN01, $boxNumN01 -1;
  28. if($boxNumN01 == 0) mapannounce "nguild_alde.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. nguild_alde.gat,123,223,0 script Switch#TresN01 111,{
  33. callfunc "F_GldTreasSw", "nguild_alde",218,176;
  34. end;
  35. }
  36. //<================================ Castle 2 ================================>\\
  37. // Treasure Spawn ----------------------------
  38. nguild_gef.gat,1,1,1 script Treasure_N02 -1,{
  39. OnRecvCastleN02:
  40. end;
  41. OnInit:
  42. if($boxNumN02 == 0) end;
  43. set $@bxN02, $boxNumN02;
  44. callfunc "F_GldTreas","nguild_gef","N02",$boxNumN02,$@bxN02,$@boxIdN02,1334+rand(10),150,108,158,114,1;
  45. end;
  46. OnDied:
  47. mapannounce "nguild_gef.gat","Treasure Chest Broken Open",17;
  48. set $boxNumN02, $boxNumN02 -1;
  49. if($boxNumN02 == 0) mapannounce "nguild_gef.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. // Room Switch ---------------------------------------------------------
  53. nguild_gef.gat,152,117,0 script Switch#TresN02 111,{
  54. callfunc "F_GldTreasSw","nguild_gef",40,49;
  55. end;
  56. }
  57. //<================================ Castle 3 ================================>\\
  58. // Treasure Spawn ---------------------------
  59. nguild_pay.gat,1,1,0 script Treasure_N03 -1,{
  60. OnRecvCastleN03:
  61. end;
  62. OnInit:
  63. if($boxNumN03 == 0) end;
  64. set $@bxN03, $boxNumN03;
  65. callfunc "F_GldTreas","nguild_pay","N03",$boxNumN03,$@bxN03,$@boxIdN03,1344+rand(10),286,4,295,13,1;
  66. end;
  67. OnDied:
  68. mapannounce "nguild_pay.gat","Treasure Chest Broken Open",17;
  69. set $boxNumN03, $boxNumN03 -1;
  70. if($boxNumN03 == 0) mapannounce "nguild_pay.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. nguild_pay.gat,295,8,0 script Switch#TresN03 111,{
  75. callfunc "F_GldTreasSw", "nguild_pay",120,59;
  76. end;
  77. }
  78. //<================================ Castle 4 ================================>\\
  79. // Treasure Spawn -------------------------------
  80. nguild_prt.gat,1,1,0 script Treasure_N04 -1,{
  81. OnRecvCastleN04:
  82. end;
  83. OnInit:
  84. if($boxNumN04 == 0) end;
  85. set $@bxN04, $boxNumN04;
  86. callfunc "F_GldTreas","nguild_prt","N04",$boxNumN04,$@bxN04,$@boxIdN04,1354+rand(10),6,204,15,213,1;
  87. end;
  88. OnDied:
  89. mapannounce "nguild_prt.gat","Treasure Chest Broken Open",17;
  90. set $boxNumN04, $boxNumN04 -1;
  91. if($boxNumN04 == 0) mapannounce "nguild_prt.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. nguild_prt.gat,15,209,0 script Switch#TresN04 111,{
  96. callfunc "F_GldTreasSw", "nguild_prt",109,179;
  97. end;
  98. }