Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.mark.quest.npcs;
- import net.mark.module.model.impl.BubbleBuilder;
- import net.mark.module.model.impl.ModuleListener;
- import net.mark.module.model.impl.actor.NPCManifest;
- import net.mark.module.model.impl.options.MenuOption;
- /**
- *
- * @author Bl0dzy
- * @version 0.1
- * @Date 25 Feb 2019/16:45:43
- */
- public class Cedric extends ModuleListener {
- @NPCManifest(ids = { 357 }, useWith= {50, 141})
- public void cedricDrunk() {
- if (getStage() == 4) {
- BubbleBuilder.builder().affected(player).item(getItem().getID()).build().process();
- dialog(true, "Cedric, here, drink some water");
- dialog("oh yes, my head's starting to spin",
- "gulp...gulp");
- message("Brother Cedric drinks the water");
- dialog("aah, that's better");
- message("you throw the excess water over brother Cedric");
- dialog("now i just need to fix...",
- "..this cart..", "..and we can go party",
- ".could you help?");
- setStage(5);
- options(getNpc(), new MenuOption("No, i've helped enough monks today", () -> {
- delay(1200);
- dialog("in that case i'd better drink..",
- "..more wine. It help's me think.");
- }), new MenuOption("Yes i'd be happy to", () -> {
- delay(1200);
- dialog("i need some wood");
- dialog(true, "here you go..",
- "I've got some wood");
- dialog("well done, now i'll fix this cart",
- "you head back to Brother Omad",
- "Tell him i'm on my way", "I won't be long");
- setStage(6);
- }));
- }
- }
- @NPCManifest(ids=357) // Brother Cedric
- public void brotherCedric() {
- if (isComplete(QuestType.MONKS_FRIEND.ordinal())) {
- dialog("Brother Oman sends you his thanks",
- "He won't be in a fit state to thank you in person any more");
- return;
- }else if (getStage() == 0 || getStage() == 1 || getStage() == 2) {
- dialog(true, "Hello");
- dialog("honey,money,woman,wine..");
- dialog(true, "Are you ok?");
- dialog(" yesshh...hic up...beautiful..");
- dialog(true, "take care old monk");
- dialog("la..di..da..hic..up..");
- message("The monk has had too much to drink");
- return;
- }else if (getStage() == 3) {
- dialog(true, "Brother Cedric are you okay?");
- dialog("yeesshhh, i'm very, very....",
- "..drunk..hic..up..");
- dialog(true, "brother Omad needs the wine..",
- "..for the party");
- dialog("oh dear, oh dear ",
- "I knew I had to do something",
- "pleashhh, find me some water",
- "once i'm sober i'll help you..",
- "..take the wine back.");
- setStage(4);
- return;
- }else if (getStage() == 4) {
- dialog(true, "Are you okay?");
- dialog("...hic up..oh my head..", "..I need some water.");
- return;
- }else if (getStage() == 5) {
- dialog(true, "Hello Cedric");
- dialog("want to help me fix the cart?");
- options(getNpc(), new MenuOption("Yes i'd be happy to", () -> {
- delay(1200);
- dialog("i need some wood");
- if (remove(new Item(14,1))) {
- dialog(true, "here you go..", "I've got some wood");
- dialog("well done, now i'll fix this cart",
- "you head back to Brother Omad",
- "Tell him i'm on my way", "I won't be long");
- setStage(6);
- } else {
- }
- }), new MenuOption("No, not really", () -> {
- delay(1200);
- }));
- }else if (getStage() == 6) {
- dialog(true, "Hello Cedric");
- dialog("hi, i'm almost done here",
- "go tell Omad that I..", "..won't be long");
- return;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement