gefg_cas04.txt 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. //===== eAthena Script =======================================
  2. //= War of Emperium (Geffen)
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= eAthena SVN
  9. //===== Description: =========================================
  10. //= NPCs that relate to Geffen Guild Castle 4
  11. //===== Additional Comments: =================================
  12. //= 1.0 First Version. No longer uses functions. [L0ne_W0lf]
  13. //= 1.1 Corrected treasure room switch coordinates. [L0ne_W0lf]
  14. //= 1.2 Removed dialog from interior flags. [L0ne_W0lf]
  15. //============================================================
  16. // Guild Flag (Town)
  17. //============================================================
  18. geffen,127,130,7 script Bergel#g4-1::Bergel 722,{
  19. end;
  20. OnRecvCastleG04:
  21. FlagEmblem GetCastleData("gefg_cas04",1);
  22. end;
  23. }
  24. // Guild Flag (Outside Castle)
  25. //============================================================
  26. gef_fild13,190,283,3 script Bergel#g4-2::Bergel2 722,{
  27. set .@GID, GetCastleData("gefg_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("gefg_cas04",1)) {
  48. warp "gefg_cas04",59,70;
  49. //warp "gefg_cas04",168 43;
  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. OnRecvCastleG04:
  69. FlagEmblem GetCastleData("gefg_cas04",1);
  70. end;
  71. }
  72. gef_fild13,199,274,3 duplicate(Bergel2) Bergel#g4-3 722
  73. // Guild Flag (Inside Castle)
  74. //============================================================
  75. gefg_cas04,24,157,4 script Bergel#g4-4::Bergel3 722,{
  76. end;
  77. OnRecvCastleG04:
  78. FlagEmblem GetCastleData("gefg_cas04",1);
  79. end;
  80. }
  81. gefg_cas04,35,158,4 duplicate(Bergel3) Bergel#g4-5 722
  82. gefg_cas04,44,184,4 duplicate(Bergel3) Bergel#g4-6 722
  83. gefg_cas04,51,184,4 duplicate(Bergel3) Bergel#g4-7 722
  84. gefg_cas04,39,212,7 duplicate(Bergel3) Bergel#g4-8 722
  85. gefg_cas04,29,212,1 duplicate(Bergel3) Bergel#g4-9 722
  86. gefg_cas04,24,73,1 duplicate(Bergel3) Bergel#g4-10 722
  87. gefg_cas04,35,73,4 duplicate(Bergel3) Bergel#g4-11 722
  88. // AGIT Manager
  89. //============================================================
  90. gefg_cas04,174,178,0 duplicate(Gld_Agit_Manager) Agit#gefg_cas04 -1
  91. // Steward
  92. //============================================================
  93. gefg_cas04,73,46,3 duplicate(Gld_Mngr_Template) Kellvahni#gefg_cas04 55
  94. // Guardians
  95. //============================================================
  96. gefg_cas04,73,46,3 duplicate(Gld_Guard_Template) Guardian#gefg_cas04 -1
  97. // Kafra Staff
  98. //============================================================
  99. gefg_cas04,59,70,3 duplicate(Gld_Kafra_Template) Kafra Staff#gefg_cas04 117
  100. // Master's Room Exit
  101. //============================================================
  102. gefg_cas04,117,123,0 script #switch_G04 111,{
  103. mes " ";
  104. mes "There's a small lever. Will you pull it? ";
  105. next;
  106. if(select("Pull.:Do not.") == 2) close;
  107. warp "gefg_cas04",73,47;
  108. end;
  109. }
  110. // Guild Treasure Protection
  111. //============================================================
  112. gefg_cas04,116,119,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas04 -1,6,6
  113. // Guild Treasure Spawns
  114. //============================================================
  115. gefg_cas04,116,119,0 duplicate(Gld_Trea_Spawn) Treasure#gefg_cas04 -1
  116. // Guild Dungeon Switch
  117. //============================================================
  118. gefg_cas04,58,75,0 duplicate(Gld_Dun_Template) #gefg_cas04 111