payg_cas05.txt 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. //===== rAthena Script =======================================
  2. //= War of Emperium (Payon) - Bamboo Grove Hill
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.3
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= NPCs that relate to Payon 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 Removed dialog from interior flags. [L0ne_W0lf]
  15. //= Fixed position of Guild dungeon switch.
  16. //= 1.3 Partially rewrote Script. [Masao]
  17. //============================================================
  18. // Guild Flags (Outside Castle)
  19. //============================================================
  20. - script Bamboo Grove Hill#1::OutsideFlagsPA5 722,{
  21. set .@GID, GetCastleData("payg_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("payg_cas05",1)) {
  44. warp "payg_cas05",243,27;
  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. OnRecvCastlePy05:
  63. FlagEmblem GetCastleData("payg_cas05",1);
  64. end;
  65. }
  66. pay_gld,208,268,4 duplicate(OutsideFlagsPA5) Bamboo Grove Hill#1-2 722
  67. pay_gld,199,268,4 duplicate(OutsideFlagsPA5) Bamboo Grove Hill#2 722
  68. pay_gld,190,277,3 duplicate(OutsideFlagsPA5) Bamboo Grove Hill#3 722
  69. pay_gld,187,294,2 duplicate(OutsideFlagsPA5) Bamboo Grove Hill#4 722
  70. // Guild Flags (Inside Castle)
  71. //============================================================
  72. - script Bamboo Grove Hill#5::InsideFlagsPA5 722,{
  73. end;
  74. OnRecvCastlePy05:
  75. FlagEmblem GetCastleData("payg_cas05",1);
  76. end;
  77. }
  78. payg_cas05,32,249,4 duplicate(InsideFlagsPA5) Bamboo Grove Hill#5-2 722
  79. payg_cas05,24,249,4 duplicate(InsideFlagsPA5) Bamboo Grove Hill#6 722
  80. payg_cas05,62,271,0 duplicate(InsideFlagsPA5) Bamboo Grove Hill#7 722
  81. payg_cas05,57,271,0 duplicate(InsideFlagsPA5) Bamboo Grove Hill#8 722
  82. payg_cas05,55,252,2 duplicate(InsideFlagsPA5) Bamboo Grove Hill#9 722
  83. payg_cas05,55,260,2 duplicate(InsideFlagsPA5) Bamboo Grove Hill#10 722
  84. // Guild Flag (Town)
  85. //============================================================
  86. payon,123,322,4 duplicate(InsideFlagsPA5) Bamboo Grove Hill#11 722
  87. payon,166,161,3 duplicate(InsideFlagsPA5) Bamboo Grove Hill#12 722
  88. // Kafra Employee
  89. //============================================================
  90. payg_cas05,276,227,1 duplicate(guildkafra) Kafra Staff#payg_cas05 117
  91. // Steward
  92. //============================================================
  93. payg_cas05,277,249,3 duplicate(cm) Nahzarf#payg_cas05 55
  94. // Treasure Room Exit
  95. //============================================================
  96. payg_cas05,161,136,0 script #lever_PA05 111,{
  97. mes " ";
  98. mes "There's a small lever. Will you pull it?";
  99. next;
  100. if(select("Pull.:Do not.") == 1) {
  101. close2;
  102. warp "payg_cas05",277,250;
  103. end;
  104. }
  105. close;
  106. }
  107. // Guild Dungeon Switch
  108. //============================================================
  109. payg_cas05,249,15,0 duplicate(gdlever) #payg_cas05 111
  110. // Guild Treasure Spawns
  111. //============================================================
  112. payg_cas05,157,132,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas05 -1
  113. // AGIT Manager
  114. //============================================================
  115. payg_cas05,30,30,0 duplicate(Gld_Agit_Manager) Agit#payg_cas05 -1
  116. // Guardians
  117. //============================================================
  118. payg_cas05,277,249,3 duplicate(Gld_Guard_Template) Guardian#payg_cas05 -1