aldeg_cas02.txt 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. //===== eAthena Script =======================================
  2. //= War of Emperium (Al De baran)
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= eAthena SVN
  9. //===== Description: =========================================
  10. //= NPCs that relate to Al De Baran 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. aldebaran,149,97,4 script Hohenschwangau#a2-1::Hohenschwangau 722,{
  19. end;
  20. OnRecvCastleA02:
  21. FlagEmblem GetCastleData("aldeg_cas02",1);
  22. end;
  23. }
  24. // Guild Flag (Outside Castle)
  25. //============================================================
  26. alde_gld,99,251,4 script Hohenschwangau#a2-2::Hohenschwangau2 722,{
  27. set .@GID, GetCastleData("aldeg_cas02",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("aldeg_cas02",1)) {
  48. warp "aldeg_cas02",84,74;
  49. //warp "aldeg_cas02",220,190;
  50. end;
  51. }
  52. }
  53. close;
  54. }
  55. mes "[ Edict of the Divine Rune Midgard Kingdom ]";
  56. mes " ";
  57. mes "1. Following the ordinance of the";
  58. mes "Divine Rune Midgard Kingdom,";
  59. mes "we approve that this place is in";
  60. mes "the private possession of ^ff0000" + GetGuildName(.@GID) + "^000000 Guild.";
  61. mes " ";
  62. mes "2. The guild Master of ^ff0000"+ GetGuildName(.@GID) + "^000000 Guild is";
  63. mes "^FF0000" + GetGuildMaster(.@GID) + "^000000";
  64. mes "If there is anyone who objects to this,";
  65. mes " prove your strength and honor with a steel blade in your hand.";
  66. }
  67. close;
  68. OnRecvCastleA02:
  69. FlagEmblem GetCastleData("aldeg_cas02",1);
  70. end;
  71. }
  72. alde_gld,99,244,4 duplicate(Hohenschwangau2) Hohenschwangau#a2-3 722
  73. // Guild Flag (Inside Castle)
  74. //============================================================
  75. aldeg_cas02,82,71,2 script Hohenschwangau#a2-4::Hohenschwangau3 722,{
  76. end;
  77. OnRecvCastleA02:
  78. FlagEmblem GetCastleData("aldeg_cas02",1);
  79. end;
  80. }
  81. aldeg_cas02,67,30,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-5 722
  82. aldeg_cas02,183,140,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-6 722
  83. aldeg_cas02,212,152,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-7 722
  84. aldeg_cas02,108,39,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-8 722
  85. aldeg_cas02,57,213,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-9 722
  86. aldeg_cas02,91,181,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-10 722
  87. aldeg_cas02,103,53,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-11 722
  88. aldeg_cas02,73,53,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-12 722
  89. aldeg_cas02,63,41,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-13 722
  90. aldeg_cas02,229,6,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-14 722
  91. aldeg_cas02,230,40,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-15 722
  92. aldeg_cas02,197,40,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-16 722
  93. aldeg_cas02,32,213,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-17 722
  94. aldeg_cas02,121,29,2 duplicate(Hohenschwangau3) Hohenschwangau#a2-18 722
  95. // AGIT Manager
  96. //============================================================
  97. aldeg_cas02,214,24,0 duplicate(Gld_Agit_Manager) Agit#aldeg_cas02 -1
  98. // Steward
  99. //============================================================
  100. aldeg_cas02,78,74,0 duplicate(Gld_Mngr_Template) Chenchenlie#aldeg_cas02 55
  101. // Guardians
  102. //============================================================
  103. aldeg_cas02,78,74,0 duplicate(Gld_Guard_Template) Guardian#aldeg_cas02 -1
  104. // Kafra Staff
  105. //============================================================
  106. aldeg_cas02,84,74,0 duplicate(Gld_Kafra_Template) Kafra Staff#aldeg_cas02 117
  107. // Master's Room Exit
  108. //============================================================
  109. aldeg_cas02,139,235,0 script #switch_A02 111,{
  110. mes " ";
  111. mes "There's a small lever. Will you pull it? ";
  112. next;
  113. if(select("Pull.:Do not.") == 2) close;
  114. warp "aldeg_cas02",78,75;
  115. end;
  116. }
  117. // Guild Treasure Protection
  118. //============================================================
  119. aldeg_cas02,135,230,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas02 -1,8,8
  120. // Guild Treasure Spawns
  121. //============================================================
  122. aldeg_cas02,135,230,0 duplicate(Gld_Trea_Spawn) Treasure#aldeg_cas02 -1
  123. // Guild Dungeon Switch
  124. //============================================================
  125. aldeg_cas02,194,136,0 duplicate(Gld_Dun_Template) #aldeg_cas02 111