payg_cas03.txt 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. //===== eAthena Script =======================================
  2. //= War of Emperium (Payon)
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= eAthena SVN
  9. //===== Description: =========================================
  10. //= NPCs that relate to Payon Guild Castle 3
  11. //===== Additional Comments: =================================
  12. //= 1.0 First Version. No longer uses functions. [L0ne_W0lf]
  13. //= 1.1 Corrected treasure room switch coordinates. [L0ne_W0lf]
  14. //= 1.2 Removed dialog from interior flags. [L0ne_W0lf]
  15. //============================================================
  16. // Guild Flag (Town)
  17. //============================================================
  18. payon,166,177,3 script Holy Shadow#f3-1::HolyShadow 722,{
  19. end;
  20. OnRecvCastlePy03:
  21. FlagEmblem GetCastleData("payg_cas03",1);
  22. end;
  23. }
  24. payon,113,322,4 duplicate(HolyShadow) Holy Shadow#f3-2 722
  25. // Guild Flag (Outside Castle)
  26. //============================================================
  27. pay_gld,321,298,2 script Holy Shadow#f3-3::HolyShadow2 722,{
  28. set .@GID, GetCastleData("payg_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("payg_cas03",1)) {
  49. warp "payg_cas03",9,263;
  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. OnRecvCastlePy03:
  69. FlagEmblem GetCastleData("payg_cas03",1);
  70. end;
  71. }
  72. pay_gld,321,289,2 duplicate(HolyShadow2) Holy Shadow#f3-4 722
  73. pay_gld,327,304,1 duplicate(HolyShadow2) Holy Shadow#f3-5 722
  74. pay_gld,333,254,4 duplicate(HolyShadow2) Holy Shadow#f3-6 722
  75. // Guild Flag (Inside Castle)
  76. //============================================================
  77. payg_cas03,236,54,2 script Holy Shadow#f3-7::HolyShadow3 722,{
  78. end;
  79. OnRecvCastlePy03:
  80. FlagEmblem GetCastleData("payg_cas03",1);
  81. end;
  82. }
  83. payg_cas03,236,45,2 duplicate(HolyShadow3) Holy Shadow#f3-8 722
  84. payg_cas03,259,66,4 duplicate(HolyShadow3) Holy Shadow#f3-9 722
  85. payg_cas03,266,66,4 duplicate(HolyShadow3) Holy Shadow#f3-10 722
  86. payg_cas03,34,31,4 duplicate(HolyShadow3) Holy Shadow#f3-11 722
  87. payg_cas03,43,31,4 duplicate(HolyShadow3) Holy Shadow#f3-12 722
  88. // AGIT Manager
  89. //============================================================
  90. payg_cas03,269,265,0 duplicate(Gld_Agit_Manager) Agit#payg_cas03 -1
  91. // Steward
  92. //============================================================
  93. payg_cas03,10,277,0 duplicate(Gld_Mngr_Template) Gheriot#payg_cas03 55
  94. // Guardians
  95. //============================================================
  96. payg_cas03,10,277,0 duplicate(Gld_Guard_Template) Guardian#payg_cas03 -1
  97. // Kafra Staff
  98. //============================================================
  99. payg_cas03,9,263,5 duplicate(Gld_Kafra_Template) Kafra Staff#payg_cas03 117
  100. // Master's Room Exit
  101. //============================================================
  102. payg_cas03,163,167,0 script #switch_Py03 111,{
  103. mes " ";
  104. mes "There's a small lever. Will you pull it? ";
  105. next;
  106. if(select("Pull.:Do not.") == 2) close;
  107. warp "payg_cas03",50,261;
  108. end;
  109. }
  110. // Guild Treasure Protection
  111. //============================================================
  112. payg_cas03,159,168,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas03 -1,6,6
  113. // Guild Treasure Spawns
  114. //============================================================
  115. payg_cas03,159,168,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas03 -1
  116. // Guild Dungeon Switch
  117. //============================================================
  118. payg_cas03,20,44,0 duplicate(Gld_Dun_Template) #payg_cas03 111