Guest User

EIM_1.1_Treasure_Island_Script

a guest
Jun 30th, 2017
701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.67 KB | None | 0 0
  1. main
  2. {
  3. questname "Treasure Island"
  4. version 1.0
  5. }
  6. state begin
  7. {
  8. if StatGreater("level",49) goto Q1Begin
  9. else goto LowLevel
  10. }
  11. state LowLevel
  12. {
  13. action ShowHint("You need to be level 50 to start this quest.");
  14. action Reset();
  15. }
  16. state Q1Begin
  17. {
  18. desc "Talk to Old Ben"
  19. action AddNpcText(93, "Ahoy thar! Ye look like th' type o' scallywag I've been searchin' fer...");
  20. action AddNpcText(93, "I've a tale t' tell ye, if ye're interested?");
  21. action AddNpcText(93, "'tis a tale o' pirates, o' plunder, o' misfortune 'n a doomed fate fer th' crew o' that bastard voyage...");
  22. action AddNpcText(93, "I've been searchin' long 'n wide, fer one capable o' returnin' t' those foul shores, t' seek a long lost loot, 'n t' return t' me, th' glory that was once lost...");
  23. action AddNpcText(93, "Ye be such a scallywag I reckon, ye will be rewarded well fer yer efforts heartie...");
  24. action AddNpcText(93, "Will ye do this fer an ole sea cap'n? Me last wishes afore I depart this forsaken world, be t' return an item that I pilfered long ago, it must be returned, me fate be sealed if this does nah happen...");
  25. action AddNpcText(93, "Will ye do this fer me?");
  26. action AddNpcInput(93, 1, "Accept.");
  27. action AddNpcInput(93, 2, "Decline.");
  28. rule InputNpc( 1 ) goto Q1Begin1
  29. rule InputNpc( 2 ) goto Exit1
  30. }
  31. state Exit1
  32. {
  33. action Reset();
  34. }
  35. state Q1Begin1
  36. {
  37. desc "Talk to Old Ben"
  38. action AddNpcText(93, "Thar be a hidden stash o' some truly unique metal waitin' fer ye me bucko, but I ask only fer a single ring t' be returned t' me, fer this ye be welcome t' claim anythin' else that ye find thar!");
  39. action AddNpcText(93, "Here, loot me ole Sea Chart, ye best be able t' find a willin' Sea Captain t' take ye t' Treasure Island, when ye arrive, look fer th' signs that 'ave been left in bones, bones will lead ye, bones will guide ye, bones will become ye, if ye do nah watch yer step 'n tread carefully...");
  40. action AddNpcText(93, "Good luck t' ye scallywag, 'n swift travels! Don't forget t' brin' me back that ring when ye find it!");
  41. action AddNpcText(93, "By th' way me heartie, now would be a good time t' tell ye about th' #loc command, type #loc 'n hit enter 'n 'twill tell ye ye location coordinates, this might help!.");
  42. action AddNpcText(93, "Good luck to ye!");
  43. action AddNpcInput(93, 1, "Thank ye kindly.");
  44. rule InputNpc( 1 ) goto Q1GiveSC
  45. }
  46. state Q1GiveSC
  47. {
  48. action GiveItem(253,1);
  49. action ShowHint("You have recieved a Sea Chart!");
  50. action SetState("Q1Task1");
  51. }
  52. state Q1Task1
  53. {
  54. desc "Travel to Treasure Island"
  55. rule EnterMap(29) goto Q1Task2
  56. }
  57. state Q1Task2
  58. {
  59. desc "Find the bones clue"
  60. action ShowHint("Look for a clue in bones!");
  61. action ShowHint("Start with the bones bathed in blood!");
  62. rule EnterCoord(29,82,23) goto Q1Clue1
  63. }
  64. state Q1Clue1
  65. {
  66. desc "Bones 82x39"
  67. action ShowHint("Look for a clue in bones!");
  68. action ShowHint("Take 16 paces South-West!");
  69. rule EnterCoord(29,82,39) goto Q1Clue2
  70. }
  71. state Q1Clue2
  72. {
  73. desc "Bones 70x39"
  74. action ShowHint("Look for a clue in bones!");
  75. action ShowHint("Take 12 paces North-West!");
  76. rule EnterCoord(29,70,39) goto Q1Clue3
  77. }
  78. state Q1Clue3
  79. {
  80. desc "Bones 70x74"
  81. action ShowHint("Look for a clue in bones!");
  82. action ShowHint("Take 35 paces South-West!");
  83. rule EnterCoord(29,70,74) goto Q1Clue4
  84. }
  85. state Q1Clue4
  86. {
  87. desc "Bones 51x74"
  88. action ShowHint("Look for a clue in bones!");
  89. action ShowHint("Take 19 paces North-West!");
  90. rule EnterCoord(29,51,74) goto Q1Clue5
  91. }
  92. state Q1Clue5
  93. {
  94. desc "Bones 51x61"
  95. action ShowHint("Look for a clue in bones!");
  96. action ShowHint("Take 13 paces North-East!");
  97. rule EnterCoord(29,51,61) goto Q1Clue6
  98. }
  99. state Q1Clue6
  100. {
  101. desc "Bones 35x61"
  102. action ShowHint("Look for a clue in bones!");
  103. action ShowHint("Take 16 paces North-West!");
  104. rule EnterCoord(29,35,61) goto Q1Clue7
  105. }
  106. state Q1Clue7
  107. {
  108. desc "Bones 35x49"
  109. action ShowHint("Look for a clue in bones!");
  110. action ShowHint("Take 12 paces North-East!");
  111. rule EnterCoord(29,35,49) goto Q1Clue8
  112. }
  113. state Q1Clue8
  114. {
  115. desc "Bones 45x49"
  116. action ShowHint("Look for a clue in bones!");
  117. action ShowHint("Take 10 paces South-East!");
  118. rule EnterCoord(29,45,49) goto Q1Clue9
  119. }
  120. state Q1Clue9
  121. {
  122. desc "Bones 45x38"
  123. action ShowHint("Look for a clue in bones!");
  124. action ShowHint("Take 11 paces North-East!");
  125. rule EnterCoord(29,45,38) goto Q1ClueTen
  126. }
  127. state Q1ClueTen
  128. {
  129. desc "Bones 58x38"
  130. action ShowHint("Look for a clue in bones!");
  131. action ShowHint("Take 13 paces South-East!");
  132. rule EnterCoord(29,58,38) goto Q1Clue11
  133. }
  134. state Q1Clue11
  135. {
  136. desc "Bones 58x31"
  137. action ShowHint("Look for a clue in bones!");
  138. action ShowHint("Take 7 paces North-East!");
  139. rule EnterCoord(29,58,31) goto Q1Clue12
  140. }
  141. state Q1Clue12
  142. {
  143. desc "Bones 53x31"
  144. action ShowHint("Look for a clue in bones!");
  145. action ShowHint("Take 5 paces North-West!");
  146. rule EnterCoord(29,53,31) goto Q1Clue13
  147. }
  148. state Q1Clue13
  149. {
  150. desc "Bones 53x45"
  151. action ShowHint("Look for a clue in bones!");
  152. action ShowHint("Take 14 paces South-West!");
  153. rule EnterCoord(29,53,45) goto Q1Reward
  154. }
  155. state Q1Reward
  156. {
  157. action ShowHint("You have discovered a stash of items!");
  158. action GiveEXP(60000);
  159. action GiveItem(1,25000);
  160. action GiveItem(257,5);
  161. action GiveItem(255,1);
  162. action SetState("Q1Reward1");
  163. }
  164. state Q1Reward1
  165. {
  166. action ShowHint("You should return the ring to Old Ben!");
  167. action SetState("Q1Return1");
  168. }
  169. state Q1Return1
  170. {
  171. desc "Talk to Old Ben"
  172. action AddNpcText(93, "Ahoy matey! Did ye 'ave any luck findin' me ole ring in yer travels?");
  173. action AddNpcInput(93, 1, "I did.");
  174. action AddNpcInput(93, 2, "I did not.");
  175. rule InputNpc( 1 ) goto Q1GiveRingCheck
  176. rule InputNpc( 2 ) goto Q1Reward1
  177. }
  178. state Q1GiveRingCheck
  179. {
  180. if GotItems(255,1) goto Q1GiveRing
  181. else goto Q1Reward1
  182. }
  183. state Q1GiveRing
  184. {
  185. action ShowHint("Old Ben grabs his ring from you with haste!");
  186. action RemoveItem(255,1);
  187. action GiveEXP(30000);
  188. action SetState("Q1Return2");
  189. }
  190. state Q1Return2
  191. {
  192. desc "Talk to Old Ben"
  193. action AddNpcText(93, "I be forever indebted t' ye heartie! That which ye 'ave done fer me, shall be hard t' repay, th' burdens are gone, 'n I be most thankful fer it...");
  194. action AddNpcText(93, "I trust ye will find th' Exaltium t' yer likin'? Coat yer equipment wit' it at the shrine deep within Dark Island, 'n ye will 'ave somethin' truly fit fer a cap'n! Well now, since ye helped me when ye didn' needs t', I should help ye as well...");
  195. action AddNpcText(93, "Thar be more where that came from... plenty more in fact! I reckon a whole set o' that thar Exalted equipment would look splendid on ye!");
  196. action AddNpcInput(93, 1, "More ye say?");
  197. rule InputNpc(1) goto Q2Task1
  198. }
  199. state Q2Task1
  200. {
  201. action AddNpcText(93, "Aye, more indeed, though it may take some time t' uncover th' locations o' each piece o' it, they 'ave been long since lost ye see...");
  202. action AddNpcText(93, "I know o' another stash that ye may wants t' go 'n locate right away! Aft that, I would wager yer best bet, would be t' speak wit' th' scallywags around th' towns fer information about locations...");
  203. action AddNpcText(93, "Th' stash can be found on th' Dark Island, at th' coordinates - X:18 'n Y:43 - th' spot best be marked wit' bones...");
  204. action AddNpcInput(93, 1, "Thank ye kindly!");
  205. rule InputNpc(1) goto Q2Recover1
  206. }
  207. state Q2Recover1
  208. {
  209. desc "Dark Island - X:18 Y:43"
  210. action ShowHint("Head to the Dark Island and locate the stash at X:18 Y:43.");
  211. rule EnterCoord(91,18,43) goto Q2Reward1
  212. }
  213. state Q2Reward1
  214. {
  215. action ShowHint("You have discovered a secret stash!");
  216. action GiveEXP(60000);
  217. action GiveItem(1,25000);
  218. action GiveItem(257,5);
  219. action SetState("Q2End");
  220. }
  221. state Q2End
  222. {
  223. action End();
  224. }
Advertisement
Add Comment
Please, Sign In to add comment