Package games.stendhal.server.entity.npc.action

Examples of games.stendhal.server.entity.npc.action.DropItemAction


        "So I can not give you the cloak! First the payment!",
        null);
   
    final List<ChatAction> actions = new LinkedList<ChatAction>();
    actions.add(new IncreaseXPAction(200));
    actions.add(new DropItemAction("steel arrow",20));
    actions.add(new ChatAction() {
      public void fire(final Player player, final Sentence sentence, final EventRaiser npc) {
        final Item cloak = SingletonRepository.getEntityManager().getItem("dwarf cloak");
        cloak.setInfoString("Phalk");
        cloak.setDescription("You see a brand new dwarf cloak, with the name 'Phalk' sewn into the label by Wrvil.");
View Full Code Here


        "Bah! I will not give you the armor without payment!",
        null);
   
    final List<ChatAction> actions = new LinkedList<ChatAction>();
    actions.add(new IncreaseXPAction(200));
    actions.add(new DropItemAction("gold bar",20));
    actions.add(new ChatAction() {
      public void fire(final Player player, final Sentence sentence, final EventRaiser npc) {
        final Item armor = SingletonRepository.getEntityManager().getItem("golden armor");
        armor.setInfoString("Phalk");
        armor.setDescription("You see a shining golden armor, with the name 'Phalk' inscribed inside.");
View Full Code Here

      ConversationStates.ATTENDING,
      "Greetings, finally you have brought me all ingredients that I need to summon the magic candles. Now you " +
      "can #start with the practical test.",
      new MultipleActions(
          new SetQuestAction(QUEST_SLOT,"candles_done"),
          new DropItemAction("beeswax", 6),
          new DropItemAction("iron", 2),
          new IncreaseXPAction(4000),
          new IncreaseKarmaAction(10)));

    // player returned after climbing the tower partially. reset status to candles done and start again
    npc.add(ConversationStates.IDLE, ConversationPhrases.GREETING_MESSAGES,
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.action.DropItemAction

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.