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

Examples of games.stendhal.server.entity.npc.behaviour.impl.HealerBehaviour.heal()


            false,
            ConversationStates.IDLE,
            null, new ChatAction() {
              public void fire(final Player player, final Sentence sentence, final EventRaiser raiser) {
                if (player.drop("money", healerBehaviour.getCharge(currentBehavRes, player))) {
                  healerBehaviour.heal(player);
                  raiser.say("All better now, everyone better. I love you, I do. Bye bye.");
                } else {
                  raiser.say("Pff, no money, no heal. Bye.");
                }
View Full Code Here


                // characters
                // (low atk, low def AND low level)
                raiser.say("Sorry, but you have a bad aura, so that I am unable to heal you right now.");
              } else {
                raiser.say("There, you are healed. How else may I help you?");
                healerBehaviour.heal(player);
              }
            }

          }
    });
View Full Code Here

            if (cost < 0) {
              cost = player.getLevel() * Math.abs(cost) + 1;
            }
            if (player.drop("money",
                cost)) {
              healerBehaviour.heal(player);
              raiser.say("There, you are healed. How else may I help you?");
            } else {
              raiser.say("I'm sorry, but it looks like you can't afford it.");
            }

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.