payg_cas02.txt 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. //===== eAthena Script =======================================
  2. //= War of Emperium (Payon)
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= eAthena SVN
  9. //===== Description: =========================================
  10. //= NPCs that relate to Payon Guild Castle 2
  11. //===== Additional Comments: =================================
  12. //= 1.0 First Version. No longer uses functions. [L0ne_W0lf]
  13. //= 1.1 Corrected flag-in spawn point. [L0ne_W0lf]
  14. //= 1.2 Removed dialog from interior flags. [L0ne_W0lf]
  15. //============================================================
  16. // Guild Flag (Town)
  17. //============================================================
  18. payon,166,173,3 script Scarlet Palace#f2-1::ScarletPalace 722,{
  19. end;
  20. OnRecvCastlePy02:
  21. FlagEmblem GetCastleData("payg_cas02",1);
  22. end;
  23. }
  24. payon,97,322,4 duplicate(ScarletPalace) Scarlet Palace#f2-2 722
  25. // Guild Flag (Outside Castle)
  26. //============================================================
  27. pay_gld,292,112,6 script Scarlet Palace#f2-3::ScarletPalace2 722,{
  28. set .@GID, GetCastleData("payg_cas02",1);
  29. if (.@GID == 0) {
  30. mes " [ Edict of the Divine Rune Midgard Kingdom ]";
  31. mes " ";
  32. mes "1. Follow the ordinance of The Divine Rune Midgard Kingdom, ";
  33. mes "We declare that";
  34. mes "there is no formal master of this castle.";
  35. mes " ";
  36. mes "2. To the one who can ";
  37. mes "overcome all trials";
  38. mes "and destroy the Emperium,";
  39. mes "the king will endow the one with";
  40. mes "ownership of this castle.";
  41. }
  42. else {
  43. if (getcharid(2) == .@GID) {
  44. mes "Brave ones...";
  45. mes "Do you wish to return to your honorable place?";
  46. next;
  47. if (select("Return to the guild castle.:Quit.") == 1) {
  48. if (getcharid(2) == GetCastleData("payg_cas02",1)) {
  49. warp "payg_cas02",22,275;
  50. //warp "payg_cas02",278,251;
  51. end;
  52. }
  53. }
  54. close;
  55. }
  56. mes "[ Edict of the Divine Rune Midgard Kingdom ]";
  57. mes " ";
  58. mes "1. Following the ordinance of the";
  59. mes "Divine Rune Midgard Kingdom,";
  60. mes "we approve that this place is in";
  61. mes "the private possession of ^ff0000" + GetGuildName(.@GID) + "^000000 Guild.";
  62. mes " ";
  63. mes "2. The guild Master of ^ff0000"+ GetGuildName(.@GID) + "^000000 Guild is";
  64. mes "^FF0000" + GetGuildMaster(.@GID) + "^000000";
  65. mes "If there is anyone who objects to this,";
  66. mes " prove your strength and honor with a steel blade in your hand.";
  67. }
  68. close;
  69. OnRecvCastlePy02:
  70. FlagEmblem GetCastleData("payg_cas02",1);
  71. end;
  72. }
  73. pay_gld,292,120,6 duplicate(ScarletPalace2) Scarlet Palace#f2-4 722
  74. pay_gld,291,135,6 duplicate(ScarletPalace2) Scarlet Palace#f2-5 722
  75. pay_gld,271,163,0 duplicate(ScarletPalace2) Scarlet Palace#f2-6 722
  76. // Guild Flag (Inside Castle)
  77. //============================================================
  78. payg_cas02,254,40,6 script Scarlet Palace#f2-7::ScarletPalace3 722,{
  79. end;
  80. OnRecvCastlePy02:
  81. FlagEmblem GetCastleData("payg_cas02",1);
  82. end;
  83. }
  84. payg_cas02,254,48,6 duplicate(ScarletPalace3) Scarlet Palace#f2-8 722
  85. payg_cas02,202,49,0 duplicate(ScarletPalace3) Scarlet Palace#f2-9 722
  86. payg_cas02,209,49,0 duplicate(ScarletPalace3) Scarlet Palace#f2-10 722
  87. payg_cas02,59,282,4 duplicate(ScarletPalace3) Scarlet Palace#f2-11 722
  88. payg_cas02,70,282,4 duplicate(ScarletPalace3) Scarlet Palace#f2-12 722
  89. // AGIT Manager
  90. //============================================================
  91. payg_cas02,39,25,0 duplicate(Gld_Agit_Manager) Agit#payg_cas02 -1
  92. // Steward
  93. //============================================================
  94. payg_cas02,22,260,7 duplicate(Gld_Mngr_Template) Cherieos#payg_cas02 55
  95. // Guardians
  96. //============================================================
  97. payg_cas02,22,260,7 duplicate(Gld_Guard_Template) Guardian#payg_cas02 -1
  98. // Kafra Staff
  99. //============================================================
  100. payg_cas02,22,275,5 duplicate(Gld_Kafra_Template) Kafra Staff#payg_cas02 117
  101. // Master's Room Exit
  102. //============================================================
  103. payg_cas02,149,148,0 script #switch_Py02 111,{
  104. mes " ";
  105. mes "There's a small lever. Will you pull it? ";
  106. next;
  107. if(select("Pull.:Do not.") == 2) close;
  108. warp "payg_cas02",22,261;
  109. end;
  110. }
  111. // Guild Treasure Protection
  112. //============================================================
  113. payg_cas02,145,144,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas02 -1,6,6
  114. // Guild Treasure Spawns
  115. //============================================================
  116. payg_cas02,145,144,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas02 -1
  117. // Guild Dungeon Switch
  118. //============================================================
  119. payg_cas02,278,247,0 duplicate(Gld_Dun_Template) #payg_cas02 111