prtg_cas04.txt 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. //===== eAthena Script =======================================
  2. //= War of Emperium (Prontera)
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= eAthena SVN
  9. //===== Description: =========================================
  10. //= NPCs that relate to Prontera Guild Castle 4
  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. prontera,167,203,6 script Skoegul#p4-1::Skoegul 722,{
  19. end;
  20. OnRecvCastlePt04:
  21. FlagEmblem GetCastleData("prtg_cas04",1);
  22. end;
  23. }
  24. // Guild Flag (Outside Castle)
  25. //============================================================
  26. prt_gld,120,243,6 script Skoegul#p4-2::Skoegul2 722,{
  27. set .@GID, GetCastleData("prtg_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("prtg_cas04",1)) {
  48. warp "prtg_cas04",258,247;
  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. OnRecvCastlePt04:
  68. FlagEmblem GetCastleData("prtg_cas04",1);
  69. end;
  70. }
  71. prt_gld,120,236,6 duplicate(Skoegul2) Skoegul#p4-3 722
  72. prt_gld,122,243,6 duplicate(Skoegul2) Skoegul#p4-4 722
  73. prt_gld,122,236,6 duplicate(Skoegul2) Skoegul#p4-5 722
  74. // Guild Flag (Inside Castle)
  75. //============================================================
  76. prtg_cas04,82,29,4 script Skoegul#p4-6::Skoegul3 722,{
  77. end;
  78. OnRecvCastlePt04:
  79. FlagEmblem GetCastleData("prtg_cas04",1);
  80. end;
  81. }
  82. prtg_cas04,75,29,4 duplicate(Skoegul3) Skoegul#p4-7 722
  83. prtg_cas04,75,27,4 duplicate(Skoegul3) Skoegul#p4-8 722
  84. prtg_cas04,82,27,4 duplicate(Skoegul3) Skoegul#p4-9 722
  85. prtg_cas04,59,29,4 duplicate(Skoegul3) Skoegul#p4-10 722
  86. prtg_cas04,67,29,4 duplicate(Skoegul3) Skoegul#p4-11 722
  87. prtg_cas04,258,25,4 duplicate(Skoegul3) Skoegul#p4-12 722
  88. prtg_cas04,258,20,4 duplicate(Skoegul3) Skoegul#p4-13 722
  89. prtg_cas04,263,20,4 duplicate(Skoegul3) Skoegul#p4-14 722
  90. prtg_cas04,263,27,4 duplicate(Skoegul3) Skoegul#p4-15 722
  91. // AGIT Manager
  92. //============================================================
  93. prtg_cas04,292,14,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas04 -1
  94. // Steward
  95. //============================================================
  96. prtg_cas04,259,265,4 duplicate(Gld_Mngr_Template) Van Dreth#prtg_cas04 55
  97. // Guardians
  98. //============================================================
  99. prtg_cas04,259,265,4 duplicate(Gld_Guard_Template) Guardian#prtg_cas04 -1
  100. // Kafra Staff
  101. //============================================================
  102. prtg_cas04,258,247,4 duplicate(Gld_Kafra_Template) Kafra Staff#prtg_cas04 117
  103. // Master's Room Exit
  104. //============================================================
  105. prtg_cas04,275,160,0 script #switch_Pt04 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 "prtg_cas04",259,265;
  111. end;
  112. }
  113. // Guild Treasure Protection
  114. //============================================================
  115. prtg_cas04,271,162,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas04 -1,6,6
  116. // Guild Treasure Spawns
  117. //============================================================
  118. prtg_cas04,271,162,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas04 -1
  119. // Guild Dungeon Switch
  120. //============================================================
  121. prtg_cas04,56,283,0 duplicate(Gld_Dun_Template) #prtg_cas04 111