payg_cas04.txt 4.5 KB

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