Esempio n. 1
0
 public Special createSpecialWithPizza(String name, PizzaSize size, double price)
     throws PizzaException {
   Special temp = new Special(name);
   if ((name.trim().equals(""))
       || (name == null)
       || (size == null)
       || !(parentSystem.getPizzaStore().getMenu().getPizzaSizes().contains(size))
       || (price < 0)
       || ((Double) price == null)) {
     throw new PizzaException(
         "Incorrect parameter createSpecialWithPizza(<"
             + name.trim()
             + ">:String, <"
             + size.getDesc()
             + ">:PizzaSize, <"
             + price
             + ">:double)");
   } else {
     // if special exists for size already, set that special's name to the new name.
     if (parentSystem.getPizzaStore().checkSpecialsForPizzaSize(size)) {
       temp = parentSystem.getPizzaStore().findSpecialBySize(size);
       temp.setSpecialName(name);
     } else {
       temp.addPizzaToSpecial(size, price);
       parentSystem.getPizzaStore().getSpecials().add(temp);
     }
   }
   return temp;
 }
Esempio n. 2
0
 public Special createSpecialWithItem(String name, MenuItem item, double price)
     throws PizzaException {
   Special temp = new Special(name.trim());
   if ((name.trim().equals(""))
       || (name == null)
       || (item == null)
       || (price < 0)
       || ((Double) price == null)) {
     throw new PizzaException(
         "Incorrect parameter createSpecialWithItem(<"
             + name.trim()
             + ">:String, <"
             + item.getName()
             + ">:MenuItem, <"
             + price
             + ">:double)");
   } else {
     // if special exists in system already, find it, replace the name
     if (parentSystem.getPizzaStore().checkSpecialsForItem(item)) {
       temp = parentSystem.getPizzaStore().findSpecialByItem(item);
       temp.setSpecialName(name);
       temp.setSpecialPrice(price);
     } else {
       temp.addItemToSpecial(item, price);
       parentSystem.getPizzaStore().getSpecials().add(temp);
     }
   }
   return temp;
 }
Esempio n. 3
0
 public Special addPizzaToSpecial(Special special, PizzaSize size, double price)
     throws PizzaException {
   if ((special == null)
       || !(parentSystem.getPizzaStore().getSpecials().contains(special))
       || (size == null)
       || !(parentSystem.getPizzaStore().getMenu().getPizzaSizes().contains(size))
       || (price < 0)
       || ((Double) price == null)) {
     throw new PizzaException(
         "Incorrect parameter addPizzaToSpecial(<"
             + special.getSpecialName()
             + ">:Special, <"
             + size.getDesc()
             + ">:PizzaSize, <"
             + price
             + ">:double)");
   } else {
     if (special.getSize() == null) {
       size.setPrice(price);
       special.addPizzaToSpecial(size, price);
       return special;
     } else {
       special.removePizzaSizeFromSpecial();
       special.addPizzaToSpecial(size, price);
       return special;
     }
   }
 }
Esempio n. 4
0
 public void removePizzaFromSpecial(Special special) throws PizzaException {
   if ((special == null) || !(parentSystem.getPizzaStore().getSpecials().contains(special))) {
     throw new PizzaException(
         "Incorrect parameter removePizzaFromSpecial(<" + special.getSpecialName() + ">:Special)");
   } else {
     special.removePizzaSizeFromSpecial();
   }
 }
Esempio n. 5
0
 public void modifySpecialPrice(Special special, double price) throws PizzaException {
   if (!(parentSystem.getPizzaStore().getSpecials().contains(special))
       || (special == null)
       || (special.getItem() == null)
       || (price < 0)
       || (Double) price == null) {
     throw new PizzaException(
         "Incorrect parameter removeItemFromSpecial(<" + special.getSpecialName() + ">:Special)");
   } else {
     special.setSpecialPrice(price);
   }
 }
  public static Method[] getSpecialMethods(Class<?> c) {
    ArrayList<Method> result = new ArrayList<Method>();
    for (Method m : c.getDeclaredMethods()) {
      Special s = m.getAnnotation(Special.class);
      if (s != null) {
        System.out.println(
            "Method "
                + m.getName()
                + " of class "
                + c.getName()
                + " is special "
                + s.howMuch()
                + ": "
                + s.why());
        result.add(m);
      }
    }

    return result.toArray(new Method[0]);
  }
