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

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


        addGreeting("Greetings, friend.");
        addHelp("There is a swamp east of this mountain where you might get some rare weapons.");
        addJob("I'm much too old for hard work. I'm just living here as a hermit.");
        addGoodbye("It was nice to meet you.");
        // will buy black items once the Ultimate Collector quest is completed
        new BuyerAdder().add(this, new QuestCompletedBuyerBehaviour("ultimate_collector", "I'll buy black items from you when you have completed each #challenge I set you.", shops.get("buyblack")), false);
      }
      /* remaining behaviour is defined in:
       * maps.quests.WeaponsCollector,
       * maps.quests.WeaponsCollector2 and
       * maps.quests.UltimateCollector. */
 
View Full Code Here


      @Override
      protected void createDialog() {
          //addGreeting("Welcome to this forest, south of Or'ril river.");
              addJob("I'm a craftsman. One day I hope to craft such items as the green elves can make.");
        addHelp("My friend Orchiwald is a great story teller, he would speak with you about the albino elves and how we come to be here.");
        new BuyerAdder().add(this, new QuestCompletedBuyerBehaviour("elvish_armor", "I'm not able to buy anything from you right now.", shops.get("buyelvish")), false);
         addGoodbye("Bye.");
      }
    };

    npc.setDescription("You see Lupos, an albino elf.");
View Full Code Here

        addReply(
            "scarlet",
            "The Scarlet Army is a special division of Kalavan's Army. They all wear a red armor.");
        addHelp("Have you seen this, no armor left here. At the moment I'm not able to serve the #Scarlet Army!");
        addOffer("Bring me some armor and I pay you out!");
        new BuyerAdder().add(this, new BuyerBehaviour(SingletonRepository.getShopList().get("buyred")), false);
        addGoodbye("Have a nice day!");
      }
    };

    storageNPC.setEntityClass("scarletarmynpc");
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.