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

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


    }
  }

  public void behave(final String method, final int cost) throws NoSuchMethodException {
    if ("heal".equalsIgnoreCase(method)) {
      new HealerAdder().addHealer(this, cost);
    } else {
      throw new NoSuchMethodException("Behaviour.add(" + method
          + ") not supported.");
    }
  }
View Full Code Here


         * addHelp("You may want to buy some potions or do some #task
         * for me.");
         */
        addHelp("I can #heal you, and I can #offer you powerful #scrolls that are #magic.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("scrolls")));
        new HealerAdder().addHealer(this, 250);
        add(
                ConversationStates.ATTENDING,
                Arrays.asList("magic", "scroll", "scrolls"),
                null,
                ConversationStates.ATTENDING,
View Full Code Here

        // do not walk so that admins can
        // idle here 24/7 without using cpu and bandwith.
      }

    };
    new HealerAdder().addHealer(npc, 0);
    npc.setPosition(16, 7);
    npc.setDirection(Direction.DOWN);
    npc.setEntityClass("beautifulgirlnpc");
    zone.add(npc);
  }
View Full Code Here

      @Override
      protected void createDialog() {
              addGreeting("Greetings. Can I #help you?");
        addJob("I practise alchemy and have the ability to #heal others.");
        new HealerAdder().addHealer(this, 500);
        addReply("magical", "We're all capable of magic here. There are different kinds, of course. My favourite is the Sunlight Spell to keep grass and flowers growing underground.");
        addHelp("I have #magical powers to #heal your ailments.");
        addQuest("I need nothing, thank you.");
         addGoodbye("Fare thee well.");
      }
View Full Code Here

            "concoct", "mega potion", requiredResources, 2 * 60);

        new ProducerAdder().addProducer(this, behaviour,
        "Greetings, young one. I #heal and I #help.");
        // charge (1*the player level + 1) to heal
        new HealerAdder().addHealer(this, -1);
      }
    };
    npc.setEntityClass("grandadnpc");
    npc.setDescription("You see ancient and wizened Valo. He is surrounded by some kind of glowing light.");
    npc.setPosition(26, 5);
View Full Code Here

        nodes.add(new Node(18, 46));
        setPath(new FixedPath(nodes, true));
      }
    };
    new SellerAdder().addSeller(npc, new SellerBehaviour(SingletonRepository.getShopList().get("healing")));
    new HealerAdder().addHealer(npc, 0);
    npc.setPosition(5, 46);
    npc.setDescription("You see kind Carmen. She looks like someone you could ask for help.");
    npc.setEntityClass("welcomernpc");
    zone.add(npc);
  }
View Full Code Here

        addGreeting();
        addJob("My special powers help me to heal wounded people. I also sell potions and antidotes.");
        addHelp("I can #heal you here for a cost, or you can take one of my prepared medicines with you on your travels; just ask for an #offer.");
        new SellerAdder().addSeller(this, new SellerBehaviour(shops.get("healing")));
        // charge (2*the player level + 1) to heal
        new HealerAdder().addHealer(this, -2);
        addGoodbye();
      }
    };

    npc.setEntityClass("welcomernpc");
View Full Code Here

      }

      @Override
      protected void createDialog() {
        addGreeting("Welcome to the church!");
        new HealerAdder().addHealer(this, 1000);
        addJob("I am the priest, and I will #marry those who have gold rings to exchange and are engaged.");
        addHelp("I can help you #marry your loved one. But you must be engaged under the supervision of Sister Benedicta, and have a #ring to give your partner.");
        addQuest("I will #marry people who were engaged in the proper manner. Speak to Sister Benedicta if you are not engaged yet. And remember each to bring a wedding #ring!");
        addGoodbye("Go well, and safely.");
        addReply("ring", "Once you are engaged, you can go to Ognir who works here in Fado to get your wedding rings made. I believe he also sells engagement rings, but they are purely for decoration. How wanton!");
View Full Code Here

TOP

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

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.