prtg_cas02.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. //===== eAthena Script =======================================
  2. //= War of Emperium (Prontera)
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= eAthena SVN
  9. //===== Description: =========================================
  10. //= NPCs that relate to Prontera Guild Castle 1
  11. //===== Additional Comments: =================================
  12. //= 1.0 First Version. No longer uses functions. [L0ne_W0lf]
  13. //= 1.1 Removed dialog from interior flags. [L0ne_W0lf]
  14. //============================================================
  15. // Guild Flag (Town)
  16. //============================================================
  17. prontera,146,194,3 script Swanhild#p2-1::Swanhild 722,{
  18. end;
  19. OnRecvCastlePt02:
  20. FlagEmblem GetCastleData("prtg_cas02",1);
  21. end;
  22. }
  23. // Guild Flag (Outside Castle)
  24. //============================================================
  25. prt_gld,244,126,8 script Swanhild#p2-2::Swanhild2 722,{
  26. set .@GID, GetCastleData("prtg_cas02",1);
  27. if (.@GID == 0) {
  28. mes " [ Edict of the Divine Rune Midgard Kingdom ]";
  29. mes " ";
  30. mes "1. Follow the ordinance of The Divine Rune Midgard Kingdom, ";
  31. mes "We declare that";
  32. mes "there is no formal master of this castle.";
  33. mes " ";
  34. mes "2. To the one who can ";
  35. mes "overcome all trials";
  36. mes "and destroy the Emperium,";
  37. mes "the king will endow the one with";
  38. mes "ownership of this castle.";
  39. }
  40. else {
  41. if (getcharid(2) == .@GID) {
  42. mes "Brave ones...";
  43. mes "Do you wish to return to your honorable place?";
  44. next;
  45. if (select("Return to the guild castle.:Quit.") == 1) {
  46. if (getcharid(2) == GetCastleData("prtg_cas02",1)) {
  47. warp "prtg_cas02",71,36;
  48. //warp "prtg_cas02",169,55;
  49. end;
  50. }
  51. }
  52. close;
  53. }
  54. mes "[ Edict of the Divine Rune Midgard Kingdom ]";
  55. mes " ";
  56. mes "1. Following the ordinance of the";
  57. mes "Divine Rune Midgard Kingdom,";
  58. mes "we approve that this place is in";
  59. mes "the private possession of ^ff0000" + GetGuildName(.@GID) + "^000000 Guild.";
  60. mes " ";
  61. mes "2. The guild Master of ^ff0000"+ GetGuildName(.@GID) + "^000000 Guild is";
  62. mes "^FF0000" + GetGuildMaster(.@GID) + "^000000";
  63. mes "If there is anyone who objects to this,";
  64. mes " prove your strength and honor with a steel blade in your hand.";
  65. }
  66. close;
  67. OnRecvCastlePt02:
  68. FlagEmblem GetCastleData("prtg_cas02",1);
  69. end;
  70. }
  71. prt_gld,244,128,8 duplicate(Swanhild2) Swanhild#p2-3 722
  72. prt_gld,236,126,8 duplicate(Swanhild2) Swanhild#p2-4 722
  73. prt_gld,236,128,8 duplicate(Swanhild2) Swanhild#p2-5 722
  74. // Guild Flag (Inside Castle)
  75. //============================================================
  76. prtg_cas02,40,227,4 script Swanhild#p2-6::Swanhild3 722,{
  77. end;
  78. OnRecvCastlePt02:
  79. FlagEmblem GetCastleData("prtg_cas02",1);
  80. end;
  81. }
  82. prtg_cas02,46,227,4 duplicate(Swanhild3) Swanhild#p2-7 722
  83. prtg_cas02,11,219,4 duplicate(Swanhild3) Swanhild#p2-8 722
  84. prtg_cas02,11,214,4 duplicate(Swanhild3) Swanhild#p2-9 722
  85. prtg_cas02,20,219,4 duplicate(Swanhild3) Swanhild#p2-10 722
  86. prtg_cas02,20,214,4 duplicate(Swanhild3) Swanhild#p2-11 722
  87. prtg_cas02,79,227,8 duplicate(Swanhild3) Swanhild#p2-12 722
  88. prtg_cas02,70,227,8 duplicate(Swanhild3) Swanhild#p2-13 722
  89. prtg_cas02,38,189,8 duplicate(Swanhild3) Swanhild#p2-14 722
  90. prtg_cas02,34,189,8 duplicate(Swanhild3) Swanhild#p2-15 722
  91. prtg_cas02,153,161,4 duplicate(Swanhild3) Swanhild#p2-16 722
  92. prtg_cas02,162,161,4 duplicate(Swanhild3) Swanhild#p2-17 722
  93. // AGIT Manager
  94. //============================================================
  95. prtg_cas02,158,174,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas02 -1
  96. // Steward
  97. //============================================================
  98. prtg_cas02,94,61,4 duplicate(Gld_Mngr_Template) Roy#prtg_cas02 55
  99. // Guardians
  100. //============================================================
  101. prtg_cas02,94,61,4 duplicate(Gld_Guard_Template) Guardian#prtg_cas02 -1
  102. // Kafra Staff
  103. //============================================================
  104. prtg_cas02,71,36,4 duplicate(Gld_Kafra_Template) Kafra Staff#prtg_cas02 117
  105. // Master's Room Exit
  106. //============================================================
  107. prtg_cas02,207,228,0 script #switch_Pt02 111,{
  108. mes " ";
  109. mes "There's a small lever. Will you pull it? ";
  110. next;
  111. if(select("Pull.:Do not.") == 2) close;
  112. warp "prtg_cas02",94,62;
  113. end;
  114. }
  115. // Guild Treasure Protection
  116. //============================================================
  117. prtg_cas02,202,228,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas02 -1,6,6
  118. // Guild Treasure Spawns
  119. //============================================================
  120. prtg_cas02,202,228,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas02 -1
  121. // Guild Dungeon Switch
  122. //============================================================
  123. prtg_cas02,84,72,0 duplicate(Gld_Dun_Template) #prtg_cas02 111