Package games.stendhal.server.entity.npc.behaviour.adder

Examples of games.stendhal.server.entity.npc.behaviour.adder.BuyerAdder


      @Override
      protected void createDialog() {
        addGreeting("Howdy! You've come a very long way to be here. Welcome.");
        addJob("I buy good, quality cloaks. Can't get these women to wear them yet, but I am trying.");
        addHelp("Not much I can really help you with unless you have some of the cloaks I am looking for.");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyamazoncloaks")), false);
        addOffer("I hate to say it, but look at the blackboard over yonder to see my prices and what I buy.");
        addQuest("There's not a thing you can do for me, thanks.");
        addGoodbye("Bye. Don't you just HATE this place? ;) Say hey to the amazoness giant while you are here.");

      }
View Full Code Here


  }

  public void behave(final String method, final Map<String, Integer> items)
      throws NoSuchMethodException {
    if ("buy".equalsIgnoreCase(method)) {
      new BuyerAdder().add(this, new BuyerBehaviour(items), true);
    } else if ("sell".equalsIgnoreCase(method)) {
      new SellerAdder().addSeller(this, new SellerBehaviour(items));
    } else {
      throw new NoSuchMethodException("Behaviour.add(" + method
          + ") not supported.");
View Full Code Here

        addGreeting("Welcome to the Kobold City of Wofol. I hope you come in peace.");
        addJob("I run a buying and selling #trade with kobolds - or whoever else passes by. I am one of the few Kobolds who can speak with non-Kobolds.");
        addHelp("I #deal in all sorts of items.");
        addQuest("Try Alrak the mountain dwarf who lives here with the kobolds. He'd probably have more than one task to give you.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("sellstuff2")), false);
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buystuff2")), false);
        addOffer("Please look at the each blackboard on the wall to see what I buy and sell at the moment.");
        addGoodbye("Bye, and please don't attack too many of my friends.");

      }
    };
View Full Code Here

        addGreeting("Welcome to this forest, south of Or'ril river.");
        addJob("I'm a wood cutter by trade. Can you #offer me any axes?");
        addHelp("You can sometimes collect wood that's lying around the forest. Oh, and I take #offers of any good axe you might sell.");
        addOffer("My axes become blunt fast. Please check the sign I made outside my lodge to see the axes I buy.");
        addQuest("What's that you say? I don't need anything, though my young friend Sally over the river might need a hand.");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyaxe")), false);
         addGoodbye("Bye.");
      }
    };

    npc.setDescription("You see Woody, an outdoorsy-looking fellow.");
View Full Code Here

        addGreeting("Hi!");
        addJob("I'm a bar maid. But we've run out of food to feed our customers, can you #offer any?");
        addHelp("If you could #offer any meat, ham or cheese to restock our larders I'd be grateful.");
        addQuest("Just #offers of food is enough, thank you.");
         addGoodbye("Bye bye!");
         new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyfood")), true);
      }
    };
    npc.setDescription("You see a pretty young bar maid.");
    npc.setEntityClass("woman_004_npc");
    npc.setPosition(8, 27);
View Full Code Here

        addJob("By the Powers! I be buyin. You be sellin?");
        addReply("yes", "Well, shiver me timbers! Check out that blackboard o'er thar fer me prices an' what i be buyin");
        addReply("aye", "Well, shiver me timbers! Check out that blackboard o'er thar fer me prices an' what i be buyin");
        addReply("no", "You lily-livered scallywag! Why ye be wastin me time?");
        addHelp("An' just what do ya think a buccanneer such as meself could possibly help ye with?");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyfishes")), false);
        addOffer("Check out that thar blackboard fer how many dubloons I be givin.");
        addQuest("Ye don't ha'e the guts ta do whut I need done.");
        addGoodbye("Arrgh, avast an' be gone with ye!");

      }
View Full Code Here

      @Override
      protected void createDialog() {
        addGreeting();
        addJob("I buy quality armor at a fair price.");
        addHelp("Look at the blackboard for what I buy and prices.");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buykirdneharmor")), false);
        addOffer("Look at the blackboard to see my prices and what I buy.");
        addQuest("I have no task for you.");
        addGoodbye("If you ever find a tooth from the mythical black dragon, please let me know.");

      }
View Full Code Here

          addReply("own", "What? Why you couldn't even begin to come up with enough money for that!");
          // see games.stendhal.server.maps.quests.mithrilcloak.GettingTools for further behaviour
          addReply("buy", "I don't sell anything but you can look at my blackboard for what I buy. Or ask about #specials.");
          addReply("YOU", "Yes, I am talking to YOU! Who else would I be talking to!");

        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyoddsandends")), false);         
      }};
     
      npc.setPosition(25, 32);
      npc.setEntityClass("olddwarfnpc");
      zone.add(npc);   
View Full Code Here

        addReply(ConversationPhrases.NO_MESSAGES, "Good! You wouldn't have fit in here anyway.");
        addJob("I'm looking after the weaponry here. We have plenty of ammunition but running low on armor. I see you have some you might #offer though.");
        addHelp("I buy armor for the barracks here, make me an #offer. If you'll keep it quiet, I'll even sell you ammunition.");
        addOffer("Please look at the blackboard by the shields rack to see what we are short of, and what we pay. I also sell a variety of arrows.");
        addQuest("Oh, thanks but no thanks. I don't need anything.");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyrare3")), false);
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("sellarrows")), false);
        addGoodbye("Goodbye, comrade.");
      }
    };
View Full Code Here

      @Override
      protected void createDialog() {
        addGreeting();
        addJob("I'm the supervisor responsible for maintaining the mine-cart rails in this mine. But, ironically, we ran out of cast iron to fix them with! Maybe you can #offer me some?");
        addHelp("If you want some good advice, you'll not go further south; there's an evil dragon living down there!");
        new BuyerAdder().add(this, new BuyerBehaviour(shops.get("buyiron")), true);
        addGoodbye("Farewell - and be careful: the other dwarves don't like strangers running around here!");
      }
    };

    loretta.setDescription("You see Loretta, an elderly female dwarf. She is working on the mine-cart rails.");
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.behaviour.adder.BuyerAdder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.