prtg_cas04.txt 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. //===== rAthena Script =======================================
  2. //= War of Emperium (Prontera) - Skoegul
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.4
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  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 Corrected treasure room switch coordinates. [L0ne_W0lf]
  15. //= 1.3 Removed dialog from interior flags. [L0ne_W0lf]
  16. //= 1.4 Partially rewrote Script. [Masao]
  17. //============================================================
  18. // Guild Flags (Outside Castle)
  19. //============================================================
  20. - script Skoegul#1::OutsideFlagsPR4 722,{
  21. set .@GID, GetCastleData("prtg_cas04",1);
  22. if (.@GID == 0) {
  23. mes "[ Edict of the Divine Rune-Midgarts Kingdom ]";
  24. mes " ";
  25. mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, ";
  26. mes "We declare that";
  27. mes "there is no formal master of this castle.";
  28. mes " ";
  29. mes "2. To the one who can ";
  30. mes "overcome all trials";
  31. mes "and destroy the Emperium,";
  32. mes "the king will endow the one with";
  33. mes "ownership of this castle.";
  34. close;
  35. }
  36. if (getcharid(2) == .@GID) {
  37. mes "[ Echoing Voice ]";
  38. mes "Brave ones...";
  39. mes "Do you wish to return to your honorable place?";
  40. next;
  41. if(select("Return to the guild castle.:Quit.") == 1) {
  42. close2;
  43. if (getcharid(2) == GetCastleData("prtg_cas04",1)) {
  44. warp "prtg_cas04",258,247;
  45. end;
  46. }
  47. end;
  48. }
  49. close;
  50. }
  51. mes "[ Edict of the Divine Rune-Midgarts Kingdom ]";
  52. mes " ";
  53. mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, ";
  54. mes "we approve that this place is in";
  55. mes "the private prossession of ^ff0000"+GetGuildName(.@GID)+"^000000 Guild.";
  56. mes " ";
  57. mes "2. The guild Master of ^ff0000"+GetGuildName(.@GID)+"^000000 Guild is";
  58. mes "^ff0000"+GetGuildMaster(.@GID)+"^000000";
  59. mes "If there is anyone who objects to this,";
  60. mes "prove your strength and honor with a steel blade in your hand.";
  61. close;
  62. OnRecvCastlePt04:
  63. FlagEmblem GetCastleData("prtg_cas04",1);
  64. end;
  65. }
  66. prt_gld,120,243,6 duplicate(OutsideFlagsPR4) Skoegul#1-2 722
  67. prt_gld,120,236,6 duplicate(OutsideFlagsPR4) Skoegul#2 722
  68. prt_gld,122,243,6 duplicate(OutsideFlagsPR4) Skoegul#3 722
  69. prt_gld,122,236,6 duplicate(OutsideFlagsPR4) Skoegul#4 722
  70. // Guild Flags (Inside Castle)
  71. //============================================================
  72. - script Skoegul#5::InsideFlagsPR4 722,{
  73. end;
  74. OnRecvCastlePt04:
  75. FlagEmblem GetCastleData("prtg_cas04",1);
  76. end;
  77. }
  78. prtg_cas04,82,29,4 duplicate(InsideFlagsPR4) Skoegul#5-2 722
  79. prtg_cas04,75,29,4 duplicate(InsideFlagsPR4) Skoegul#6 722
  80. prtg_cas04,75,27,4 duplicate(InsideFlagsPR4) Skoegul#7 722
  81. prtg_cas04,82,27,4 duplicate(InsideFlagsPR4) Skoegul#8 722
  82. prtg_cas04,59,29,4 duplicate(InsideFlagsPR4) Skoegul#9 722
  83. prtg_cas04,67,29,4 duplicate(InsideFlagsPR4) Skoegul#10 722
  84. prtg_cas04,258,25,4 duplicate(InsideFlagsPR4) Skoegul#11 722
  85. prtg_cas04,258,20,4 duplicate(InsideFlagsPR4) Skoegul#12 722
  86. prtg_cas04,263,20,4 duplicate(InsideFlagsPR4) Skoegul#13 722
  87. prtg_cas04,263,27,4 duplicate(InsideFlagsPR4) Skoegul#14 722
  88. // Guild Flag (Town)
  89. //============================================================
  90. prontera,167,203,6 duplicate(InsideFlagsPR4) Skoegul#15 722
  91. // Kafra Employee
  92. //============================================================
  93. prtg_cas04,258,247,4 duplicate(guildkafra) Kafra Staff#prtg_cas04 117
  94. // Steward
  95. //============================================================
  96. prtg_cas04,259,265,4 duplicate(cm) Van Dreth#prtg_cas04 55
  97. // Treasure Room Exit
  98. //============================================================
  99. prtg_cas04,275,160,0 script #Lever_PR04 111,{
  100. mes " ";
  101. mes "There's a small lever. Will you pull it?";
  102. next;
  103. if(select("Pull.:Do not.") == 1) {
  104. close2;
  105. warp "prtg_cas04",259,265;
  106. end;
  107. }
  108. close;
  109. }
  110. // Guild Dungeon Switch
  111. //============================================================
  112. prtg_cas04,56,283,0 duplicate(gdlever) #prtg_cas04 111
  113. // Guild Treasure Spawns
  114. //============================================================
  115. prtg_cas04,271,162,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas04 -1
  116. // AGIT Manager
  117. //============================================================
  118. prtg_cas04,292,14,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas04 -1
  119. // Guardians
  120. //============================================================
  121. prtg_cas04,259,265,4 duplicate(Gld_Guard_Template) Guardian#prtg_cas04 -1