Guest User

EIM_1.1_Daily_Assistance_Randomised_Script

a guest
Jun 30th, 2017
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.00 KB | None | 0 0
  1. Main
  2. {
  3. questname "Assistance (Daily)"
  4. version 1
  5. }
  6. state Begin
  7. {
  8. action Roll(5)
  9. rule DoneDaily( 1 ) goto EndWithoutReset
  10. rule Rolled(1) goto Quest1
  11. rule Rolled(2) goto Quest2
  12. rule Rolled(3) goto Quest3
  13. rule Rolled(4) goto Quest4
  14. rule Rolled(5) goto Quest5
  15. }
  16. state Quest1
  17. {
  18. desc "Talk with Everett Bradley"
  19. action AddNpcText(94, "Ahoy thar! Do ye 'ave a moment?");
  20. action AddNpcInput(94,1,"Aye, I do?");
  21. action AddNpcInput(94,2,"Goodbye.");
  22. rule InputNpc(1) goto Quest1Roll
  23. rule InputNpc(2) goto Reset
  24. }
  25. state Quest1Roll
  26. {
  27. action Roll(3)
  28. rule Rolled(1) goto Quest1Roll1
  29. rule Rolled(2) goto Quest1Roll2
  30. rule Rolled(3) goto Quest1Roll3
  31. }
  32. state Quest1Roll1
  33. {
  34. desc "Talk with Everett Bradley"
  35. action AddNpcText(94, "Will ye help me collect 100 Wood fer a project? I shall pay ye 4000 coins if ye're interested?");
  36. action AddNpcInput(94,1,"Aye, I will?");
  37. action AddNpcInput(94,2,"Not today.");
  38. rule InputNpc(1) goto Quest1Action1
  39. rule InputNpc(2) goto NoReward
  40. }
  41. state Quest1Action1
  42. {
  43. desc "Collect 100 Wood"
  44. action ShowHint("Collect 100 Wood!");
  45. rule GotItems(195,100) goto Quest1Return1
  46. }
  47. state Quest1Return1
  48. {
  49. desc "Return to Everett Bradley"
  50. action ShowHint("Return to Everett Bradley");
  51. action AddNpcText(94, "'ave ye got that thar Wood?");
  52. action AddNpcInput(94,1,"Aye, here it be?");
  53. action AddNpcInput(94,2,"No I don't.");
  54. rule InputNpc(1) goto Quest1Check1
  55. rule InputNpc(2) goto Quest1Action1
  56. }
  57. state Quest1Check1
  58. {
  59. if GotItems(195,100) goto Quest1Reward1
  60. else goto Quest1Action1
  61. }
  62. state Quest1Reward1
  63. {
  64. action RemoveItem(195,100);
  65. action GiveItem(1,4000);
  66. action ShowHint("You have been paid!");
  67. action SetState("GetReward");
  68. }
  69. state Quest1Roll2
  70. {
  71. desc "Talk with Everett Bradley"
  72. action AddNpcText(94, "Will ye help me collect 100 Stone fer a project? I shall pay ye 4500 coins if ye're interested?");
  73. action AddNpcInput(94,1,"Aye, I will?");
  74. action AddNpcInput(94,2,"Not today.");
  75. rule InputNpc(1) goto Quest1Action2
  76. rule InputNpc(2) goto NoReward
  77. }
  78. state Quest1Action2
  79. {
  80. desc "Collect 100 Stone"
  81. action ShowHint("Collect 100 Stone!");
  82. rule GotItems(193,100) goto Quest1Return2
  83. }
  84. state Quest1Return2
  85. {
  86. desc "Return to Everett Bradley"
  87. action ShowHint("Return to Everett Bradley");
  88. action AddNpcText(94, "'ave ye got that thar Stone?");
  89. action AddNpcInput(94,1,"Aye, here it be?");
  90. action AddNpcInput(94,2,"No I don't.");
  91. rule InputNpc(1) goto Quest1Check2
  92. rule InputNpc(2) goto Quest1Action2
  93. }
  94. state Quest1Check2
  95. {
  96. if GotItems(193,100) goto Quest1Reward2
  97. else goto Quest1Action2
  98. }
  99. state Quest1Reward2
  100. {
  101. action RemoveItem(193,100);
  102. action GiveItem(1,4500);
  103. action ShowHint("You have been paid!");
  104. action SetState("GetReward");
  105. }
  106. state Quest1Roll3
  107. {
  108. desc "Talk with Everett Bradley"
  109. action AddNpcText(94, "Will ye help me collect 100 Clay fer a project? I shall pay ye 5000 coins if ye're interested?");
  110. action AddNpcInput(94,1,"Aye, I will?");
  111. action AddNpcInput(94,2,"Not today.");
  112. rule InputNpc(1) goto Quest1Action3
  113. rule InputNpc(2) goto NoReward
  114. }
  115. state Quest1Action3
  116. {
  117. desc "Collect 100 Clay"
  118. action ShowHint("Collect 100 Clay!");
  119. rule GotItems(194,100) goto Quest1Return3
  120. }
  121. state Quest1Return3
  122. {
  123. desc "Return to Everett Bradley"
  124. action ShowHint("Return to Everett Bradley");
  125. action AddNpcText(94, "'ave ye got that thar Clay?");
  126. action AddNpcInput(94,1,"Aye, here it be?");
  127. action AddNpcInput(94,2,"No I don't.");
  128. rule InputNpc(1) goto Quest1Check3
  129. rule InputNpc(2) goto Quest1Action3
  130. }
  131. state Quest1Check3
  132. {
  133. if GotItems(194,100) goto Quest1Reward3
  134. else goto Quest1Action3
  135. }
  136. state Quest1Reward3
  137. {
  138. action RemoveItem(194,100);
  139. action GiveItem(1,5000);
  140. action ShowHint("You have been paid!");
  141. action SetState("GetReward");
  142. }
  143. state Quest2
  144. {
  145. desc "Talk with Everett Bradley"
  146. action AddNpcText(94, "Ahoy thar! Do ye 'ave a moment?");
  147. action AddNpcInput(94,1,"Aye, I do?");
  148. action AddNpcInput(94,2,"Goodbye.");
  149. rule InputNpc(1) goto Quest2Roll
  150. rule InputNpc(2) goto Reset
  151. }
  152. state Quest2Roll
  153. {
  154. action Roll(4)
  155. rule Rolled(1) goto Quest2Roll1
  156. rule Rolled(2) goto Quest2Roll2
  157. rule Rolled(3) goto Quest2Roll3
  158. rule Rolled(4) goto Quest2Roll4
  159.  
  160. }
  161. state Quest2Roll1
  162. {
  163. desc "Talk with Everett Bradley"
  164. action AddNpcText(94, "Will ye help me collect 40 Animal Meat fer a project? I shall pay ye 8000 coins if ye're interested?");
  165. action AddNpcInput(94,1,"Aye, I will?");
  166. action AddNpcInput(94,2,"Not today.");
  167. rule InputNpc(1) goto Quest2Action1
  168. rule InputNpc(2) goto NoReward
  169. }
  170. state Quest2Action1
  171. {
  172. desc "Collect 40 Animal Meat"
  173. action ShowHint("Collect 40 Animal Meat!");
  174. rule GotItems(19,40) goto Quest2Return1
  175. }
  176. state Quest2Return1
  177. {
  178. desc "Return to Everett Bradley"
  179. action ShowHint("Return to Everett Bradley");
  180. action AddNpcText(94, "'ave ye got that thar Animal Meat?");
  181. action AddNpcInput(94,1,"Aye, here it be?");
  182. action AddNpcInput(94,2,"No I don't.");
  183. rule InputNpc(1) goto Quest2Check1
  184. rule InputNpc(2) goto Quest2Action1
  185. }
  186. state Quest2Check1
  187. {
  188. if GotItems(19,40) goto Quest2Reward1
  189. else goto Quest2Action1
  190. }
  191. state Quest2Reward1
  192. {
  193. action RemoveItem(19,40);
  194. action GiveItem(1,8000);
  195. action ShowHint("You have been paid!");
  196. action SetState("GetReward");
  197. }
  198. state Quest2Roll2
  199. {
  200. desc "Talk with Everett Bradley"
  201. action AddNpcText(94, "Will ye help me collect 40 Animal Eyes fer a project? I shall pay ye 8500 coins if ye're interested?");
  202. action AddNpcInput(94,1,"Aye, I will?");
  203. action AddNpcInput(94,2,"Not today.");
  204. rule InputNpc(1) goto Quest2Action2
  205. rule InputNpc(2) goto NoReward
  206. }
  207. state Quest2Action2
  208. {
  209. desc "Collect 40 Animal Eyes"
  210. action ShowHint("Collect 40 Animal Eyes!");
  211. rule GotItems(20,40) goto Quest2Return2
  212. }
  213. state Quest2Return2
  214. {
  215. desc "Return to Everett Bradley"
  216. action ShowHint("Return to Everett Bradley");
  217. action AddNpcText(94, "'ave ye got that thar Animal Eyes?");
  218. action AddNpcInput(94,1,"Aye, here it be?");
  219. action AddNpcInput(94,2,"No I don't.");
  220. rule InputNpc(1) goto Quest2Check2
  221. rule InputNpc(2) goto Quest2Action2
  222. }
  223. state Quest2Check2
  224. {
  225. if GotItems(20,40) goto Quest2Reward2
  226. else goto Quest2Action2
  227. }
  228. state Quest2Reward2
  229. {
  230. action RemoveItem(20,40);
  231. action GiveItem(1,8500);
  232. action ShowHint("You have been paid!");
  233. action SetState("GetReward");
  234. }
  235. state Quest2Roll3
  236. {
  237. desc "Talk with Everett Bradley"
  238. action AddNpcText(94, "Will ye help me collect 40 Animal Bones fer a project? I shall pay ye 9000 coins if ye're interested?");
  239. action AddNpcInput(94,1,"Aye, I will?");
  240. action AddNpcInput(94,2,"Not today.");
  241. rule InputNpc(1) goto Quest2Action3
  242. rule InputNpc(2) goto NoReward
  243. }
  244. state Quest2Action3
  245. {
  246. desc "Collect 40 Animal Bones"
  247. action ShowHint("Collect 40 Animal Bones!");
  248. rule GotItems(21,40) goto Quest2Return3
  249. }
  250. state Quest2Return3
  251. {
  252. desc "Return to Everett Bradley"
  253. action ShowHint("Return to Everett Bradley");
  254. action AddNpcText(94, "'ave ye got that thar Animal Bones?");
  255. action AddNpcInput(94,1,"Aye, here it be?");
  256. action AddNpcInput(94,2,"No I don't.");
  257. rule InputNpc(1) goto Quest2Check3
  258. rule InputNpc(2) goto Quest2Action3
  259. }
  260. state Quest2Check3
  261. {
  262. if GotItems(21,40) goto Quest2Reward3
  263. else goto Quest2Action3
  264. }
  265. state Quest2Reward3
  266. {
  267. action RemoveItem(21,40);
  268. action GiveItem(1,9000);
  269. action ShowHint("You have been paid!");
  270. action SetState("GetReward");
  271. }
  272. state Quest2Roll4
  273. {
  274. desc "Talk with Everett Bradley"
  275. action AddNpcText(94, "Will ye help me collect 40 Animal Claws fer a project? I shall pay ye 9500 coins if ye're interested?");
  276. action AddNpcInput(94,1,"Aye, I will?");
  277. action AddNpcInput(94,2,"Not today.");
  278. rule InputNpc(1) goto Quest2Action4
  279. rule InputNpc(2) goto NoReward
  280. }
  281. state Quest2Action4
  282. {
  283. desc "Collect 40 Animal Claws"
  284. action ShowHint("Collect 40 Animal Claws!");
  285. rule GotItems(22,40) goto Quest2Return4
  286. }
  287. state Quest2Return4
  288. {
  289. desc "Return to Everett Bradley"
  290. action ShowHint("Return to Everett Bradley");
  291. action AddNpcText(94, "'ave ye got that thar Animal Claws?");
  292. action AddNpcInput(94,1,"Aye, here it be?");
  293. action AddNpcInput(94,2,"No I don't.");
  294. rule InputNpc(1) goto Quest2Check4
  295. rule InputNpc(2) goto Quest2Action4
  296. }
  297. state Quest2Check4
  298. {
  299. if GotItems(22,40) goto Quest2Reward4
  300. else goto Quest2Action4
  301. }
  302. state Quest2Reward4
  303. {
  304. action RemoveItem(22,40);
  305. action GiveItem(1,9500);
  306. action ShowHint("You have been paid!");
  307. action SetState("GetReward");
  308. }
  309. state Quest3
  310. {
  311. desc "Talk with Everett Bradley"
  312. action AddNpcText(94, "Ahoy thar! Do ye 'ave a moment?");
  313. action AddNpcInput(94,1,"Aye, I do?");
  314. action AddNpcInput(94,2,"Goodbye.");
  315. rule InputNpc(1) goto Quest3Roll
  316. rule InputNpc(2) goto Reset
  317. }
  318. state Quest3Roll
  319. {
  320. action Roll(4)
  321. rule Rolled(1) goto Quest3Roll1
  322. rule Rolled(2) goto Quest3Roll2
  323. rule Rolled(3) goto Quest3Roll3
  324. rule Rolled(4) goto Quest3Roll4
  325.  
  326. }
  327. state Quest3Roll1
  328. {
  329. desc "Talk with Everett Bradley"
  330. action AddNpcText(94, "Will ye help me collect 2500 coins fer a project? I shall reward ye with 15000 EXP if ye're interested?");
  331. action AddNpcInput(94,1,"Aye, I will?");
  332. action AddNpcInput(94,2,"Not today.");
  333. rule InputNpc(1) goto Quest3Action1
  334. rule InputNpc(2) goto NoReward
  335. }
  336. state Quest3Action1
  337. {
  338. desc "Collect 2500 coins"
  339. action ShowHint("Collect 2500 coins!");
  340. rule GotItems(1,2500) goto Quest3Return1
  341. }
  342. state Quest3Return1
  343. {
  344. desc "Return to Everett Bradley"
  345. action ShowHint("Return to Everett Bradley");
  346. action AddNpcText(94, "'ave ye got that thar 2500 coins?");
  347. action AddNpcInput(94,1,"Aye, here it be?");
  348. action AddNpcInput(94,2,"No I don't.");
  349. rule InputNpc(1) goto Quest3Check1
  350. rule InputNpc(2) goto Quest3Action1
  351. }
  352. state Quest3Check1
  353. {
  354. if GotItems(1,2500) goto Quest3Reward1
  355. else goto Quest3Action1
  356. }
  357. state Quest3Reward1
  358. {
  359. action RemoveItem(1,2500);
  360. action GiveExp(15000);
  361. action ShowHint("You have been paid!");
  362. action SetState("GetReward");
  363. }
  364. state Quest3Roll2
  365. {
  366. desc "Talk with Everett Bradley"
  367. action AddNpcText(94, "Will ye help me collect 5000 coins fer a project? I shall reward ye with 20000 EXP if ye're interested?");
  368. action AddNpcInput(94,1,"Aye, I will?");
  369. action AddNpcInput(94,2,"Not today.");
  370. rule InputNpc(1) goto Quest3Action2
  371. rule InputNpc(2) goto NoReward
  372. }
  373. state Quest3Action2
  374. {
  375. desc "Collect 5000 coins"
  376. action ShowHint("Collect 5000 coins!");
  377. rule GotItems(1,5000) goto Quest3Return2
  378. }
  379. state Quest3Return2
  380. {
  381. desc "Return to Everett Bradley"
  382. action ShowHint("Return to Everett Bradley");
  383. action AddNpcText(94, "'ave ye got that thar 5000 coins?");
  384. action AddNpcInput(94,1,"Aye, here it be?");
  385. action AddNpcInput(94,2,"No I don't.");
  386. rule InputNpc(1) goto Quest3Check2
  387. rule InputNpc(2) goto Quest3Action2
  388. }
  389. state Quest3Check2
  390. {
  391. if GotItems(1,5000) goto Quest3Reward2
  392. else goto Quest3Action2
  393. }
  394. state Quest3Reward2
  395. {
  396. action RemoveItem(1,5000);
  397. action GiveExp(20000);
  398. action ShowHint("You have been paid!");
  399. action SetState("GetReward");
  400. }
  401. state Quest3Roll3
  402. {
  403. desc "Talk with Everett Bradley"
  404. action AddNpcText(94, "Will ye help me collect 7500 coins fer a project? I shall reward ye with 25000 EXP if ye're interested?");
  405. action AddNpcInput(94,1,"Aye, I will?");
  406. action AddNpcInput(94,2,"Not today.");
  407. rule InputNpc(1) goto Quest3Action3
  408. rule InputNpc(2) goto NoReward
  409. }
  410. state Quest3Action3
  411. {
  412. desc "Collect 7500 coins"
  413. action ShowHint("Collect 7500 coins!");
  414. rule GotItems(1,7500) goto Quest3Return3
  415. }
  416. state Quest3Return3
  417. {
  418. desc "Return to Everett Bradley"
  419. action ShowHint("Return to Everett Bradley");
  420. action AddNpcText(94, "'ave ye got that thar 7500 coins?");
  421. action AddNpcInput(94,1,"Aye, here it be?");
  422. action AddNpcInput(94,2,"No I don't.");
  423. rule InputNpc(1) goto Quest3Check3
  424. rule InputNpc(2) goto Quest3Action3
  425. }
  426. state Quest3Check3
  427. {
  428. if GotItems(1,7500) goto Quest3Reward3
  429. else goto Quest3Action3
  430. }
  431. state Quest3Reward3
  432. {
  433. action RemoveItem(1,7500);
  434. action GiveExp(25000);
  435. action ShowHint("You have been paid!");
  436. action SetState("GetReward");
  437. }
  438. state Quest3Roll4
  439. {
  440. desc "Talk with Everett Bradley"
  441. action AddNpcText(94, "Will ye help me collect 10000 coins fer a project? I shall reward ye with 30000 EXP if ye're interested?");
  442. action AddNpcInput(94,1,"Aye, I will?");
  443. action AddNpcInput(94,2,"Not today.");
  444. rule InputNpc(1) goto Quest3Action4
  445. rule InputNpc(2) goto NoReward
  446. }
  447. state Quest3Action4
  448. {
  449. desc "Collect 10000 coins"
  450. action ShowHint("Collect 10000 coins!");
  451. rule GotItems(1,10000) goto Quest3Return4
  452. }
  453. state Quest3Return4
  454. {
  455. desc "Return to Everett Bradley"
  456. action ShowHint("Return to Everett Bradley");
  457. action AddNpcText(94, "'ave ye got that thar 10000 coins?");
  458. action AddNpcInput(94,1,"Aye, here it be?");
  459. action AddNpcInput(94,2,"No I don't.");
  460. rule InputNpc(1) goto Quest3Check4
  461. rule InputNpc(2) goto Quest3Action4
  462. }
  463. state Quest3Check4
  464. {
  465. if GotItems(1,10000) goto Quest3Reward4
  466. else goto Quest3Action4
  467. }
  468. state Quest3Reward4
  469. {
  470. action RemoveItem(1,10000);
  471. action GiveExp(30000);
  472. action ShowHint("You have been paid!");
  473. action SetState("GetReward");
  474. }
  475. state Quest4
  476. {
  477. desc "Talk with Everett Bradley"
  478. action AddNpcText(94, "Ahoy thar! Do ye 'ave a moment?");
  479. action AddNpcInput(94,1,"Aye, I do?");
  480. action AddNpcInput(94,2,"Goodbye.");
  481. rule InputNpc(1) goto Quest4Roll
  482. rule InputNpc(2) goto Reset
  483. }
  484. state Quest4Roll
  485. {
  486. action Roll(4)
  487. rule Rolled(1) goto Quest4Roll1
  488. rule Rolled(2) goto Quest4Roll2
  489. rule Rolled(3) goto Quest4Roll3
  490. rule Rolled(4) goto Quest4Roll4
  491.  
  492. }
  493. state Quest4Roll1
  494. {
  495. desc "Talk with Everett Bradley"
  496. action AddNpcText(94, "Will ye help me kill 100 Werewolves fer Exaltium? I shall reward ye with 1 Exaltium if ye're interested?");
  497. action AddNpcInput(94,1,"Aye, I will?");
  498. action AddNpcInput(94,2,"Not today.");
  499. rule InputNpc(1) goto Quest4Action1
  500. rule InputNpc(2) goto NoReward
  501. }
  502. state Quest4Action1
  503. {
  504. desc "Kill 100 Werewolves"
  505. action ShowHint("Kill 100 Werewolves!");
  506. rule KilledNpcs(156,100) goto Quest4Return1
  507. }
  508. state Quest4Return1
  509. {
  510. desc "Return to Everett Bradley"
  511. action ShowHint("Return to Everett Bradley");
  512. action AddNpcText(94, "Ahoy back! Well done wit' that scuttlin'");
  513. action AddNpcInput(94,1,"Aye, 'twas good!");
  514. rule InputNpc(1) goto Quest4Reward1
  515. }
  516. state Quest4Reward1
  517. {
  518. action GiveItem(257,1);
  519. action ShowHint("You have been paid!");
  520. action SetState("GetReward");
  521. }
  522. state Quest4Roll2
  523. {
  524. desc "Talk with Everett Bradley"
  525. action AddNpcText(94, "Will ye help me kill 100 Puppets fer Exaltium? I shall reward ye with 1 Exaltium if ye're interested?");
  526. action AddNpcInput(94,1,"Aye, I will?");
  527. action AddNpcInput(94,2,"Not today.");
  528. rule InputNpc(1) goto Quest4Action2
  529. rule InputNpc(2) goto NoReward
  530. }
  531. state Quest4Action2
  532. {
  533. desc "Kill 100 Puppets"
  534. action ShowHint("Kill 100 Puppets!");
  535. rule KilledNpcs(157,100) goto Quest4Return2
  536. }
  537. state Quest4Return2
  538. {
  539. desc "Return to Everett Bradley"
  540. action ShowHint("Return to Everett Bradley");
  541. action AddNpcText(94, "Ahoy back! Well done wit' that scuttlin'");
  542. action AddNpcInput(94,1,"Aye, 'twas good!");
  543. rule InputNpc(1) goto Quest4Reward2
  544. }
  545. state Quest4Reward2
  546. {
  547. action GiveItem(257,1);
  548. action ShowHint("You have been paid!");
  549. action SetState("GetReward");
  550. }
  551. state Quest4Roll3
  552. {
  553. desc "Talk with Everett Bradley"
  554. action AddNpcText(94, "Will ye help me kill 100 Vampires fer Exaltium? I shall reward ye with 2 Exaltium if ye're interested?");
  555. action AddNpcInput(94,1,"Aye, I will?");
  556. action AddNpcInput(94,2,"Not today.");
  557. rule InputNpc(1) goto Quest4Action3
  558. rule InputNpc(2) goto NoReward
  559. }
  560. state Quest4Action3
  561. {
  562. desc "Kill 100 Vampires"
  563. action ShowHint("Kill 100 Vampires!");
  564. rule KilledNpcs(158,100) goto Quest4Return3
  565. }
  566. state Quest4Return3
  567. {
  568. desc "Return to Everett Bradley"
  569. action ShowHint("Return to Everett Bradley");
  570. action AddNpcText(94, "Ahoy back! Well done wit' that scuttlin'");
  571. action AddNpcInput(94,1,"Aye, 'twas good!");
  572. rule InputNpc(1) goto Quest4Reward3
  573. }
  574. state Quest4Reward3
  575. {
  576. action GiveItem(257,2);
  577. action ShowHint("You have been paid!");
  578. action SetState("GetReward");
  579. }
  580. state Quest4Roll4
  581. {
  582. desc "Talk with Everett Bradley"
  583. action AddNpcText(94, "Will ye help me kill 100 Vampiresses fer Exaltium? I shall reward ye with 2 Exaltium if ye're interested?");
  584. action AddNpcInput(94,1,"Aye, I will?");
  585. action AddNpcInput(94,2,"Not today.");
  586. rule InputNpc(1) goto Quest4Action4
  587. rule InputNpc(2) goto NoReward
  588. }
  589. state Quest4Action4
  590. {
  591. desc "Kill 100 Vampiresses"
  592. action ShowHint("Kill 100 Vampiresses!");
  593. rule KilledNpcs(159,100) goto Quest4Return4
  594. }
  595. state Quest4Return4
  596. {
  597. desc "Return to Everett Bradley"
  598. action ShowHint("Return to Everett Bradley");
  599. action AddNpcText(94, "Ahoy back! Well done wit' that scuttlin'");
  600. action AddNpcInput(94,1,"Aye, 'twas good!");
  601. rule InputNpc(1) goto Quest4Reward4
  602. }
  603. state Quest4Reward4
  604. {
  605. action GiveItem(257,2);
  606. action ShowHint("You have been paid!");
  607. action SetState("GetReward");
  608. }
  609. state Quest5
  610. {
  611. desc "Talk with Everett Bradley"
  612. action AddNpcText(94, "Ahoy thar! Do ye 'ave a moment?");
  613. action AddNpcInput(94,1,"Aye, I do?");
  614. action AddNpcInput(94,2,"Goodbye.");
  615. rule InputNpc(1) goto Quest5Roll
  616. rule InputNpc(2) goto Reset
  617. }
  618. state Quest5Roll
  619. {
  620. action Roll(3)
  621. rule Rolled(1) goto Quest5Roll1
  622. rule Rolled(2) goto Quest5Roll2
  623. rule Rolled(3) goto Quest5Roll3
  624. }
  625. state Quest5Roll1
  626. {
  627. desc "Talk with Everett Bradley"
  628. action AddNpcText(94, "Will ye help me recover 200 Golem Stones fer Exaltium? I shall reward ye with 4 Exaltium if ye're interested?");
  629. action AddNpcInput(94,1,"Aye, I will?");
  630. action AddNpcInput(94,2,"Not today.");
  631. rule InputNpc(1) goto Quest5Action1
  632. rule InputNpc(2) goto NoReward
  633. }
  634. state Quest5Action1
  635. {
  636. desc "Recover 200 Golem Stones"
  637. action ShowHint("Recover 200 Golem Stones!");
  638. rule GotItems(31,200) goto Quest5Return1
  639. }
  640. state Quest5Return1
  641. {
  642. desc "Return to Everett Bradley"
  643. action ShowHint("Return to Everett Bradley");
  644. action AddNpcText(94, "'ave ye got that thar 200 Golem Stones?");
  645. action AddNpcInput(94,1,"Aye, here they be?");
  646. action AddNpcInput(94,2,"No I don't.");
  647. rule InputNpc(1) goto Quest5Check1
  648. rule InputNpc(2) goto Quest5Action1
  649. }
  650. state Quest5Check1
  651. {
  652. if GotItems(31,200) goto Quest5Reward1
  653. else goto Quest5Action1
  654. }
  655. state Quest5Reward1
  656. {
  657. action RemoveItem(31,200);
  658. action GiveItem(257,4);
  659. action ShowHint("You have been paid!");
  660. action SetState("GetReward");
  661. }
  662. state Quest5Roll2
  663. {
  664. desc "Talk with Everett Bradley"
  665. action AddNpcText(94, "Will ye help me recover 200 Golem Hats fer Exaltium? I shall reward ye with 4 Exaltium if ye're interested?");
  666. action AddNpcInput(94,1,"Aye, I will?");
  667. action AddNpcInput(94,2,"Not today.");
  668. rule InputNpc(1) goto Quest5Action2
  669. rule InputNpc(2) goto NoReward
  670. }
  671. state Quest5Action2
  672. {
  673. desc "Recover 200 Golem Hats"
  674. action ShowHint("Recover 200 Golem Hats!");
  675. rule GotItems(32,200) goto Quest5Return2
  676. }
  677. state Quest5Return2
  678. {
  679. desc "Return to Everett Bradley"
  680. action ShowHint("Return to Everett Bradley");
  681. action AddNpcText(94, "'ave ye got that thar 200 Golem Hats?");
  682. action AddNpcInput(94,1,"Aye, here they be?");
  683. action AddNpcInput(94,2,"No I don't.");
  684. rule InputNpc(1) goto Quest5Check2
  685. rule InputNpc(2) goto Quest5Action2
  686. }
  687. state Quest5Check2
  688. {
  689. if GotItems(32,200) goto Quest5Reward2
  690. else goto Quest5Action2
  691. }
  692. state Quest5Reward2
  693. {
  694. action RemoveItem(32,200);
  695. action GiveItem(257,4);
  696. action ShowHint("You have been paid!");
  697. action SetState("GetReward");
  698. }
  699. state Quest5Roll3
  700. {
  701. desc "Talk with Everett Bradley"
  702. action AddNpcText(94, "Will ye help me recover 200 Golem Dolls fer Exaltium? I shall reward ye with 4 Exaltium if ye're interested?");
  703. action AddNpcInput(94,1,"Aye, I will?");
  704. action AddNpcInput(94,2,"Not today.");
  705. rule InputNpc(1) goto Quest5Action3
  706. rule InputNpc(2) goto NoReward
  707. }
  708. state Quest5Action3
  709. {
  710. desc "Recover 200 Golem Dolls"
  711. action ShowHint("Recover 200 Golem Dolls!");
  712. rule GotItems(33,200) goto Quest5Return3
  713. }
  714. state Quest5Return3
  715. {
  716. desc "Return to Everett Bradley"
  717. action ShowHint("Return to Everett Bradley");
  718. action AddNpcText(94, "'ave ye got that thar 200 Golem Dolls?");
  719. action AddNpcInput(94,1,"Aye, here they be?");
  720. action AddNpcInput(94,2,"No I don't.");
  721. rule InputNpc(1) goto Quest5Check3
  722. rule InputNpc(2) goto Quest5Action3
  723. }
  724. state Quest5Check3
  725. {
  726. if GotItems(33,200) goto Quest5Reward3
  727. else goto Quest5Action3
  728. }
  729. state Quest5Reward3
  730. {
  731. action RemoveItem(33,200);
  732. action GiveItem(257,4);
  733. action ShowHint("You have been paid!");
  734. action SetState("GetReward");
  735. }
  736. state NoReward
  737. {
  738. action ShowHint("Everett Bradley is unhappy, try again tomorrow!");
  739. action GiveExp(100)
  740. action ResetDaily();
  741. }
  742. state GetReward
  743. {
  744. action ShowHint("You have successfully assisted Everett Bradley today!");
  745. action PlaySound(17);
  746. action GiveExp(25000)
  747. action ResetDaily();
  748. }
  749. state EndWithoutReset
  750. {
  751. desc "Assistance (Daily)"
  752. action ShowHint("You can only assist Everett Bradley once per day.");
  753. action ShowHint("Everett Bradley has already been assisted today." );
  754. action SetState("Reset");
  755. }
  756. state Reset
  757. {
  758. action ShowHint("Assistance (Daily) aborted...")
  759. action Reset();
  760. }
Advertisement
Add Comment
Please, Sign In to add comment