payg_cas04.txt 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. //===== rAthena Script =======================================
  2. //= War of Emperium (Payon) - Sacred Altar
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.4
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= NPCs that relate to Payon 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. //= Fixed position of Guild dungeon switch.
  16. //= 1.3 Partially rewrote Script. [Masao]
  17. //= 1.4 Corrected guild name. [Euphy]
  18. //============================================================
  19. // Guild Flags (Outside Castle)
  20. //============================================================
  21. - script Sacred Altar#1::OutsideFlagsPA4 722,{
  22. set .@GID, GetCastleData("payg_cas04",1);
  23. if (.@GID == 0) {
  24. mes "[ Edict of the Divine Rune-Midgarts Kingdom ]";
  25. mes " ";
  26. mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, ";
  27. mes "We declare that";
  28. mes "there is no formal master of this castle.";
  29. mes " ";
  30. mes "2. To the one who can ";
  31. mes "overcome all trials";
  32. mes "and destroy the Emperium,";
  33. mes "the king will endow the one with";
  34. mes "ownership of this castle.";
  35. close;
  36. }
  37. if (getcharid(2) == .@GID) {
  38. mes "[ Echoing Voice ]";
  39. mes "Brave ones...";
  40. mes "Do you wish to return to your honorable place?";
  41. next;
  42. if(select("Return to the guild castle.:Quit.") == 1) {
  43. close2;
  44. if (getcharid(2) == GetCastleData("payg_cas04",1)) {
  45. warp "payg_cas04",40,235;
  46. end;
  47. }
  48. end;
  49. }
  50. close;
  51. }
  52. mes "[ Edict of the Divine Rune-Midgarts Kingdom ]";
  53. mes " ";
  54. mes "1. Follow the ordinance of The Divine Rune-Midgarts Kingdom, ";
  55. mes "we approve that this place is in";
  56. mes "the private prossession of ^ff0000"+GetGuildName(.@GID)+"^000000 Guild.";
  57. mes " ";
  58. mes "2. The guild Master of ^ff0000"+GetGuildName(.@GID)+"^000000 Guild is";
  59. mes "^ff0000"+GetGuildMaster(.@GID)+"^000000";
  60. mes "If there is anyone who objects to this,";
  61. mes "prove your strength and honor with a steel blade in your hand.";
  62. close;
  63. OnRecvCastlePy04:
  64. FlagEmblem GetCastleData("payg_cas04",1);
  65. end;
  66. }
  67. pay_gld,137,160,0 duplicate(OutsideFlagsPA4) Sacred Altar#1-2 722
  68. pay_gld,143,160,0 duplicate(OutsideFlagsPA4) Sacred Altar#2 722
  69. pay_gld,133,151,2 duplicate(OutsideFlagsPA4) Sacred Altar#3 722
  70. pay_gld,153,166,1 duplicate(OutsideFlagsPA4) Sacred Altar#4 722
  71. // Guild Flags (Inside Castle)
  72. //============================================================
  73. - script Sacred Altar#5::InsideFlagsPA4 722,{
  74. end;
  75. OnRecvCastlePy04:
  76. FlagEmblem GetCastleData("payg_cas04",1);
  77. end;
  78. }
  79. payg_cas04,255,259,0 duplicate(InsideFlagsPA4) Sacred Altar#5-2 722
  80. payg_cas04,248,259,0 duplicate(InsideFlagsPA4) Sacred Altar#6 722
  81. payg_cas04,248,168,6 duplicate(InsideFlagsPA4) Sacred Altar#7 722
  82. payg_cas04,248,160,6 duplicate(InsideFlagsPA4) Sacred Altar#8 722
  83. payg_cas04,232,181,4 duplicate(InsideFlagsPA4) Sacred Altar#9 722
  84. payg_cas04,239,181,4 duplicate(InsideFlagsPA4) Sacred Altar#10 722
  85. // Guild Flag (Town)
  86. //============================================================
  87. payon,118,322,4 duplicate(InsideFlagsPA4) Sacred Altar#11 722
  88. payon,166,165,3 duplicate(InsideFlagsPA4) Sacred Altar#12 722
  89. // Kafra Employee
  90. //============================================================
  91. payg_cas04,40,235,1 duplicate(guildkafra) Kafra Staff#payg_cas04 117
  92. // Steward
  93. //============================================================
  94. payg_cas04,38,284,3 duplicate(cm) DJ#payg_cas04 55
  95. // Treasure Room Exit
  96. //============================================================
  97. payg_cas04,151,47,0 script #lever_PA04 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 "payg_cas04",38,285;
  104. end;
  105. }
  106. close;
  107. }
  108. // Guild Dungeon Switch
  109. //============================================================
  110. payg_cas04,52,48,0 duplicate(gdlever) #payg_cas04 111
  111. // Guild Treasure Spawns
  112. //============================================================
  113. payg_cas04,147,48,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas04 -1
  114. // AGIT Manager
  115. //============================================================
  116. payg_cas04,271,29,0 duplicate(Gld_Agit_Manager) Agit#payg_cas04 -1
  117. // Guardians
  118. //============================================================
  119. payg_cas04,38,284,3 duplicate(Gld_Guard_Template) Guardian#payg_cas04 -1