java.lang.Object
games.stendhal.server.entity.npc.behaviour.adder.HealerAdder

public class HealerAdder extends Object
  • Constructor Details

    • HealerAdder

      public HealerAdder()
  • Method Details

    • addHealer

      public void addHealer(SpeakerNPC npc, int cost)

      Makes this NPC a healer, i.e. someone who sets the player's hp to the value of their base hp.

      Player killers are not healed at all even by healers who charge.

      Too strong players (atk >35 or def > 35) cannot be healed for free.

      Players who have done PVP in the last 2 hours cannot be healed free, unless they are very new to the game.

      Parameters:
      npc - SpeakerNPC
      cost - The price which can be positive for a lump sum cost, 0 for free healing or negative for a price dependent on level of player.
    • addHealer

      public void addHealer(SpeakerNPC npc, ChatAction calculateCostAction, ChatAction healAction)
      Makes the NPC a healer.
      Parameters:
      npc - SpeakerNPC who does the healing.
      calculateCostAction - Action to take to determine cost.
      healAction - Action to take when player is healed.