nguild_treas.txt 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. //===== eAthena Script =======================================
  2. //= War of Emperium Treasure Rooms for NGuild Guild Castles
  3. //===== By: ==================================================
  4. //= kobra_k88
  5. //===== Current Version: =====================================
  6. //= 1.1
  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. //============================================================
  14. //<=============================== Castle 1 =================================>\\
  15. // Treasure Spawn -----------------------
  16. nguild_alde.gat,1,1,1 script Treasure_N01 -1,{
  17. OnRecvCastleN01:
  18. end;
  19. OnInit:
  20. if($boxNumN01 == 0) end;
  21. set $@bxN01, $boxNumN01;
  22. callfunc "F_GldTreas","nguild_alde","N01",$boxNumN01,$@bxN01,$@boxIdN01,1324,114,218,123,227,1;
  23. end;
  24. OnDied:
  25. mapannounce "nguild_alde.gat","Treasure Chest Broken Open",17;
  26. set $boxNumN01, $boxNumN01 -1;
  27. 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;
  28. end;
  29. }
  30. // Treasure Room Switch --------------------
  31. nguild_alde.gat,123,223,0 script Switch#TresN01 111,{
  32. callfunc "F_GldTreasSw", "nguild_alde",218,176;
  33. end;
  34. }
  35. //<================================ Castle 2 ================================>\\
  36. // Treasure Spawn ----------------------------
  37. nguild_gef.gat,1,1,1 script Treasure_N02 -1,{
  38. OnRecvCastleN02:
  39. end;
  40. OnInit:
  41. if($boxNumN02 == 0) end;
  42. set $@bxN02, $boxNumN02;
  43. callfunc "F_GldTreas","nguild_gef","N02",$boxNumN02,$@bxN02,$@boxIdN02,1334,150,108,158,114,1;
  44. end;
  45. OnDied:
  46. mapannounce "nguild_gef.gat","Treasure Chest Broken Open",17;
  47. set $boxNumN02, $boxNumN02 -1;
  48. 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;
  49. end;
  50. }
  51. // Room Switch ---------------------------------------------------------
  52. nguild_gef.gat,152,117,0 script Switch#TresN02 111,{
  53. callfunc "F_GldTreasSw","nguild_gef",40,49;
  54. end;
  55. }
  56. //<================================ Castle 3 ================================>\\
  57. // Treasure Spawn ---------------------------
  58. nguild_pay.gat,1,1,0 script Treasure_N03 -1,{
  59. OnRecvCastleN03:
  60. end;
  61. OnInit:
  62. if($boxNumN03 == 0) end;
  63. set $@bxN03, $boxNumN03;
  64. callfunc "F_GldTreas","nguild_pay","N03",$boxNumN03,$@bxN03,$@boxIdN03,1344,286,4,295,13,1;
  65. end;
  66. OnDied:
  67. mapannounce "nguild_pay.gat","Treasure Chest Broken Open",17;
  68. set $boxNumN03, $boxNumN03 -1;
  69. 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;
  70. end;
  71. }
  72. // Treasure Room Switch ---------------------------------------------------
  73. nguild_pay.gat,295,8,0 script Switch#TresN03 111,{
  74. callfunc "F_GldTreasSw", "nguild_pay",120,59;
  75. end;
  76. }
  77. //<================================ Castle 4 ================================>\\
  78. // Treasure Spawn -------------------------------
  79. nguild_prt.gat,1,1,0 script Treasure_N04 -1,{
  80. OnRecvCastleN04:
  81. end;
  82. OnInit:
  83. if($boxNumN04 == 0) end;
  84. set $@bxN04, $boxNumN04;
  85. callfunc "F_GldTreas","nguild_prt","N04",$boxNumN04,$@bxN04,$@boxIdN04,1354,6,204,15,213,1;
  86. end;
  87. OnDied:
  88. mapannounce "nguild_prt.gat","Treasure Chest Broken Open",17;
  89. set $boxNumN04, $boxNumN04 -1;
  90. 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;
  91. end;
  92. }
  93. // Treasure Room Switch ----------------------------------------------------
  94. nguild_prt.gat,15,209,0 script Switch#TresN04 111,{
  95. callfunc "F_GldTreasSw", "nguild_prt",109,179;
  96. end;
  97. }