prtg_cas05.txt 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. //===== rAthena Script =======================================
  2. //= War of Emperium (Prontera) - Gondul
  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 5
  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 Gondul#1::OutsideFlagsPR5 722,{
  21. set .@GID, GetCastleData("prtg_cas05",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_cas05",1)) {
  44. warp "prtg_cas05",52,41;
  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. OnRecvCastlePt05:
  63. FlagEmblem GetCastleData("prtg_cas05",1);
  64. end;
  65. }
  66. prt_gld,199,243,2 duplicate(OutsideFlagsPR5) Gondul#1-2 722
  67. prt_gld,199,236,2 duplicate(OutsideFlagsPR5) Gondul#2 722
  68. prt_gld,197,243,2 duplicate(OutsideFlagsPR5) Gondul#3 722
  69. prt_gld,197,236,2 duplicate(OutsideFlagsPR5) Gondul#4 722
  70. // Guild Flags (Inside Castle)
  71. //============================================================
  72. - script Gondul#5::InsideFlagsPR5 722,{
  73. end;
  74. OnRecvCastlePt05:
  75. FlagEmblem GetCastleData("prtg_cas05",1);
  76. end;
  77. }
  78. prtg_cas05,19,247,4 duplicate(InsideFlagsPR5) Gondul#5-2 722
  79. prtg_cas05,19,243,4 duplicate(InsideFlagsPR5) Gondul#6 722
  80. prtg_cas05,26,247,4 duplicate(InsideFlagsPR5) Gondul#7 722
  81. prtg_cas05,26,243,4 duplicate(InsideFlagsPR5) Gondul#8 722
  82. prtg_cas05,249,289,4 duplicate(InsideFlagsPR5) Gondul#9 722
  83. prtg_cas05,256,289,4 duplicate(InsideFlagsPR5) Gondul#10 722
  84. prtg_cas05,253,271,4 duplicate(InsideFlagsPR5) Gondul#11 722
  85. prtg_cas05,273,257,4 duplicate(InsideFlagsPR5) Gondul#12 722
  86. // Guild Flag (Town)
  87. //============================================================
  88. prontera,165,194,5 duplicate(InsideFlagsPR5) Gondul#13 722
  89. // Kafra Employee
  90. //============================================================
  91. prtg_cas05,52,41,4 duplicate(guildkafra) Kafra Staff#prtg_cas05 117
  92. // Steward
  93. //============================================================
  94. prtg_cas05,36,37,4 duplicate(cm) Raynor#prtg_cas05 55
  95. // Treasure Room Exit
  96. //============================================================
  97. prtg_cas05,281,176,0 script #Lever_PR05 111,{
  98. mes " ";
  99. mes "There's a small lever. Will you pull it?";
  100. next;
  101. if(select("Pull.:Do not.") == 1) {
  102. close2;
  103. warp "prtg_cas05",36,38;
  104. end;
  105. }
  106. close;
  107. }
  108. // Guild Dungeon Switch
  109. //============================================================
  110. prtg_cas05,212,95,0 duplicate(gdlever) #prtg_cas05 111
  111. // Guild Treasure Spawns
  112. //============================================================
  113. prtg_cas05,276,178,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas05 -1
  114. // AGIT Manager
  115. //============================================================
  116. prtg_cas05,266,266,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas05 -1
  117. // Guardians
  118. //============================================================
  119. prtg_cas05,36,37,4 duplicate(Gld_Guard_Template) Guardian#prtg_cas05 -1