nguild_treas.txt 3.7 KB

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