payg_cas01.txt 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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 1
  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. //= Fixed position of Guild dungeon switch.
  16. //============================================================
  17. // Guild Flag (Town)
  18. //============================================================
  19. payon,166,161,3 script Bright Arbor#f1-1::BrightArbor 722,{
  20. end;
  21. OnRecvCastlePy01:
  22. FlagEmblem GetCastleData("payg_cas01",1);
  23. end;
  24. }
  25. payon,90,322,4 duplicate(BrightArbor) Bright Arbor#f1-2 722
  26. // Guild Flag (Outside Castle)
  27. //============================================================
  28. pay_gld,125,236,4 script Bright Arbor#f1-3::BrightArbor2 722,{
  29. set .@GID, GetCastleData("payg_cas01",1);
  30. if (.@GID == 0) {
  31. mes " [ Edict of the Divine Rune Midgard Kingdom ]";
  32. mes " ";
  33. mes "1. Follow the ordinance of The Divine Rune Midgard Kingdom, ";
  34. mes "We declare that";
  35. mes "there is no formal master of this castle.";
  36. mes " ";
  37. mes "2. To the one who can ";
  38. mes "overcome all trials";
  39. mes "and destroy the Emperium,";
  40. mes "the king will endow the one with";
  41. mes "ownership of this castle.";
  42. }
  43. else {
  44. if (getcharid(2) == .@GID) {
  45. mes "Brave ones...";
  46. mes "Do you wish to return to your honorable place?";
  47. next;
  48. if (select("Return to the guild castle.:Quit.") == 1) {
  49. if (getcharid(2) == GetCastleData("payg_cas01",1)) {
  50. warp "payg_cas01",212,108;
  51. //warp "payg_cas01",54 144;
  52. end;
  53. }
  54. }
  55. close;
  56. }
  57. mes "[ Edict of the Divine Rune Midgard Kingdom ]";
  58. mes " ";
  59. mes "1. Following the ordinance of the";
  60. mes "Divine Rune Midgard Kingdom,";
  61. mes "we approve that this place is in";
  62. mes "the private possession of ^ff0000" + GetGuildName(.@GID) + "^000000 Guild.";
  63. mes " ";
  64. mes "2. The guild Master of ^ff0000"+ GetGuildName(.@GID) + "^000000 Guild is";
  65. mes "^FF0000" + GetGuildMaster(.@GID) + "^000000";
  66. mes "If there is anyone who objects to this,";
  67. mes " prove your strength and honor with a steel blade in your hand.";
  68. }
  69. close;
  70. OnRecvCastlePy01:
  71. FlagEmblem GetCastleData("payg_cas01",1);
  72. end;
  73. }
  74. pay_gld,110,233,4 duplicate(BrightArbor2) Bright Arbor#f1-4 722
  75. pay_gld,116,233,4 duplicate(BrightArbor2) Bright Arbor#f1-5 722
  76. pay_gld,91,239,2 duplicate(BrightArbor2) Bright Arbor#f1-6 722
  77. // Guild Flag (Inside Castle)
  78. //============================================================
  79. payg_cas01,238,67,4 script Bright Arbor#f1-7::BrightArbor3 722,{
  80. end;
  81. OnRecvCastlePy01:
  82. FlagEmblem GetCastleData("payg_cas01",1);
  83. end;
  84. }
  85. payg_cas01,233,67,4 duplicate(BrightArbor3) Bright Arbor#f1-8 722
  86. payg_cas01,221,123,4 duplicate(BrightArbor3) Bright Arbor#f1-9 722
  87. payg_cas01,221,116,4 duplicate(BrightArbor3) Bright Arbor#f1-10 722
  88. payg_cas01,206,108,4 duplicate(BrightArbor3) Bright Arbor#f1-11 722
  89. payg_cas01,212,108,4 duplicate(BrightArbor3) Bright Arbor#f1-12 722
  90. // AGIT Manager
  91. //============================================================
  92. payg_cas01,139,139,0 duplicate(Gld_Agit_Manager) Agit#payg_cas01 -1
  93. // Steward
  94. //============================================================
  95. payg_cas01,120,58,4 duplicate(Gld_Mngr_Template) Kurunnadi#payg_cas01 55
  96. // Guardians
  97. //============================================================
  98. payg_cas01,120,58,4 duplicate(Gld_Guard_Template) Guardian#payg_cas01 -1
  99. // Kafra Staff
  100. //============================================================
  101. payg_cas01,128,58,3 duplicate(Gld_Kafra_Template) Kafra Staff#payg_cas01 117
  102. // Master's Room Exit
  103. //============================================================
  104. payg_cas01,295,8,0 script #switch_Py01 111,{
  105. mes " ";
  106. mes "There's a small lever. Will you pull it? ";
  107. next;
  108. if(select("Pull.:Do not.") == 2) close;
  109. warp "payg_cas01",120,59;
  110. end;
  111. }
  112. // Guild Treasure Protection
  113. //============================================================
  114. payg_cas01,291,8,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas01 -1,6,6
  115. // Guild Treasure Spawns
  116. //============================================================
  117. payg_cas01,291,8,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas01 -1
  118. // Guild Dungeon Switch
  119. //============================================================
  120. payg_cas01,101,25,0 duplicate(Gld_Dun_Template) #payg_cas01 111