Esempio n. 7
0
 public Special addItemToSpecial(Special special, MenuItem item, double price)
     throws PizzaException {
   if ((special == null)
       || !(parentSystem.getPizzaStore().getSpecials().contains(special))
       || (item == null)
       || !(parentSystem.getPizzaStore().getMenu().getMenuItems().contains(item))
       || (price < 0)
       || ((Double) price == null)) {
     throw new PizzaException(
         "Incorrect parameter addItemToSpecial(<"
             + special.getSpecialName()
             + ">:Special, <"
             + item.getDesc()
             + ">:MenuItem, <"
             + price
             + ">:double)");
   } else {
     // Given good params and doesn't already have item
     if (special.getItem() == null) {
       item.setPrice(price);
       special.addItemToSpecial(item, price);
       return special;
     }
     // Given good params but already has item. Create new special, add
     // to specials
     else {
       Special temp = new Special(special.getSpecialName());
       temp.addItemToSpecial(item, price);
       parentSystem.getPizzaStore().getSpecials().add(temp);
       return temp;
     }
   }
 }
Esempio n. 8
0
  public void sendDialogues(int dialogue, int npcId) {
    c.talkingNpc = npcId;
    switch (dialogue) {
      case 2244:
        sendNpcChat1(
            "Do you want me to teleport you somewhere?", c.talkingNpc, "Wizard's Teleport Options");
        c.nextChat = 2245;
        break;

      case 4321:
        c.getDH()
            .sendOption3(
                "@red@PvP Achievements", "@red@PvM Achievements", "@red@Misc Achievements");
        c.nextChat = 0;
        break;

        // First login starter message
      case 209:
        sendOption3("Mains Package", "Pures Package", "Skillers Package");
        c.dialogueAction = 209;
        c.nextChat = 0;
        break;

      case 2245:
        c.getDH()
            .sendOption4("Mithril Dragons", "Sea Troll Queen", "Barrelchest", "Skeletal Wyverns");
        c.dialogueAction = 2245;
        c.nextChat = 0;
        break;

      case 2246:
        sendOption5(
            "King Black Dragon",
            "Chaos Elemental (@red@Wilderness@bla@)",
            "Dagannoth Kings",
            "Godwars",
            "@blu@Next Page");
        c.dialogueAction = 120;
        c.dialogueId = 2246;
        c.teleAction = 3;
        break;

      case 2247:
        sendOption3(
            "Vet'ion (@red@Wilderness@bla@)",
            "Venenatis (@red@Wilderness@bla@)",
            "Scorpia (@red@Wilderness@bla@)");
        c.dialogueAction = 121;
        c.dialogueId = 2247;
        c.teleAction = 50;
        break;

      case 813: // Oneiromancer
        sendNpcChat2(
            "Hello, " + c.playerName + "",
            "Please come back and talk to me later.",
            c.talkingNpc,
            "Oneiromancer");
        c.nextChat = 0;
        break;

      case 817: // Watchtower Wizard
        sendNpcChat2(
            "Hello, " + c.playerName + "",
            "Would you like to teleport to the Rune Essence Mine?",
            c.talkingNpc,
            "Watchtower_Wizard");
        c.nextChat = 818;
        break;

      case 818:
        sendNpcChat2("Yes please", "No thank you", c.talkingNpc, "Watchtower_Wizard");
        c.nextChat = 819;

      case 819:
        sendNpcChat2(
            "As you wish " + c.playerName + "", "Off you go!", c.talkingNpc, "Watchtower_Wizard");
        c.getPA().movePlayer(2911, 4832, c.height);
        c.nextChat = 0;
        break;

      case 815: // Lady_Table
        sendNpcChat2(
            "Oh no...",
            "The mighty Zul'gar is coming! We need to be prepared",
            c.talkingNpc,
            "Lady_Table");
        c.nextChat = 0;
        break;

      case 69:
        c.getDH()
            .sendNpcChat1("Hello! Do you want to choose your clothes?", c.talkingNpc, "Thessalia");
        c.sendMessage("You must right-click Thessalia to change your clothes.");
        c.nextChat = 0;
        break;
      case 6969:
        c.getDH()
            .sendNpcChat2(
                "I'm not working right now sir.",
                "If you wan't me to work, talk to DragonScape give me a job.",
                c.talkingNpc,
                "Unemployed");
        c.sendMessage(
            "This NPC do not have an action, if you have any suggestion for this NPC, post on forums.");
        c.nextChat = 0;
        break;

      case 3515:
        sendOption2("Obtain Completionist cape", "Don't Obtain Completionist cape");
        c.dialogueAction = 3516;
        break;
      case 5555:
        c.getDH().sendOption5("Warrior", "Pker", "Assassin", "Boss Killer", "PvM Master");
        c.teleAction = -1;
        c.dialogueAction = 5555;
        break;
        /* LOGIN 1st TIME */
      case 769:
        c.getDH()
            .sendNpcChat2(
                "Welcome to DragonScape", "Select your package.", c.talkingNpc, "DragonScape");
        c.nextChat = 770;
        break;
      case 771:
        c.getDH()
            .sendOption3(
                "Master (levels & items)", "Zerker (levels & items)", "Pure (levels & items)");
        c.dialogueAction = 771;
        break;
        /* END LOGIN */

      case 666:
        c.getDH().sendOption3("Rock Crabs", "Cows", "Zombies");
        c.dialogueAction = 667;
        c.dialogueId = 666;
        c.teleAction = -1;
        break;

      case 669:
        c.getDH()
            .sendNpcChat2(
                "Remember, if you buy Slayer Helmet, it will give you always 5 extra bonus points",
                "and also some extra Slayer exp!",
                c.talkingNpc,
                "Vannaka");
        c.nextChat = 0;
        break;

        /* AL KHARID */
      case 1022:
        c.getDH().sendPlayerChat1("Can I come through this gate?");
        c.nextChat = 1023;
        break;

      case 1023:
        c.getDH()
            .sendNpcChat1(
                "You must pay a toll of 10 gold coins to pass.", c.talkingNpc, "Border Guard");
        c.nextChat = 1024;
        break;
      case 1024:
        c.getDH()
            .sendOption3(
                "Okay, I'll pay.", "Who does my money go to?", "No thanks, I'll walk around.");
        c.dialogueAction = 502;
        break;
      case 1025:
        c.getDH().sendPlayerChat1("Okay, I'll pay.");
        c.nextChat = 1026;
        break;
      case 1026:
        c.getDH().sendPlayerChat1("Who does my money go to?");
        c.nextChat = 1027;
        break;
      case 1027:
        c.getDH()
            .sendNpcChat2(
                "The money goes to the city of Al-Kharid.",
                "Will you pay the toll?",
                c.talkingNpc,
                "Border Guard");
        c.nextChat = 1028;
        break;
      case 1028:
        c.getDH().sendOption2("Okay, I'll pay.", "No thanks, I'll walk around.");
        c.dialogueAction = 508;
        break;
      case 1029:
        c.getDH().sendPlayerChat1("No thanks, I'll walk around.");
        c.nextChat = 0;
        break;

      case 1030:
        if (!c.getItems().playerHasItem(995, 10)) {
          c.getDH().sendPlayerChat1("I haven't got that much.");
          c.nextChat = 0;
        } else {
          c.getDH()
              .sendNpcChat1(
                  "As you wish. Don't get too close to the scorpions.",
                  c.talkingNpc,
                  "Border Guard");
          c.getItems().deleteItem2(995, 10);
          c.sendMessage("You pass the gate.");
          Special.movePlayer(c);
          Special.openKharid(c, c.objectId);
          c.turnPlayerTo(c.objectX, c.objectY);
          c.nextChat = 0;
        }
        break;

      case 1031:
        c.getDH()
            .sendNpcChat1(
                "As you wish. Don't get too close to the scopions.", c.talkingNpc, "Border Guard");
        c.getItems().deleteItem2(995, 10);
        c.sendMessage("You pass the gate.");
        Special.movePlayer(c);
        Special.openKharid(c, c.objectId);
        c.turnPlayerTo(c.objectX, c.objectY);
        c.nextChat = 0;
        break;

      case 185:
        sendNpcChat4(
            "Hello, do you want to enter lottery today?",
            "Entering costs 5M gp but you could win up to",
            "50M gp! You can enter up to 5 times per draw.",
            "Would you like to enter the lottery?",
            c.talkingNpc,
            "Lottery");
        c.nextChat = 186;
        break;
      case 186:
        sendOption2("Yes! I want to enter.", "Never mind.");
        c.dialogueAction = 186;
        break;

      case 22:
        sendOption2("Pick the flowers", "Leave the flowers");
        c.nextChat = 0;
        c.dialogueAction = 22;
        break;
        /** Bank Settings * */
      case 1013:
        c.getDH().sendNpcChat1("Good day. How may I help you?", c.talkingNpc, "Banker");
        c.nextChat = 1014;
        break;
      case 1014: // bank open done, this place done, settings done, to do
        // delete pin
        c.getDH()
            .sendOption3(
                "I'd like to access my bank account, please.",
                "I'd like to check my my P I N settings.",
                "What is this place?");
        c.dialogueAction = 251;
        break;
        /**
         * Note on P I N. In order to check your "Pin Settings. You must have enter your Bank Pin
         * first
         */
        /** I don't know option for Bank Pin * */
      case 1017:
        c.getDH()
            .sendStartInfo(
                "Since you don't know your P I N, it will be deleted in @red@3 days@bla@. If you",
                "wish to cancel this change, you may do so by entering your P I N",
                "correctly next time you attempt to use your bank.",
                "",
                "",
                false);
        c.nextChat = 0;
        break;
      case 0:
        c.talkingNpc = -1;
        c.getPA().removeAllWindows();
        c.nextChat = 0;
        break;
      case 1:
        sendStatement("You found a hidden tunnel! Do you want to enter it?");
        c.dialogueAction = 1;
        c.nextChat = 2;
        break;
      case 2:
        sendOption2("Yea! I'm fearless!", "No way! That looks scary!");
        c.dialogueAction = 1;
        c.nextChat = 0;
        break;
      case 3:
        sendNpcChat4(
            "Hello!",
            "My name is Vannaka and I am a master of the slayer skill.",
            "I can assign you a slayer task suitable to your combat level.",
            "Would you like a slayer task?",
            c.talkingNpc,
            "Vannaka");
        c.nextChat = 4;
        break;
      case 5:
        sendNpcChat4(
            "Hello adventurer...",
            "My name is Kolodion, the master of this mage bank.",
            "Would you like to play a minigame in order ",
            "to earn points towards recieving magic related prizes?",
            c.talkingNpc,
            "Kolodion");
        c.nextChat = 6;
        break;
      case 6:
        sendNpcChat4(
            "The way the game works is as follows...",
            "You will be teleported to the wilderness,",
            "You must kill mages to recieve points,",
            "redeem points with the chamber guardian.",
            c.talkingNpc,
            "Kolodion");
        c.nextChat = 15;
        break;
      case 11:
        sendNpcChat4(
            "Hello!",
            "My name is Vannaka and I am a master of the slayer skill.",
            "I can assign you a slayer task suitable to your combat level.",
            "Would you like a slayer task?",
            c.talkingNpc,
            "Vannaka");
        c.nextChat = 12;
        break;
      case 12:
        sendOption4("Easy Task", "Medium Task", "Hard Task", "Elite Task");
        c.teleAction = -1;
        c.dialogueAction = 5;
        c.nextChat = 669;
        break;
      case 13:
        sendNpcChat4(
            "Hello!",
            "My name is Vannaka and I am a master of the slayer skill.",
            "I see I have already assigned you a task to complete.",
            "Would you like me to give you an easier task?",
            c.talkingNpc,
            "Vannaka");
        c.nextChat = 14;
        break;
      case 14:
        sendOption2("Yes I would like an easier task.", "No I would like to keep my task.");
        c.teleAction = -1;
        c.dialogueAction = 6;
        c.nextChat = 0;
        break;
      case 15:
        sendOption2("Yes I would like to play", "No, sounds too dangerous for me.");
        c.dialogueAction = 7;
        break;
      case 16:
        sendOption2(
            "I would like to reset my barrows brothers.", "I would like to fix all my barrows");
        c.teleAction = -1;
        c.dialogueAction = 8;
        break;
      case 17:
        sendOption5("Air", "Mind", "Water", "Earth", "More");
        c.dialogueAction = 10;
        c.dialogueId = 17;
        c.teleAction = -1;
        break;
      case 18:
        sendOption5("Fire", "Body", "Cosmic", "Astral", "More");
        c.dialogueAction = 11;
        c.dialogueId = 18;
        c.teleAction = -1;
        break;
      case 19:
        sendOption5("Nature", "Law", "Death", "Blood", "More");
        c.dialogueAction = 12;
        c.dialogueId = 19;
        c.teleAction = -1;
        break;
      case 20:
        sendNpcChat4(
            "Haha, hello",
            "My name is Wizard Distentor! I am the master of clue scroll reading.",
            "I can read the magic signs of a clue scroll",
            "You got to pay me 100K for reading the clue though!",
            c.talkingNpc,
            "Wizard Distentor");
        c.nextChat = 21;
        break;
      case 21:
        sendOption2("Yes I would like to pay 100K", "I don't think so sir");
        c.dialogueAction = 50;
        break;

      case 56:
        sendStatement(
            "Hello " + c.playerName + ", you currently have " + c.pkPoints + " PK points.");
        break;

      case 57:
        c.getPA().sendFrame126("Teleport to shops?", 2460);
        c.getPA().sendFrame126("Yes.", 2461);
        c.getPA().sendFrame126("No.", 2462);
        c.getPA().sendFrame164(2459);
        c.dialogueAction = 27;
        break;

      case 1812:
        sendPlayerChat1("Hi Slave.");
        c.nextChat = 1813;
        break;
      case 1813:
        sendNpcChat1("F**k off, I'm Eazy's Slave.", c.talkingNpc, "Slave");
        c.nextChat = 0;
        break;

        /** Recipe for disaster - Sir Amik Varze */
      case 25:
        sendOption2("Yes", "No");
        c.rfdOption = true;
        c.nextChat = 0;
        break;
      case 26:
        sendPlayerChat1("Yes");
        c.nextChat = 28;
        break;
      case 27:
        sendPlayerChat1("No");
        c.nextChat = 29;
        break;

      case 29:
        c.getPA().removeAllWindows();
        c.nextChat = 0;
        break;
      case 30:
        sendNpcChat4(
            "Congratulations!",
            "You have defeated all Recipe for Disaster bosses",
            "and have now gained access to the Culinaromancer's chest",
            "and the Culinaromancer's item store.",
            c.talkingNpc,
            "Sir Amik Varze");
        c.nextChat = 0;
        // PlayerSave.saveGame(c);
        break;
      case 31:
        sendNpcChat4(
            "",
            "You have been defeated!",
            "You made it to round " + c.roundNpc,
            "",
            c.talkingNpc,
            "Sir Amik Varze");
        c.roundNpc = 0;
        c.nextChat = 0;
        break;

        /** Horror from the deep */
      case 32:
        sendNpcChat4(
            "",
            "Would you like to start the quest",
            "Horror from the Deep?",
            "",
            c.talkingNpc,
            "Jossik");
        c.nextChat = 33;
        break;
      case 33:
        sendNpcChat4(
            "",
            "You will have to be able to defeat a level-100 ",
            "Dagannoth mother with different styles of attacks.",
            "",
            c.talkingNpc,
            "Jossik");
        c.nextChat = 34;
        break;
      case 34:
        sendOption2("Yes I am willing to fight!", "No thanks, I am not strong enough.");
        c.horrorOption = true;
        break;
      case 35:
        sendPlayerChat1("Yes I am willing to fight!");
        c.nextChat = 37;
        break;
      case 36:
        sendPlayerChat1("No thanks, I am not strong enough.");
        c.nextChat = 0;
        break;
      case 37:
        c.horrorFromDeep = 1;
        c.height = (c.playerId * 4);
        c.getPA().movePlayer(2515, 10008, c.height);
        Server.npcHandler.spawnNpc(c, 1351, 2521, 10024, c.height, 0, 100, 16, 75, 75, true, true);
        c.getPA().removeAllWindows();
        c.getPA().loadQuests();
        c.inHfd = true;
        break;

        /** Desert Treasure dialogue */
      case 41:
        sendNpcChat4(
            "",
            "Do you want to start the quest",
            "Desert treasure?",
            "",
            c.talkingNpc,
            "Archaeologist");
        c.nextChat = 42;
        break;
      case 42:
        sendNpcChat4(
            "",
            "You will have to fight four high level bosses,",
            "after each boss you will be brought back",
            "here to refill your supplies if it is needed.",
            c.talkingNpc,
            "Archaeologist");
        c.nextChat = 43;
        break;
      case 43:
        sendOption2("Yes I want to fight!", "No thanks, I am not ready.");
        c.dtOption = true;
        break;
      case 44:
        sendPlayerChat1("Yes I want to fight!");
        c.nextChat = 51;
        break;
      case 45:
        sendPlayerChat1("No thanks, I am not ready.");
        c.nextChat = 0;
        break;

      case 48:
        sendOption2("Yes, I am ready!", "No, I am not ready.");
        c.dtOption2 = true;
        break;
      case 49:
        sendPlayerChat1("Yes, I am ready!");
        c.nextChat = 52;
        break;
      case 50:
        sendPlayerChat1("No, I am not ready.");
        c.nextChat = 0;
        break;
      case 51:
        c.desertT++;
        c.height = (c.playerId * 4);
        c.getPA().movePlayer(3310, 9376, c.height);
        Server.npcHandler.spawnNpc(c, 1977, 3318, 9376, c.height, 0, 130, 40, 70, 90, true, true);
        c.getPA().removeAllWindows();
        c.getPA().loadQuests();
        c.inDt = true;
        break;

        /** Cook's Assistant */
      case 100:
        sendNpcChat1("What am I to do?", c.talkingNpc, "Cook");
        c.nextChat = 101;
        break;
      case 101:
        sendOption4(
            "What`s wrong?", "Can you make me a cake?", "You don`t look very happy.", "Nice hat!");
        c.caOption4a = true;
        c.caPlayerTalk1 = true;
        break;
      case 102:
        sendPlayerChat1("What`s wrong?");
        c.nextChat = 103;
        break;
      case 103:
        sendNpcChat3(
            "Oh dear, oh dear, oh dear, Im in a terrible terrible",
            "mess! It`s the Duke`s birthday today, and I should be",
            "making him a lovely big birthday cake.",
            c.talkingNpc,
            "Cook");
        c.nextChat = 104;
        break;
      case 104:
        sendNpcChat4(
            "I`ve forgotten to buy the ingredients. I`ll never get",
            "them in time now. He`ll sack me! What will I do? I have",
            "four children and a goat to look after. Would you help",
            "me? Please?",
            c.talkingNpc,
            "Cook");
        c.nextChat = 105;
        break;
      case 105:
        sendOption2(
            "Im always happy to help an cook in distress.", "I can`t right now, Maybe later.");
        c.caOption2 = true;
        break;
      case 106:
        c.cooksA++;
        c.getPA().loadQuests();
        sendPlayerChat1("Yes, I`ll help you.");
        c.nextChat = 107;
        break;
      case 107:
        sendNpcChat2(
            "Oh thank you, thank you. I need milk, an egg and",
            "flour. I`d be very grateful if you can get them for me.",
            c.talkingNpc,
            "Cook");
        c.nextChat = 108;
        break;
      case 108:
        sendOption4(
            "Where do I find some flour.",
            "How about some milk?",
            "And eggs? where are they found?",
            "Actually, I know where to find these stuff.");
        c.caOption4c = true;
        c.caOption4b = true;
        break;
      case 109:
        sendNpcChat1("How are you getting on with finding the ingredients?", c.talkingNpc, "Cook");
        c.nextChat = 110;
        break;
      case 110:
        sendPlayerChat1("Here's a bucket of milk.");
        c.getItems().deleteItem(1927, 1);
        c.nextChat = 111;
        break;
      case 111:
        sendPlayerChat1("Here's a pot of flour.");
        c.getItems().deleteItem(1933, 1);
        c.nextChat = 112;
        break;
      case 112:
        c.cooksA++;
        c.getPA().loadQuests();
        sendPlayerChat1("Here's a fresh egg.");
        c.getItems().deleteItem(1944, 1);
        c.nextChat = 113;
        break;
      case 113:
        sendNpcChat2(
            "You've brough me everything I need! I am saved!", "Thank you!", c.talkingNpc, "Cook");
        c.nextChat = 0;
        break;
        /*
         * case 114: sendPlayerChat1("So do I get to go the Duke's Party?");
         * c.nextChat = 115; break; case 115:
         * sendNpcChat2("I'm afraid not, only the big cheeses get to dine with the"
         * , "Duke.", c.talkingNpc, "Cook"); c.nextChat = 116; break; case 116:
         * sendPlayerChat2
         * ("Well, maybe one day I'll be important enough to sit on",
         * "the Duke's table."); c.nextChat = 117; break; case 117:
         * sendNpcChat1("Maybe, but I won't be holding my breath.",
         * c.talkingNpc, "Cook"); c.cooksA++; c.cooksA++;
         * c.getPA().loadQuests(); c.getAA2().COOK2(); c.nextChat = 0; break;
         */

        // ** Getting Items - Cook's Assistant **//
      case 118:
        sendNpcChat3(
            "There`s a mill fairly close, Go North then West.",
            "Mill Lane Mill is just off the road to Draynor. I",
            "usually get my flour from there.",
            c.talkingNpc,
            "Cook");
        c.nextChat = 119;
        break;
      case 119:
        sendNpcChat2(
            "Talk to Millie, she`ll help, she`s a lovely girl and a fine",
            "Miller.",
            c.talkingNpc,
            "Cook");
        c.nextChat = 108;
        break;
      case 120:
        sendNpcChat2(
            "There is a cattle field on the other side of the river,",
            "just across the road from the Groats` Farm.",
            c.talkingNpc,
            "Cook");
        c.nextChat = 121;
        break;
      case 121:
        sendNpcChat3(
            "Talk to Gillie Groats, she looks after the Dairy Cows -",
            "She`ll tell you everything you need to know about",
            "milking cows!",
            c.talkingNpc,
            "Cook");
        c.nextChat = 108;
        break;
      case 122:
        sendNpcChat2(
            "I normally get my eggs from the Groats` farm on the",
            "other side of the river.",
            c.talkingNpc,
            "Cook");
        c.nextChat = 123;
        break;
      case 123:
        sendNpcChat1("But any chicken should lay eggs.", c.talkingNpc, "Cook");
        c.nextChat = 108;
        break;
      case 124:
        sendPlayerChat1("Actually, I know where to find these stuff");
        c.nextChat = 0;
        break;
      case 125:
        sendPlayerChat1("You're a cook why, don't you bake me a cake?");
        c.nextChat = 126;
        break;
      case 126:
        sendNpcChat1("*sniff* Dont talk to me about cakes...", c.talkingNpc, "Cook");
        c.nextChat = 102;
        break;
      case 127:
        sendPlayerChat1("You don't look very happy.");
        c.nextChat = 128;
        break;
        /*
         * case 128: sendNpcChat2(
         * "No, I`m not. The world is caving in around me - I am",
         * "overcome by dark feelings of impending doom.", c.talkingNpc,
         * "Cook"); c.nextChat = 129; break;
         */
      case 129:
        sendNpcChat4(
            "Hello! Do you want me to Prestige your stats?",
            "People talk to me to reset their maxed",
            "combat skills! You get one Prestige point per prestige.",
            "You can also check my shop.",
            791,
            "Master of Prestige");
        c.nextChat = 130;
        return;

        /*
         * case 129:
         * c.getDH().sendOption5("Beginner Mode (@red@Normal XP Rate@bla@)",
         * "Insane Mode (@red@350 XP per hit@bla@)",
         * "Legend Mode (@red@100 XP per hit@bla@)", "No", "No");
         * c.dialogueAction = 28; c.dialogueId = 38; break;
         */

      case 1200:
        sendStatement("@blu@Are you ready to visit the chest room?");
        c.nextChat = 1201;
        c.dialogueAction = 1200;
        break;
      case 1201:
        sendOption2(
            "Yes, I've killed all the other brothers!", "No, I still need to kill more brothers");
        c.nextChat = 0;
        break;
      case 130:
        sendOption2("I wish to access the Prestige Shop!", "Prestige all your skills!");
        c.nextChat = 0;
        Prestige.prestigeChat = 1;
        return;
        /*
         * case 129: sendOption2("What's wrong?",
         * "I'd take off the rest of the day if I were you."); c.caOption2a
         * = true; break; case 130: sendPlayerChat1("Nice hat!"); c.nextChat
         * = 131; break;
         */
      case 131:
        sendNpcChat1(
            "Err thank you. It`s a pretty ordinary cook`s hat really.", c.talkingNpc, "Cook");
        c.nextChat = 132;
        break;
      case 132:
        sendPlayerChat1("Still, suits you. The trousers are pretty special too.");
        c.nextChat = 133;
        break;
      case 133:
        sendNpcChat1("It`s all standard cook`s issue uniform...", c.talkingNpc, "Cook");
        c.nextChat = 134;
        break;
      case 134:
        sendPlayerChat2(
            "The whole hat, apron, stripey trousers ensemble -",
            "it works. It makes you look like a real cook.");
        c.nextChat = 135;
        break;
      case 135:
        sendNpcChat2(
            "I am a real cook!, I haven`t got time to be chatting",
            "about Culinary Fashion. I`m in desperate need of help.",
            c.talkingNpc,
            "Cook");
        c.nextChat = 102;
        break;
      case 136:
        sendPlayerChat1("I'd take off the rest of the day if I were you.");
        c.nextChat = 137;
        break;
      case 137:
        sendNpcChat2(
            "No, that`s the worst thing I could do. I`d get in terrible",
            "trouble.",
            c.talkingNpc,
            "Cook");
        c.nextChat = 138;
        break;
      case 138:
        sendPlayerChat1("Well maybe you need to take a holiday...");
        c.nextChat = 139;
        break;
      case 139:
        sendNpcChat2(
            "That would be nice but the duke doesn`t allow holidays",
            "for core staff.",
            c.talkingNpc,
            "Cook");
        c.nextChat = 140;
        break;
      case 140:
        sendPlayerChat2("Hmm, why not run away to the sea and start a new", "life as a Pirate.");
        c.nextChat = 141;
        break;
      case 141:
        sendNpcChat2(
            "My wife gets sea sick, and i have an irrational fear of",
            "eyepatches. I don`t see it working myself.",
            c.talkingNpc,
            "Cook");
        c.nextChat = 142;
        break;
      case 142:
        sendPlayerChat1("I`m afraid I've run out of ideas.");
        c.nextChat = 143;
        break;
      case 143:
        sendNpcChat1("I know I`m doomed.", c.talkingNpc, "Cook");
        c.nextChat = 102;
        break;
      case 144:
        sendNpcChat1("Nice day, isn't it?", c.talkingNpc, "");
        c.nextChat = 0;
        break;

        /*
         * Doric's Quest
         */

      case 300:
        sendNpcChat1("Why hello there adventurer, how can I help you?", c.talkingNpc, "Doric");
        c.nextChat = 301;
        break;

      case 301:
        sendOption3("I'm looking for a quest.", "Nice place you got here.", "Just passing by.");
        c.doricOption = true;
        break;

      case 299:
        sendPlayerChat1("I'm just passing by.");
        c.nextChat = 302;
        break;

      case 302:
        sendNpcChat1("Very well, so long.", c.talkingNpc, "Doric");
        c.nextChat = 0;
        break;

      case 303:
        sendPlayerChat1("Nice place you got here.");
        c.nextChat = 304;
        break;

      case 304:
        sendNpcChat1("Why thank you kind sir.", c.talkingNpc, "Doric");
        c.nextChat = 305;
        break;

      case 305:
        sendPlayerChat1("My pleasure.");
        c.nextChat = 0;
        break;

      case 306:
        sendPlayerChat1("I'm looking for a quest.");
        c.nextChat = 307;
        break;

      case 307:
        sendNpcChat2(
            "A quest you say? Hmm...", "Can you run me a quick errand?", c.talkingNpc, "Doric");
        c.nextChat = 308;
        break;

      case 308:
        sendOption2("Of course.", "I need to go.");
        c.doricOption2 = true;
        break;

      case 309:
        sendPlayerChat1("I need to go.");
        c.nextChat = 0;
        break;

      case 310:
        sendPlayerChat1("Of course!");
        c.nextChat = 311;
        break;

      case 311:
        sendNpcChat3(
            "Very good! I need some materials for a new ",
            "pickaxe I'm working on, is there any way you ",
            "could go get these?",
            c.talkingNpc,
            "Doric");
        c.nextChat = 312;
        break;

      case 312:
        sendPlayerChat1("Sure, what materials?");
        c.nextChat = 313;
        break;

      case 313:
        sendNpcChat3(
            "6 lumps of clay,", "4 copper ores,", "and 2 iron ores.", c.talkingNpc, "Doric");
        c.nextChat = 314;
        break;

      case 314:
        sendPlayerChat1("Sounds good, I will be back soon!");
        c.nextChat = 315;
        c.doricQuest = 5;
        break;

      case 315:
        sendNpcChat1("Thank you adventurer, hurry back!", c.talkingNpc, "Doric");
        c.nextChat = 0;
        break;

      case 316:
        sendNpcChat1("Have you got all the materials yet?", c.talkingNpc, "Doric");
        c.nextChat = 317;
        break;

      case 317:
        sendPlayerChat1("Not all of them.");
        c.nextChat = 0;
        break;

      case 318:
        sendNpcChat1("Have you got all the materials yet?", c.talkingNpc, "Doric");
        c.nextChat = 319;
        break;

      case 319:
        sendPlayerChat1("Yep! Right here.");
        c.nextChat = 320;
        c.getItems().deleteItem(434, 6);
        c.getItems().deleteItem(436, 4);
        c.getItems().deleteItem(440, 2);
        break;

      case 320:
        sendNpcChat2(
            "Thank you so much adventurer, heres a reward",
            "for any hardships you may have encountered.",
            c.talkingNpc,
            "Doric");
        c.nextChat = 0;
        c.sendMessage("Congradulations, you have completed Doric's Quest!");
        break;

      case 321:
        sendNpcChat1("Welcome to my home, feel free to use my anvils!", c.talkingNpc, "Doric");
        c.nextChat = 0;
        break;
    }
  }