gefg_cas01.txt 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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 1
  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,109,123,2 script Repherion#g1-1::Repherion 722,{
  18. end;
  19. OnRecvCastleG01:
  20. FlagEmblem GetCastleData("gefg_cas01",1);
  21. end;
  22. }
  23. // Guild Flag (Outside Castle)
  24. //============================================================
  25. gef_fild13,148,51,5 script Repherion#g1-2::Repherion2 722,{
  26. set .@GID, GetCastleData("gefg_cas01",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_cas01",1)) {
  47. warp "gefg_cas01",83,47;
  48. //warp "gefg_cas01",197,36;
  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. OnRecvCastleG01:
  68. FlagEmblem GetCastleData("gefg_cas01",1);
  69. end;
  70. }
  71. gef_fild13,155,54,5 duplicate(Repherion2) Repherion#g1-3 722
  72. gef_fild13,212,79,6 duplicate(Repherion2) Repherion#g1-4 722
  73. gef_fild13,211,71,6 duplicate(Repherion2) Repherion#g1-5 722
  74. // Guild Flag (Inside Castle)
  75. //============================================================
  76. gefg_cas01,28,157,4 script Repherion#g1-6::Repherion3 722,{
  77. end;
  78. OnRecvCastleG01:
  79. FlagEmblem GetCastleData("gefg_cas01",1);
  80. end;
  81. }
  82. gefg_cas01,22,156,5 duplicate(Repherion3) Repherion#g1-7 722
  83. gefg_cas01,68,185,3 duplicate(Repherion3) Repherion#g1-8 722
  84. gefg_cas01,17,171,5 duplicate(Repherion3) Repherion#g1-9 722
  85. gefg_cas01,59,16,4 duplicate(Repherion3) Repherion#g1-10 722
  86. gefg_cas01,64,16,4 duplicate(Repherion3) Repherion#g1-11 722
  87. // AGIT Manager
  88. //============================================================
  89. gefg_cas01,198,182,0 duplicate(Gld_Agit_Manager) Agit#gefg_cas01 -1
  90. // Steward
  91. //============================================================
  92. gefg_cas01,40,48,5 duplicate(Gld_Mngr_Template) Gnahcher#gefg_cas01 55
  93. // Guardians
  94. //============================================================
  95. gefg_cas01,40,48,5 duplicate(Gld_Guard_Template) Guardian#gefg_cas01 -1
  96. // Kafra Staff
  97. //============================================================
  98. gefg_cas01,84,47,0 duplicate(Gld_Kafra_Template) Kafra Staff#gefg_cas01 117
  99. // Master's Room Exit
  100. //============================================================
  101. gefg_cas01,152,117,0 script #switch_G01 111,{
  102. mes " ";
  103. mes "There's a small lever. Will you pull it? ";
  104. next;
  105. if(select("Pull.:Do not.") == 2) close;
  106. warp "gefg_cas01",40,49;
  107. end;
  108. }
  109. // Guild Treasure Protection
  110. //============================================================
  111. gefg_cas01,154,112,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas01 -1,6,6
  112. // Guild Treasure Spawns
  113. //============================================================
  114. gefg_cas01,154,112,0 duplicate(Gld_Trea_Spawn) Treasure#gefg_cas01 -1
  115. // Guild Dungeon Switch
  116. //============================================================
  117. gefg_cas01,78,84,0 duplicate(Gld_Dun_Template) #gefg_cas01 111