Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.17 KB | None | 0 0
  1. 100% Fortunato
  2. [CODE]
  3. package com.rs.game.player.dialogues;
  4.  
  5. /**
  6. * @author by Mario
  7. */
  8.  
  9. public class Fortunato extends Dialogue {
  10.  
  11. int npcId;
  12.  
  13. @Override
  14. public void start() {
  15. npcId = (Integer) parameters[0];
  16. sendNPCDialogue(npcId, 9803, "Can I help you at all?");
  17. }
  18.  
  19. @Override
  20. public void run(int interfaceId, int componentId) {
  21. if (stage == -1) {
  22. stage = 0;
  23. sendOptionsDialogue("CHOOSE AN OPTION:",
  24. "Yes, what are you selling?",
  25. "Wine merchant, huh?",
  26. "Can you tell me about Draynor Village?",
  27. "Not at the moment.");
  28. } else if (stage == 0) {
  29. if (componentId == OPTION_1) {
  30. sendPlayerDialogue(9827, "Yes, what are you selling?");
  31. stage = 1;
  32. } else if (componentId == OPTION_2) {
  33. stage = 2;
  34. sendNPCDialogue(npcId, 9850, "Yes, indeed. The finest wine in Misthalin.");
  35. } else if (componentId == OPTION_3) {
  36. stage = 7;
  37. sendNPCDialogue(npcId, 9831, "The village is quite old, but the market is a rather recent addition. We were doing quite good business up until recently.");
  38. } else if (componentId == OPTION_4) {
  39. stage = 12;
  40. sendPlayerDialogue(9803, "Not at the moment.");
  41. } else
  42. end();
  43. } else if (stage == 1) {
  44. //Open shop
  45. end();
  46. } else if (stage == 2) {
  47. stage = 3;
  48. sendNPCDialogue(npcId, 9850, "Care to take a look at my wares?");
  49. } else if (stage == 3) {
  50. stage = 4;
  51. sendOptionsDialogue("SELECT AN OPTION",
  52. "Yes.",
  53. "Not at the moment.");
  54. } else if (stage == 4) {
  55. if (componentId == OPTION_1) {
  56. stage = 5;
  57. sendPlayerDialogue(9827, "Yes, what are you selling?");
  58. } else if (componentId == OPTION_2) {
  59. stage = 6;
  60. sendPlayerDialogue(9803, "Not at the moment.");
  61. } else
  62. end();
  63. } else if (stage == 5) {
  64. //Open shop
  65. end();
  66. } else if (stage == 6) {
  67. stage = 12;
  68. sendNPCDialogue(npcId, 9781, "Then move along, you filthy ragamuffin, I have customers to serve!");
  69. } else if (stage == 7) {
  70. stage = 8;
  71. sendPlayerDialogue(9814, "What happend?");
  72. } else if (stage == 8) {
  73. stage = 9;
  74. sendNPCDialogue(npcId, 9803, "Well, not long ago there was a battle right outside Draynor, between Saradomin and Zamorak! You can still see the battlefield.");
  75. } else if (stage == 9) {
  76. stage = 10;
  77. sendNPCDialogue(npcId, 9803, "Besides that, mysterious attacks began happening to villagers. Some say it's a vampyre, but I'm not convinced.");
  78. } else if (stage == 10) {
  79. stage = 11;
  80. sendNPCDialogue(npcId, 9803, "Perhaps I can interest you in some wine?");
  81. } else if (stage == 11) {
  82. stage = 13;
  83. sendOptionsDialogue("SELECT AN OPTION",
  84. "Yes, please show me your wares!",
  85. "No, I must be going.");
  86. } else if (stage == 12) {
  87. end();
  88. } else if (stage == 13) {
  89. if (componentId == OPTION_1) {
  90. stage = 5;
  91. sendPlayerDialogue(9827, "Yes, what are you selling?");
  92. } else if (componentId == OPTION_2) {
  93. stage = 12;
  94. sendPlayerDialogue(9803, "Not at the moment.");
  95. } else
  96. end();
  97. }
  98. }
  99.  
  100. @Override
  101. public void finish() {
  102.  
  103. }
  104.  
  105. }
  106. [/CODE]
  107.  
  108.  
  109. 95% Diango
  110. [CODE]
  111. package com.rs.game.player.dialogues;
  112.  
  113. /**
  114. * @author by Mario
  115. */
  116.  
  117. public class Diango extends Dialogue {
  118.  
  119. int npcId;
  120. int item = 20083;
  121.  
  122. @Override
  123. public void start() {
  124. npcId = (Integer) parameters[0];
  125. sendNPCDialogue(npcId, 9850, "Howdy there, partner.");
  126. }
  127.  
  128. @Override
  129. public void run(int interfaceId, int componentId) {
  130. if (stage == -1) {
  131. if (player.hasGoldencracker == false) {
  132. stage = 33;
  133. sendPlayerDialogue(9850, "Hi, Diango.");
  134. } else if (player.hasGoldencracker == true) {
  135. stage = 4;
  136. sendPlayerDialogue(9850, "Hi, Diango.");
  137. }
  138. } else if (stage == 33) {
  139. stage = 25;
  140. sendNPCDialogue(npcId, 9850, "The makers of the world hve won an award! Have a cracker, with our compliments!");
  141. } else if (stage == 25) {
  142. stage = 0;
  143. sendOptionsDialogue("WOULD YOU LIKE A GOLDEN CRACKER?",
  144. "Yes.",
  145. "No.");
  146. } else if (stage == 0) {
  147. if (componentId == OPTION_1) {
  148. stage = 1;
  149. player.hasGoldencracker = true;
  150. player.getInventory().addItem(item, 1);
  151. player.getDialogueManager().startDialogue("ItemMessage", "Diango gives you a golden cracker.", item);
  152. } else if (componentId == OPTION_2) {
  153. stage = 5;
  154. sendNPCDialogue(npcId, 9850, "Feel free to collect it later! Now, what can I do for you? Want to see my spinning plates or kites? Want to check out my range of party items? Or did you want an item back?");
  155. } else
  156. end();
  157. } else if (stage == 1) {
  158. stage = 2;
  159. sendPlayerDialogue(9850, "Thanks, Diango!");
  160. } else if (stage == 2) {
  161. stage = 3;
  162. sendNPCDialogue(npcId, 9850, "Pull it with another person and you'll get a special suprise!");
  163. } else if (stage == 3) {
  164. stage = 5;
  165. sendNPCDialogue(npcId, 9850, "Now, what can I do for you? Want to see my spinning plates or kites? Want to check out my range of party items? Or did you want an item back?");
  166. } else if (stage == 4) {
  167. stage = 5;
  168. sendNPCDialogue(npcId, 9850, "Want to see my spinning plates or kites? Want to check out my range of party items? Or did you want an item back?");
  169. } else if (stage == 5) {
  170. stage = 6;
  171. sendOptionsDialogue("SELECT AN OPTION",
  172. "Spinning plates?",
  173. "Wow, a kite!",
  174. "Party items, you say?",
  175. "I'd like to check my items, please.");
  176. } else if (stage == 6) {
  177. if (componentId == OPTION_1) {
  178. stage = 7;
  179. sendPlayerDialogue(9827, "Spinning plates?");
  180. } else if (componentId == OPTION_2) {
  181. stage = 9;
  182. sendPlayerDialogue(9850, "Wow, a kite!");
  183. } else if (componentId == OPTION_3) {
  184. stage = 14;
  185. sendPlayerDialogue(9827, "Party items, you say?");
  186. } else if (componentId == OPTION_4) {
  187. stage = 22;
  188. sendPlayerDialogue(9803, "I'd like to check my items, please.");
  189. } else
  190. end();
  191. } else if (stage == 7) {
  192. stage = 8;
  193. sendNPCDialogue(npcId, 9850, "That's right. There's a funny story behind them, their shipment was held up by thieves.");
  194. } else if (stage == 8) {
  195. stage = 30;
  196. sendNPCDialogue(npcId, 9840, "The create was marked 'Dragon Plates'. Apparently the thought it was some kind of armour, when really it's just a plate with a dragon on it!");
  197. } else if (stage == 9) {
  198. stage = 10;
  199. sendNPCDialogue(npcId, 9850, "You're not the first to say that...");
  200. } else if (stage == 10) {
  201. stage = 11;
  202. sendPlayerDialogue(9850, "Can I have one, please?");
  203. } else if (stage == 11) {
  204. stage = 12;
  205. sendNPCDialogue(npcId, 9760, "Well, I suppose I did order more than I need.. It's yours for the bargain price of 100 coins.");
  206. } else if (stage == 12) {
  207. stage = 13;
  208. sendOptionsDialogue("SELECT AN OPTION",
  209. "That's a bargain! I'll take one.",
  210. "No, thanks, I don't want one.");
  211. } else if (stage == 13) {
  212. if (componentId == OPTION_1) {
  213. stage = 30;
  214. sendPlayerDialogue(9850, "That's a bargain! I'll take one.");
  215. } else if (componentId == OPTION_2) {
  216. stage = 31;
  217. sendPlayerDialogue(9761, "No, thanks, I don't want one.");
  218. } else
  219. end();
  220. } else if (stage == 14) {
  221. stage = 15;
  222. sendNPCDialogue(npcId, 9850, "Yep! In a partnership with my pal Party Pete, we've decided to launch a whole range of partyware to help celebrate the Royal Wedding of the King Black Dragon and the Kalphite Queen. Confetti, bubble makers, fireworks,");
  223. } else if (stage == 15) {
  224. stage = 16;
  225. sendNPCDialogue(npcId, 9850, "firecrackers. We even have a commemorative mug!");
  226. } else if (stage == 16) {
  227. stage = 17;
  228. sendPlayerDialogue(9827, "King Black Dragon and Kalphite... Wait, what?");
  229. } else if (stage == 17) {
  230. stage = 18;
  231. sendNPCDialogue(npcId, 9830, "Er, well, that I was told: perhaps our providers got it wrong. Mind you, it wouldn't be the first time. Like, this once, we were due to receive a shipment of dragon mail, and we got a pile of slightly singed letters instead.");
  232. } else if (stage == 18) {
  233. stage = 19;
  234. sendNPCDialogue(npcId, 9827, "Anyway, we've got all those items on sale, and I even have a suitable bouquet available on members' worlds for those who want to emulate the happy bride!");
  235. } else if (stage == 19) {
  236. stage = 20;
  237. sendPlayerDialogue(9827, "She had a bouquet? The Kalphite Queen? Big bug, beady-eyed, occasionally files about when it's not laying eggs? Are we taking about the same creature?");
  238. } else if (stage == 20) {
  239. stage = 21;
  240. sendNPCDialogue(npcId, 9760, "Listen, partner, I'm not the one writing the advertising pitch here. I got the goods and been told what to say in order to sell them. It's not the most convincing pitch I've ever had to do, but, if you ask me, the products don't");
  241. } else if (stage == 21) {
  242. stage = 30;
  243. sendNPCDialogue(npcId, 9760, "need a pitch. They speak for them selves. Have a butchers.");
  244. } else if (stage == 22) {
  245. stage = 32;
  246. sendNPCDialogue(npcId, 9850, "Sure thing, let me just see what you're missing.");
  247. } else if (stage == 30) {
  248. //Open shop
  249. end();
  250. } else if (stage == 31) {
  251. end();
  252. } else if (stage == 32) {
  253. player.getInterfaceManager().sendInterface(468);
  254. end();
  255. }
  256. }
  257.  
  258. @Override
  259. public void finish() {
  260.  
  261. }
  262.  
  263. }
  264. [/CODE]
  265.  
  266.  
  267. 99% Miss
  268. [CODE]
  269. package com.rs.game.player.dialogues;
  270.  
  271. /**
  272. * @author by Mario
  273. */
  274.  
  275. public class MissSchism extends Dialogue {
  276.  
  277. int npcId;
  278.  
  279. @Override
  280. public void start() {
  281. npcId = (Integer) parameters[0];
  282. sendNPCDialogue(npcId, 9753, "Oooh, my dear, have you heard the news?");
  283. }
  284.  
  285. @Override
  286. public void run(int interfaceId, int componentId) {
  287. if (stage == -1) {
  288. stage = 0;
  289. sendOptionsDialogue("WHAT WOULD YOU LIKE TO SAY?",
  290. "Ok, tell me about the news.",
  291. "Who are you?",
  292. "I'm not talking to you, you horrible woman.");
  293. } else if (stage == 0) {
  294. if (componentId == OPTION_1) {
  295. stage = 1;
  296. sendNPCDialogue(npcId, 9753, "Well, there's just too much to tell at once! What would you like to hear first: the vampire, the bank or the battlefield?");
  297. stage = 1;
  298. } else if (componentId == OPTION_2) {
  299. stage = 34;
  300. sendNPCDialogue(npcId, 9847, "I, my dear, am a concerned citizen of Draynor Village. Ever since the Council allowed those farmers to set up their stalls here, we've had a constant flow of thieves and murders through our fair village, and I decided that");
  301. } else if (componentId == OPTION_3) {
  302. stage = 70;
  303. sendNPCDialogue(npcId, 9761, "Oooh.");
  304. } else
  305. end();
  306. } else if (stage == 1) {
  307. stage = 2;
  308. sendOptionsDialogue("SELECT AN OPTION",
  309. "Tell me about the vampire.",
  310. "Tell me about the bank.",
  311. "Tell me about the battlefield.");
  312. } else if (stage == 2) {
  313. if (componentId == OPTION_1) {
  314. stage = 3;
  315. sendNPCDialogue(npcId, 9753, "It's terrible, absolutely terrible! Those poor people!");
  316. } else if (componentId == OPTION_2) {
  317. stage = 9;
  318. sendPlayerDialogue(9811, "What about the bank?");
  319. } else if (componentId == OPTION_3) {
  320. stage = 70;
  321. sendNPCDialogue(npcId, 9847, "Yes, it's a great tourist attraction. It proves that our little village is important.");
  322. } else
  323. end();
  324. } else if (stage == 3) {
  325. stage = 4;
  326. sendPlayerDialogue(9831, "What is terrible?");
  327. } else if (stage == 4) {
  328. stage = 5;
  329. sendNPCDialogue(npcId, 9753, "Why, the attacks!");
  330. } else if (stage == 5) {
  331. stage = 6;
  332. sendPlayerDialogue(9811, "A vampire is attacking people?");
  333. } else if (stage == 6) {
  334. stage = 7;
  335. sendNPCDialogue(npcId, 9785, "Yes, haven't you been listening?");
  336. } else if (stage == 7) {
  337. stage = 8;
  338. sendNPCDialogue(npcId, 9753, "And no one is lifting a finger to do anything about it. Well that new couple, Morgan and Maris, they think we should find a vampire slayer, but I'm not sure I trust them.");
  339. } else if (stage == 8) {
  340. stage = 70;
  341. sendNPCDialogue(npcId, 9836, "They aren't local");
  342. } else if (stage == 9) {
  343. stage = 10;
  344. sendNPCDialogue(npcId, 9753, "It's terrible, absolutely terrible! Those poor people!");
  345. } else if (stage == 10) {
  346. stage = 11;
  347. sendPlayerDialogue(9831, "Ok, yeah.");
  348. } else if (stage == 11) {
  349. stage = 12;
  350. sendNPCDialogue(npcId, 9753, "And who'd have ever thought such a sweet old gentleman would do such a thing?");
  351. } else if (stage == 12) {
  352. stage = 13;
  353. sendPlayerDialogue(9803, "Are we talking about the bank robbery?");
  354. } else if (stage == 13) {
  355. stage = 14;
  356. sendNPCDialogue(npcId, 9753, "Oh yes, my dear. It was terrible! TERRIBLE!");
  357. } else if (stage == 14) {
  358. stage = 15;
  359. sendNPCDialogue(npcId, 9803, "But tell me - have you been around here before, or are you new to these parts?");
  360. } else if (stage == 15) {
  361. stage = 16;
  362. sendOptionsDialogue("WHAT WOULD YOU LIKE TO SAY?",
  363. "I'm quite new.",
  364. "I've been around here for ages.",
  365. "I've had enough of talking to you.");
  366. } else if (stage == 16) {
  367. if (componentId == OPTION_1) {
  368. stage = 17;
  369. sendNPCDialogue(npcId, 9753, "Aah, perhaps you missed the excitement. It's that old man in this house here. Do you know him?");
  370. } else if (componentId == OPTION_2) {
  371. stage = 17;
  372. sendNPCDialogue(npcId, 9847, "Ah, so you'd have seen the changes here. It's that old man in this house here. Do you know him?");
  373. } else if (componentId == OPTION_3) {
  374. stage = 70;
  375. sendNPCDialogue(npcId, 9768, "Maybe another time, my dear.");
  376. } else
  377. end();
  378. } else if (stage == 17) {
  379. stage = 18;
  380. sendPlayerDialogue(9803, "I haven't spoken to him yet.");
  381. } else if (stage == 18) {
  382. stage = 19;
  383. sendNPCDialogue(npcId, 9753, "When he first moved here, he didn't bring much. From the window you could see he just had some old furniture and a few dusty ornaments.");
  384. } else if (stage == 19) {
  385. stage = 20;
  386. sendNPCDialogue(npcId, 9847, "Here, look at this picture:");
  387. } else if (stage == 20) {
  388. stage = 21;
  389. sendDialogue("*Can't add this scene*");
  390. } else if (stage == 21) {
  391. stage = 22;
  392. sendNPCDialogue(npcId, 9847, "Also, he always seemed so poor. When I went round to collect donations for the Draynor Manor Restoration Fund, he couldn't spare them a penny!");
  393. } else if (stage == 22) {
  394. stage = 23;
  395. sendPlayerDialogue(9803, "So he's redecorated?");
  396. } else if (stage == 23) {
  397. stage = 24;
  398. sendNPCDialogue(npcId, 9753, "Well, just you look in there now!");
  399. } else if (stage == 24) {
  400. stage = 25;
  401. sendDialogue("*Can't add this scene*");
  402. } else if (stage == 25) {
  403. stage = 26;
  404. sendNPCDialogue(npcId, 9847, "You see? It's full of jewellery and decorations! And all those expensive things appeared just the bank got robbed.");
  405. } else if (stage == 26) {
  406. stage = 27;
  407. sendNPCDialogue(npcId, 9847, "He changed his hat too - he used to wear a scuffy old black thing, but suddenly he was wearing a party hat!");
  408. } else if (stage == 27) {
  409. stage = 28;
  410. sendPlayerDialogue(9803, "So that's why you're telling people he was the bank robber?");
  411. } else if (stage == 28) {
  412. stage = 29;
  413. sendNPCDialogue(npcId, 9847, "Oooh, my dear, I'm SURE of it! went upstairs in his house once, while he was out walking, and do you know what I found?");
  414. } else if (stage == 29) {
  415. stage = 30;
  416. sendPlayerDialogue(9803, "A sign saying 'Trespassers will be prosecuted'?");
  417. } else if (stage == 30) {
  418. stage = 31;
  419. sendNPCDialogue(npcId, 9753, "No, it was a telescope! It was pointing right at the bank! He was spying on the bankers, planning the big robbery!");
  420. } else if (stage == 31) {
  421. stage = 32;
  422. sendNPCDialogue(npcId, 9847, "I bet if you go and look through it now, you'll find it's pointing somewhere diffrent now he's finished with the bank.");
  423. } else if (stage == 32) {
  424. stage = 33;
  425. sendPlayerDialogue(9803, "I'd like to go now.");
  426. } else if (stage == 33) {
  427. stage = 34;
  428. sendNPCDialogue(npcId, 9827, "Oh, really? Well, do keep an eye on him: I just KNOW he's planning something.");
  429. } else if (stage == 34) {
  430. stage = 35;
  431. sendNPCDialogue(npcId, 9847, "someone HAD to stand up and keep an eye on the situation.");
  432. } else if (stage == 35) {
  433. stage = 36;
  434. sendNPCDialogue(npcId, 9847, "I also do voluntary work for the Draynor Manor Restoration Fund. We're campaigning to have Draynor Manor turned into a museum before the wet-rot destroys it completely.");
  435. } else if (stage == 36) {
  436. stage = 70;
  437. sendPlayerDialogue(9803, "Right...");
  438. } else if (stage == 70) {
  439. end();
  440. }
  441. }
  442.  
  443. @Override
  444. public void finish() {
  445.  
  446. }
  447.  
  448. }
  449. [/CODE]
  450.  
  451.  
  452. 100% Aggie
  453. [CODE]
  454. package com.rs.game.player.dialogues;
  455.  
  456. /**
  457. * @author by Mario
  458. */
  459.  
  460. public class Aggie extends Dialogue {
  461.  
  462. int npcId;
  463. int reddye = 1763;
  464. int yellowdye = 1765;
  465. int bluedye = 1767;
  466.  
  467. @Override
  468. public void start() {
  469. npcId = (Integer) parameters[0];
  470. sendNPCDialogue(npcId, 9850, "What can I help you with?");
  471. }
  472.  
  473. @Override
  474. public void run(int interfaceId, int componentId) {
  475. if (stage == -1) {
  476. stage = 0;
  477. sendOptionsDialogue("CHOOSE AN OPTION:",
  478. "Hey, you're a witch aren't you?",
  479. "So what is actually in that cauldron?",
  480. "What's new in Draynor Village?",
  481. "More...");
  482. } else if (stage == 0) {
  483. if (componentId == OPTION_1) {
  484. sendPlayerDialogue(9827, "Hey, you're a witch aren't you?");
  485. stage = 1;
  486. } else if (componentId == OPTION_2) {
  487. stage = 4;
  488. sendPlayerDialogue(9803, "So, what is actually in that cauldron?");
  489. } else if (componentId == OPTION_3) {
  490. stage = 5;
  491. sendNPCDialogue(npcId, 9836, "The blood sucker has returned to Draynor Manor. I hate his kind.");
  492. } else if (componentId == OPTION_4) {
  493. stage = 8;
  494. sendOptionsDialogue("SELECT AN OPTION",
  495. "What could you make for me?",
  496. "Can you make dyes for me please?",
  497. "More...");
  498. } else
  499. end();
  500. } else if (stage == 1) {
  501. stage = 2;
  502. sendNPCDialogue(npcId, 9803, "My, you're observant!");
  503. } else if (stage == 2) {
  504. stage = 3;
  505. sendPlayerDialogue(9850, "Cool, do you turn people into frogs?");
  506. } else if (stage == 3) {
  507. stage = 30;
  508. sendNPCDialogue(npcId, 9803, "Oh, not for years. But if you meet a talking chicken you have probably met the professor in the manor north of here. A few years ago it was flying fish. That machine is a menace.");
  509. } else if (stage == 4) {
  510. stage = 30;
  511. sendNPCDialogue(npcId, 9803, "You don't really expect me to give a way trade secrets, do you?");
  512. } else if (stage == 5) {
  513. stage = 6;
  514. sendPlayerDialogue(9811, "The blood sucker?");
  515. } else if (stage == 6) {
  516. stage = 7;
  517. sendNPCDialogue(npcId, 9785, "Yes, Count Draynor, the vampyre. He's preying on the innocent people of this village. I do my best to protect them with what magic I have, but he is powerful.");
  518. } else if (stage == 7) {
  519. stage = 30;
  520. sendPlayerDialogue(9760, "Wow, that's sad.");
  521. } else if (stage == 8) {
  522. if (componentId == OPTION_1) {
  523. stage = 9;
  524. sendPlayerDialogue(9827, "What could you make for me?");
  525. } else if (componentId == OPTION_2) {
  526. stage = 42;
  527. sendPlayerDialogue(9827, "Can you make dyes for me please?");
  528. } else if (componentId == OPTION_3) {
  529. stage = 0;
  530. sendOptionsDialogue("CHOOSE AN OPTION:",
  531. "Hey, you're a witch aren't you?",
  532. "So what is actually in that cauldron?",
  533. "What's new in Draynor Village?",
  534. "More...");
  535. } else
  536. end();
  537. } else if (stage == 9) {
  538. stage = 10;
  539. sendNPCDialogue(npcId, 9803, "I moustly just make what I find pretty. I sometimes make dye for the women's clothes to brighter the place up. I can make red, yellow and blue dyes. If you'd like some, just bring me the appropriatet ingredients.");
  540. } else if (stage == 10) {
  541. stage = 11;
  542. sendOptionsDialogue("SELECT AN OPTION",
  543. "What do you need to make red dye?",
  544. "What dou you need to make yellow dye?",
  545. "What do you need to make blue dye?",
  546. "No thanks, I am happy the colour I am.");
  547. } else if (stage == 11) {
  548. if (componentId == OPTION_1) {
  549. stage = 12;
  550. sendPlayerDialogue(9827, "What do you need to make red dye?");
  551. } else if (componentId == OPTION_2) {
  552. stage = 25;
  553. sendPlayerDialogue(9827, "What do you need to make yellow dye?");
  554. } else if (componentId == OPTION_3) {
  555. stage = 34;
  556. sendPlayerDialogue(9827, "What do you need to make blue dye?");
  557. } else if (componentId == OPTION_4) {
  558. stage = 40;
  559. sendPlayerDialogue(9803, "No thanks, I am happy the colour I am.");
  560. } else
  561. end();
  562. } else if (stage == 12) {
  563. stage = 13;
  564. sendNPCDialogue(npcId, 9803, "3 lots of redberries and 5 coins to you.");
  565. } else if (stage == 13) {
  566. stage = 14;
  567. sendOptionsDialogue("SELECT AN OPTION",
  568. "Could you make me some red dye, please?",
  569. "I don't think I have all the ingredients yet.",
  570. "I can do without dye at that price.",
  571. "Where can I get redberries?",
  572. "What other colours can you make?");
  573. } else if (stage == 14) {
  574. if (componentId == OPTION_1) {
  575. if (!player.getInventory().containsItem(1951, 3) || !player.getInventory().containsItem(995, 5)) {
  576. stage = 30;
  577. sendDialogue("You don't have enough berries to make the red dye");
  578. }
  579. if (player.getInventory().containsItem(1951, 3) && player.getInventory().containsItem(995, 5)) {
  580. sendPlayerDialogue(9803, "Could you make me some red dye, please?");
  581. stage = 16;
  582. }
  583. } else if (componentId == OPTION_2) {
  584. stage = 17;
  585. sendPlayerDialogue(9811, "I don't think I have all the ingredients yet.");
  586. } else if (componentId == OPTION_3) {
  587. stage = 18;
  588. sendPlayerDialogue(9785, "I can do without dye at that price.");
  589. } else if (componentId == OPTION_4) {
  590. stage = 19;
  591. sendPlayerDialogue(9827, "Where do I get redberries?");
  592. } else if (componentId == OPTION_5) {
  593. stage = 22;
  594. sendPlayerDialogue(9827, "What other colours can you make?");
  595. } else
  596. end();
  597. } else if (stage == 16) {
  598. stage = 30;
  599. player.getInventory().deleteItem(1951, 3);
  600. player.getInventory().deleteItem(995, 5);
  601. player.getInventory().addItem(reddye, 1);
  602. player.getDialogueManager().startDialogue("ItemMessage", "You hand the berries and payment to Aggie. Aggie produces a red bottle and hands it to you.", reddye);
  603. } else if (stage == 17) {
  604. stage = 30;
  605. sendNPCDialogue(npcId, 9803, "You know what you need to get, now come back when you have them. Goodbye for now.");
  606. } else if (stage == 18) {
  607. stage = 30;
  608. sendNPCDialogue(npcId, 9803, "That's your choice, but I would think you have killed for less. I can see it in you eyes.");
  609. } else if (stage == 19) {
  610. stage = 20;
  611. sendNPCDialogue(npcId, 9803, "I pick mine from the woods south of Varrock. The food shop in Port Sarim sometimes has some as well.");
  612. } else if (stage == 20) {
  613. stage = 21;
  614. sendOptionsDialogue("SELECT AN OPTION",
  615. "What other colours can you make?",
  616. "Thanks");
  617. } else if (stage == 21) {
  618. if (componentId == OPTION_1) {
  619. stage = 22;
  620. sendPlayerDialogue(9827, "What other colours can you make?");
  621. } else if (componentId == OPTION_2) {
  622. stage = 33;
  623. sendPlayerDialogue(9850, "Thanks.");
  624. } else
  625. end();
  626. } else if (stage == 22) {
  627. stage = 23;
  628. sendNPCDialogue(npcId, 9803, "Red, yellow and blue. Which one would you like?");
  629. } else if (stage == 23) {
  630. stage = 24;
  631. sendOptionsDialogue("SELECT AN OPTION",
  632. "What do you need to make red dye?",
  633. "What dou you need to make yellow dye?",
  634. "What do you need to make blue dye?");
  635. } else if (stage == 24) {
  636. if (componentId == OPTION_1) {
  637. stage = 12;
  638. sendPlayerDialogue(9827, "What do you need to make red dye?");
  639. } else if (componentId == OPTION_2) {
  640. stage = 25;
  641. sendPlayerDialogue(9827, "What do you need to make yellow dye?");
  642. } else if (componentId == OPTION_3) {
  643. stage = 34;
  644. sendPlayerDialogue(9827, "What do you need to make blue dye?");
  645. } else
  646. end();
  647. } else if (stage == 25) {
  648. stage = 26;
  649. sendNPCDialogue(npcId, 9803, "Yellow is a strange colour to get, comes from onion skins I need 2 onions and 5 coins to make yellow dye.");
  650. } else if (stage == 26) {
  651. stage = 27;
  652. sendOptionsDialogue("SELECT AN OPTION",
  653. "Could you make me some yellow dye, please?",
  654. "I don't think I have all the ingredients yet.",
  655. "I can do without dye at that price.",
  656. "Where can I get onions?",
  657. "What other colours can you make?");
  658. } else if (stage == 27) {
  659. if (componentId == OPTION_1) {
  660. if (!player.getInventory().containsItem(1957, 2) || !player.getInventory().containsItem(995, 5)) {
  661. stage = 30;
  662. sendDialogue("You don't have enough onions to make the red dye");
  663. }
  664. if (player.getInventory().containsItem(1957, 2) && player.getInventory().containsItem(995, 5)) {
  665. sendPlayerDialogue(9803, "Could you make me some yellow dye, please?");
  666. stage = 29;
  667. }
  668. } else if (componentId == OPTION_2) {
  669. stage = 17;
  670. sendPlayerDialogue(9811, "I don't think I have all the ingredients yet.");
  671. } else if (componentId == OPTION_3) {
  672. stage = 18;
  673. sendPlayerDialogue(9785, "I can do without dye at that price.");
  674. } else if (componentId == OPTION_4) {
  675. stage = 31;
  676. sendPlayerDialogue(9827, "Where do I get onions?");
  677. } else if (componentId == OPTION_5) {
  678. stage = 22;
  679. sendPlayerDialogue(9827, "What other colours can you make?");
  680. } else
  681. end();
  682. } else if (stage == 29) {
  683. player.getInventory().deleteItem(1957, 2);
  684. player.getInventory().deleteItem(995, 5);
  685. player.getInventory().addItem(yellowdye, 1);
  686. player.getDialogueManager().startDialogue("ItemMessage", "You hand the onions and payment to Aggie. Aggie produces a yellow bottle and hands it to you.", yellowdye); // by Mario
  687. end();
  688. } else if (stage == 31) {
  689. stage = 21;
  690. sendNPCDialogue(npcId, 9803, "There are some onions growing on a farm to the East of here, next to the sheep field.");
  691. } else if (stage == 33) {
  692. stage = 30;
  693. sendNPCDialogue(npcId, 9850, "You're welcome!");
  694. } else if (stage == 34) {
  695. stage = 35;
  696. sendNPCDialogue(npcId, 9803, "2 Woad leaves and 5 coins to you.");
  697. } else if (stage == 35) {
  698. stage = 36;
  699. sendOptionsDialogue("SELECT AN OPTION",
  700. "Could you make me some blue dye, please?",
  701. "I don't think I have all the ingredients yet.",
  702. "I can do without dye at that price.",
  703. "Where can I get woad leaves?",
  704. "What other colours can you make?");
  705. } else if (stage == 36) {
  706. if (componentId == OPTION_1) {
  707. if (!player.getInventory().containsItem(1793, 2) || !player.getInventory().containsItem(995, 5)) {
  708. stage = 30;
  709. sendDialogue("You don't have enough woad leaves to make the red dye");
  710. }
  711. if (player.getInventory().containsItem(1793, 2) && player.getInventory().containsItem(995, 5)) {
  712. sendPlayerDialogue(9803, "Could you make me some blue dye, please?");
  713. stage = 38;
  714. }
  715. } else if (componentId == OPTION_2) {
  716. stage = 17;
  717. sendPlayerDialogue(9811, "I don't think I have all the ingredients yet.");
  718. } else if (componentId == OPTION_3) {
  719. stage = 18;
  720. sendPlayerDialogue(9785, "I can do without dye at that price.");
  721. } else if (componentId == OPTION_4) {
  722. stage = 39;
  723. sendPlayerDialogue(9827, "Where do I get woad leaves?");
  724. } else if (componentId == OPTION_5) {
  725. stage = 22;
  726. sendPlayerDialogue(9827, "What other colours can you make?");
  727. } else
  728. end();
  729. } else if (stage == 38) {
  730. player.getInventory().deleteItem(1793, 2);
  731. player.getInventory().deleteItem(995, 5);
  732. player.getInventory().addItem(bluedye, 1);
  733. player.getDialogueManager().startDialogue("ItemMessage", "You hand the woad leaves and payment to Aggie. Aggie produces a blue bottle and hands it to you.", bluedye);
  734. end();
  735. } else if (stage == 39) {
  736. stage = 20;
  737. sendNPCDialogue(npcId, 9803, "Woad leaves are fairly hard to find. My other customers tell me the chief gardener in Falador grows them.");
  738. } else if (stage == 40) {
  739. stage = 30;
  740. sendNPCDialogue(npcId, 9803, "You are easily pleased with yourself then. When you need dyes, come to me.");
  741. } else if (stage == 42) {
  742. stage = 23;
  743. sendNPCDialogue(npcId, 9827, "What sort of dye would you like? Red, yellow or blue?");
  744. } else if (stage == 30) {
  745. end();
  746. }
  747. }
  748.  
  749. @Override
  750. public void finish() {
  751.  
  752. }
  753.  
  754. }
  755. [/CODE]
  756.  
  757. In NPCHandler.java
  758. [CODE]
  759. } else if (npc.getId() == 3671) {
  760. player.getDialogueManager().startDialogue("Fortunato", npc.getId(), null);
  761. } else if (npc.getId() == 970) {
  762. player.getDialogueManager().startDialogue("Diango", npc.getId(), null);
  763. } else if (npc.getId() == 2634) {
  764. player.getDialogueManager().startDialogue("MissSchism", npc.getId(), null);
  765. } else if (npc.getId() == 922) {
  766. player.getDialogueManager().startDialogue("Aggie", npc.getId(), null);
  767. }
  768. [/CODE]
  769.  
  770.  
  771. In DialogueHandler.java
  772. [CODE]
  773. handledDialogues.put("Fortunato", (Class<Dialogue>) Class
  774. .forName(Fortunato.class.getCanonicalName()));
  775. handledDialogues.put("Diango", (Class<Dialogue>) Class
  776. .forName(Diango.class.getCanonicalName()));
  777. handledDialogues.put("MissSchism", (Class<Dialogue>) Class
  778. .forName(MissSchism.class.getCanonicalName()));
  779. handledDialogues.put("Aggie", (Class<Dialogue>) Class
  780. .forName(Aggie.class.getCanonicalName()));
  781. [/CODE]
  782.  
  783.  
  784. In Player.java
  785. [CODE]
  786. public boolean hasGoldencracker = false;
  787. [/CODE]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement