gefg_cas03.txt 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. //===== eAthena Script =======================================
  2. //= War of Emperium (Geffen)
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= eAthena SVN
  9. //===== Description: =========================================
  10. //= NPCs that relate to Geffen Guild Castle 3
  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. geffen,120,132,8 script Yesnelph#g3-1::Yesnelph 722,{
  18. end;
  19. OnRecvCastleG03:
  20. FlagEmblem GetCastleData("gefg_cas03",1);
  21. end;
  22. }
  23. // Guild Flag (Outside Castle)
  24. //============================================================
  25. gef_fild13,78,182,4 script Yesnelph#g3-2::Yesnelph2 722,{
  26. set .@GID, GetCastleData("gefg_cas03",1);
  27. if (.@GID == 0) {
  28. mes " [ Edict of the Divine Rune Midgard Kingdom ]";
  29. mes " ";
  30. mes "1. Follow the ordinance of The Divine Rune Midgard Kingdom, ";
  31. mes "We declare that";
  32. mes "there is no formal master of this castle.";
  33. mes " ";
  34. mes "2. To the one who can ";
  35. mes "overcome all trials";
  36. mes "and destroy the Emperium,";
  37. mes "the king will endow the one with";
  38. mes "ownership of this castle.";
  39. }
  40. else {
  41. if (getcharid(2) == .@GID) {
  42. mes "Brave ones...";
  43. mes "Do you wish to return to your honorable place?";
  44. next;
  45. if (select("Return to the guild castle.:Quit.") == 1) {
  46. if (getcharid(2) == GetCastleData("gefg_cas03",1)) {
  47. warp "gefg_cas03",116,89;
  48. //warp "gefg_cas03",221,30;
  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. OnRecvCastleG03:
  68. FlagEmblem GetCastleData("gefg_cas03",1);
  69. end;
  70. }
  71. gef_fild13,87,182,4 duplicate(Yesnelph2) Yesnelph#g3-3 722
  72. gef_fild13,73,295,7 duplicate(Yesnelph2) Yesnelph#g3-4 722
  73. gef_fild13,113,274,7 duplicate(Yesnelph2) Yesnelph#g3-5 722
  74. gef_fild13,144,235,6 duplicate(Yesnelph2) Yesnelph#g3-6 722
  75. gef_fild13,144,244,4 duplicate(Yesnelph2) Yesnelph#g3-7 722
  76. // Guild Flag (Inside Castle)
  77. //============================================================
  78. gefg_cas03,122,220,6 script Yesnelph#g3-8::Yesnelph3 722,{
  79. end;
  80. OnRecvCastleG03:
  81. FlagEmblem GetCastleData("gefg_cas03",1);
  82. end;
  83. }
  84. gefg_cas03,122,229,6 duplicate(Yesnelph3) Yesnelph#g3-9 722
  85. gefg_cas03,91,257,7 duplicate(Yesnelph3) Yesnelph#g3-10 722
  86. gefg_cas03,52,276,7 duplicate(Yesnelph3) Yesnelph#g3-11 722
  87. gefg_cas03,56,164,4 duplicate(Yesnelph3) Yesnelph#g3-12 722
  88. gefg_cas03,65,164,4 duplicate(Yesnelph3) Yesnelph#g3-13 722
  89. gefg_cas03,37,214,1 duplicate(Yesnelph3) Yesnelph#g3-14 722
  90. gefg_cas03,34,208,1 duplicate(Yesnelph3) Yesnelph#g3-15 722
  91. // AGIT Manager
  92. //============================================================
  93. gefg_cas03,245,167,0 duplicate(Gld_Agit_Manager) Agit#gefg_cas03 -1
  94. // Steward
  95. //============================================================
  96. gefg_cas03,106,23,5 duplicate(Gld_Mngr_Template) Jean#gefg_cas03 55
  97. // Guardians
  98. //============================================================
  99. gefg_cas03,106,23,5 duplicate(Gld_Guard_Template) Guardian#gefg_cas03 -1
  100. // Kafra Staff
  101. //============================================================
  102. gefg_cas03,116,89,5 duplicate(Gld_Kafra_Template) Kafra Staff#gefg_cas03 117
  103. // Master's Room Exit
  104. //============================================================
  105. gefg_cas03,275,289,0 script #switch_G03 111,{
  106. mes " ";
  107. mes "There's a small lever. Will you pull it? ";
  108. next;
  109. if(select("Pull.:Do not.") == 2) close;
  110. warp "gefg_cas03",106,24;
  111. end;
  112. }
  113. // Guild Treasure Protection
  114. //============================================================
  115. gefg_cas03,271,290,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas03 -1,6,6
  116. // Guild Treasure Spawns
  117. //============================================================
  118. gefg_cas03,271,290,0 duplicate(Gld_Trea_Spawn) Treasure#gefg_cas03 -1
  119. // Guild Dungeon Switch
  120. //============================================================
  121. gefg_cas03,221,43,0 duplicate(Gld_Dun_Template) #gefg_cas03 111