prtg_cas03.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. //===== eAthena Script =======================================
  2. //= War of Emperium (Prontera)
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.3
  7. //===== Compatible With: =====================================
  8. //= eAthena SVN
  9. //===== Description: =========================================
  10. //= NPCs that relate to Prontera Guild Castle 1
  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 Corrected treasure room switch coordinates. [L0ne_W0lf]
  15. //= 1.3 Removed dialog from interior flags. [L0ne_W0lf]
  16. //============================================================
  17. // Guild Flag (Town)
  18. //============================================================
  19. prontera,143,203,2 script Fadhgridh#p3-1::Fadhgridh 722,{
  20. end;
  21. OnRecvCastlePt03:
  22. FlagEmblem GetCastleData("prtg_cas03",1);
  23. end;
  24. }
  25. // Guild Flag (Outside Castle)
  26. //============================================================
  27. prt_gld,147,140,4 script Fadhgridh#p3-2::Fadhgridh2 722,{
  28. set .@GID, GetCastleData("prtg_cas03",1);
  29. if (.@GID == 0) {
  30. mes " [ Edict of the Divine Rune Midgard Kingdom ]";
  31. mes " ";
  32. mes "1. Follow the ordinance of The Divine Rune Midgard Kingdom, ";
  33. mes "We declare that";
  34. mes "there is no formal master of this castle.";
  35. mes " ";
  36. mes "2. To the one who can ";
  37. mes "overcome all trials";
  38. mes "and destroy the Emperium,";
  39. mes "the king will endow the one with";
  40. mes "ownership of this castle.";
  41. }
  42. else {
  43. if (getcharid(2) == .@GID) {
  44. mes "Brave ones...";
  45. mes "Do you wish to return to your honorable place?";
  46. next;
  47. if (select("Return to the guild castle.:Quit.") == 1) {
  48. if (getcharid(2) == GetCastleData("prtg_cas03",1)) {
  49. warp "prtg_cas03",181,215;
  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. OnRecvCastlePt03:
  69. FlagEmblem GetCastleData("prtg_cas03",1);
  70. end;
  71. }
  72. prt_gld,147,136,4 duplicate(Fadhgridh2) Fadhgridh#p3-3 722
  73. prt_gld,158,140,4 duplicate(Fadhgridh2) Fadhgridh#p3-4 722
  74. prt_gld,158,136,4 duplicate(Fadhgridh2) Fadhgridh#p3-5 722
  75. // Guild Flag (Inside Castle)
  76. //============================================================
  77. prtg_cas03,168,28,4 script Fadhgridh#p3-6::Fadhgridh3 722,{
  78. end;
  79. OnRecvCastlePt03:
  80. FlagEmblem GetCastleData("prtg_cas03",1);
  81. end;
  82. }
  83. prtg_cas03,182,28,4 duplicate(Fadhgridh3) Fadhgridh#p3-7 722
  84. prtg_cas03,43,50,4 duplicate(Fadhgridh3) Fadhgridh#p3-8 722
  85. prtg_cas03,48,50,4 duplicate(Fadhgridh3) Fadhgridh#p3-9 722
  86. prtg_cas03,43,58,4 duplicate(Fadhgridh3) Fadhgridh#p3-10 722
  87. prtg_cas03,48,58,4 duplicate(Fadhgridh3) Fadhgridh#p3-11 722
  88. prtg_cas03,158,210,4 duplicate(Fadhgridh3) Fadhgridh#p3-12 722
  89. prtg_cas03,169,210,4 duplicate(Fadhgridh3) Fadhgridh#p3-13 722
  90. prtg_cas03,162,201,4 duplicate(Fadhgridh3) Fadhgridh#p3-14 722
  91. prtg_cas03,165,201,4 duplicate(Fadhgridh3) Fadhgridh#p3-15 722
  92. // AGIT Manager
  93. //============================================================
  94. prtg_cas03,17,221,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas03 -1
  95. // Steward
  96. //============================================================
  97. prtg_cas03,51,100,4 duplicate(Gld_Mngr_Template) Sttick#prtg_cas03 55
  98. // Guardians
  99. //============================================================
  100. prtg_cas03,51,100,4 duplicate(Gld_Guard_Template) Guardian#prtg_cas03 -1
  101. // Kafra Staff
  102. //============================================================
  103. prtg_cas03,181,215,4 duplicate(Gld_Kafra_Template) Kafra Staff#prtg_cas03 117
  104. // Master's Room Exit
  105. //============================================================
  106. prtg_cas03,193,130,0 script #switch_Pt03 111,{
  107. mes " ";
  108. mes "There's a small lever. Will you pull it? ";
  109. next;
  110. if(select("Pull.:Do not.") == 2) close;
  111. warp "prtg_cas03",51,101;
  112. end;
  113. }
  114. // Guild Treasure Protection
  115. //============================================================
  116. prtg_cas03,189,132,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas03 -1,6,6
  117. // Guild Treasure Spawns
  118. //============================================================
  119. prtg_cas03,189,132,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas03 -1
  120. // Guild Dungeon Switch
  121. //============================================================
  122. prtg_cas03,5,70,0 duplicate(Gld_Dun_Template) #prtg_cas03 111