aldeg_cas05.txt 5.0 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 5
  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,128,97,4 script Rothenburg#a5-1::Rothenburg 722,{
  19. end;
  20. OnRecvCastleA05:
  21. FlagEmblem GetCastleData("aldeg_cas05",1);
  22. end;
  23. }
  24. // Guild Flag (Outside Castle)
  25. //============================================================
  26. alde_gld,265,93,6 script Rothenburg#a5-2::Rothenburg2 722,{
  27. set .@GID, GetCastleData("aldeg_cas05",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_cas05",1)) {
  48. warp "aldeg_cas05",31,190;
  49. //warp "aldeg_cas05",167,225;
  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. OnRecvCastleA05:
  69. FlagEmblem GetCastleData("aldeg_cas05",1);
  70. end;
  71. }
  72. alde_gld,265,87,6 duplicate(Rothenburg2) Rothenburg#a5-3 722
  73. // Guild Flag (Inside Castle)
  74. //============================================================
  75. aldeg_cas05,170,85,2 script Rothenburg#a5-4::Rothenburg3 722,{
  76. end;
  77. OnRecvCastleA05:
  78. FlagEmblem GetCastleData("aldeg_cas05",1);
  79. end;
  80. }
  81. aldeg_cas05,142,212,2 duplicate(Rothenburg3) Rothenburg#a5-5 722
  82. aldeg_cas05,149,196,2 duplicate(Rothenburg3) Rothenburg#a5-6 722
  83. aldeg_cas05,41,180,2 duplicate(Rothenburg3) Rothenburg#a5-7 722
  84. aldeg_cas05,38,201,2 duplicate(Rothenburg3) Rothenburg#a5-8 722
  85. aldeg_cas05,65,182,2 duplicate(Rothenburg3) Rothenburg#a5-9 722
  86. aldeg_cas05,65,205,2 duplicate(Rothenburg3) Rothenburg#a5-10 722
  87. aldeg_cas05,10,218,2 duplicate(Rothenburg3) Rothenburg#a5-11 722
  88. aldeg_cas05,164,201,2 duplicate(Rothenburg3) Rothenburg#a5-12 722
  89. aldeg_cas05,14,117,2 duplicate(Rothenburg3) Rothenburg#a5-14 722
  90. aldeg_cas05,10,225,2 duplicate(Rothenburg3) Rothenburg#a5-15 722
  91. aldeg_cas05,187,59,2 duplicate(Rothenburg3) Rothenburg#a5-16 722
  92. aldeg_cas05,154,51,2 duplicate(Rothenburg3) Rothenburg#a5-17 722
  93. aldeg_cas05,22,211,2 duplicate(Rothenburg3) Rothenburg#a5-18 722
  94. aldeg_cas05,150,202,2 duplicate(Rothenburg3) Rothenburg#a5-19 722
  95. // AGIT Manager
  96. //============================================================
  97. aldeg_cas05,28,102,0 duplicate(Gld_Agit_Manager) Agit#aldeg_cas05 -1
  98. // Steward
  99. //============================================================
  100. aldeg_cas05,52,179,0 duplicate(Gld_Mngr_Template) Blemhemsen#aldeg_cas05 55
  101. // Guardians
  102. //============================================================
  103. aldeg_cas05,52,179,0 duplicate(Gld_Guard_Template) Guardian#aldeg_cas05 -1
  104. // Kafra Staff
  105. //============================================================
  106. aldeg_cas05,31,190,0 duplicate(Gld_Kafra_Template) Kafra Staff#aldeg_cas05 117
  107. // Master's Room Exit
  108. //============================================================
  109. aldeg_cas05,64,8,0 script #switch_A05 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_cas05",51,179;
  115. end;
  116. }
  117. // Guild Treasure Protection
  118. //============================================================
  119. aldeg_cas05,62,12,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas05 -1,8,8
  120. // Guild Treasure Spawns
  121. //============================================================
  122. aldeg_cas05,62,12,0 duplicate(Gld_Trea_Spawn) Treasure#aldeg_cas05 -1
  123. // Guild Dungeon Switch
  124. //============================================================
  125. aldeg_cas05,22,205,0 duplicate(Gld_Dun_Template) #aldeg_cas05 111