Class ItemDroppingTeleporterBehaviour

java.lang.Object
games.stendhal.server.entity.npc.behaviour.impl.TeleporterBehaviour
games.stendhal.server.entity.npc.behaviour.impl.ItemDroppingTeleporterBehaviour
All Implemented Interfaces:
TurnListener

public final class ItemDroppingTeleporterBehaviour extends TeleporterBehaviour
teleports the SpeakerNPC to a random location on the outside world and causes it to walk a random path while also randomly dropping items
Author:
kymara
  • Constructor Details

    • ItemDroppingTeleporterBehaviour

      public ItemDroppingTeleporterBehaviour(SpeakerNPC speakerNPC, List<String> setZones, String zoneStartsWithLimiter, String repeatedText, String itemName)
      Creates a new ItemDroppingTeleporterBehaviour.
      Parameters:
      speakerNPC - SpeakerNPC
      repeatedText - text to repeat
      itemName - name of item to drop
    • ItemDroppingTeleporterBehaviour

      public ItemDroppingTeleporterBehaviour(SpeakerNPC speakerNPC, List<String> setZones, String zoneStartsWithLimiter, String repeatedText, boolean useHighProbabilityZones, String itemName)
      Creates a new ItemDroppingTeleporterBehaviour.
      Parameters:
      speakerNPC - SpeakerNPC
      repeatedText - text to repeat
      useHighProbabilityZones - true to make teleportation to a hand selected list of zones more likely
      itemName - name of item to drop
  • Method Details