prtg_cas01.txt 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. //===== eAthena Script =======================================
  2. //= War of Emperium (Prontera)
  3. //===== By: ==================================================
  4. //= L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.3
  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 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. //============================================================
  17. // Guild Flag (Town)
  18. //============================================================
  19. prontera,155,190,4 script Kriemhild#p1-1::Kriemhild 722,{
  20. end;
  21. OnRecvCastlePt01:
  22. FlagEmblem GetCastleData("prtg_cas01",1);
  23. end;
  24. }
  25. // Guild Flag (Outside Castle)
  26. //============================================================
  27. prt_gld,131,60,6 script Kriemhild#p1-2::Kriemhild2 722,{
  28. set .@GID, GetCastleData("prtg_cas01",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("prtg_cas01",1)) {
  49. warp "prtg_cas01",96,173;
  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. OnRecvCastlePt01:
  69. FlagEmblem GetCastleData("prtg_cas01",1);
  70. end;
  71. }
  72. prt_gld,138,68,6 duplicate(Kriemhild2) Kriemhild#p1-3 722
  73. prt_gld,138,60,6 duplicate(Kriemhild2) Kriemhild#p1-4 722
  74. prt_gld,135,60,6 duplicate(Kriemhild2) Kriemhild#p1-5 722
  75. // Guild Flag (Inside Castle)
  76. //============================================================
  77. prtg_cas01,58,56,4 script Kriemhild#p1-4::Kriemhild3 722,{
  78. end;
  79. OnRecvCastlePt01:
  80. FlagEmblem GetCastleData("prtg_cas01",1);
  81. end;
  82. }
  83. prtg_cas01,64,56,4 duplicate(Kriemhild3) Kriemhild#p1-7 722
  84. prtg_cas01,76,32,4 duplicate(Kriemhild3) Kriemhild#p1-8 722
  85. prtg_cas01,84,32,4 duplicate(Kriemhild3) Kriemhild#p1-9 722
  86. prtg_cas01,94,39,4 duplicate(Kriemhild3) Kriemhild#p1-10 722
  87. prtg_cas01,94,24,4 duplicate(Kriemhild3) Kriemhild#p1-11 722
  88. prtg_cas01,73,14,4 duplicate(Kriemhild3) Kriemhild#p1-12 722
  89. prtg_cas01,73,6,4 duplicate(Kriemhild3) Kriemhild#p1-13 722
  90. prtg_cas01,55,46,4 duplicate(Kriemhild3) Kriemhild#p1-14 722
  91. prtg_cas01,45,46,4 duplicate(Kriemhild3) Kriemhild#p1-15 722
  92. // AGIT Manager
  93. //============================================================
  94. prtg_cas01,197,197,0 duplicate(Gld_Agit_Manager) Agit#prtg_cas01 -1
  95. // Steward
  96. //============================================================
  97. prtg_cas01,112,181,0 duplicate(Gld_Mngr_Template) Ahvray#prtg_cas01 55
  98. // Guardians
  99. //============================================================
  100. prtg_cas01,112,181,0 duplicate(Gld_Guard_Template) Guardian#prtg_cas01 -1
  101. // Kafra Staff
  102. //============================================================
  103. prtg_cas01,96,173,0 duplicate(Gld_Kafra_Template) Kafra Staff#prtg_cas01 117
  104. // Master's Room Exit
  105. //============================================================
  106. prtg_cas01,15,209,0 script #switch_Pt01 111,{
  107. mes " ";
  108. mes "There's a small lever. Will you pull it? ";
  109. next;
  110. if(select("Pull.:Do not.") == 2) close;
  111. warp "prtg_cas01",112,183;
  112. end;
  113. }
  114. // Guild Treasure Protection
  115. //============================================================
  116. prtg_cas01,11,208,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas01 -1,6,6
  117. // Guild Treasure Spawns
  118. //============================================================
  119. prtg_cas01,11,208,0 duplicate(Gld_Trea_Spawn) Treasure#prtg_cas01 -1
  120. // Guild Dungeon Switch
  121. //============================================================
  122. prtg_cas01,94,200,0 duplicate(Gld_Dun_Template) #prtg_cas01 111