Class EquipRandomItemAction

java.lang.Object
games.stendhal.server.entity.npc.action.EquipRandomItemAction
All Implemented Interfaces:
ChatAction, PostTransitionAction

@Dev(category=ITEMS_OWNED, label="Item+") public class EquipRandomItemAction extends Object implements ChatAction
Chooses and equips the specified item from a list
  • Constructor Details

    • EquipRandomItemAction

      public EquipRandomItemAction(Map<String,​Integer> items)
      Creates a new EquipRandomItemAction.
      Parameters:
      items - items and quantities
    • EquipRandomItemAction

      @Dev public EquipRandomItemAction(Map<String,​Integer> items, boolean bind)
      Creates a new EquipRandomItemAction.
      Parameters:
      items - items and quantities
      bind - bind to player
    • EquipRandomItemAction

      public EquipRandomItemAction(String itemlist)
      Creates a new EquipRandomItemAction.
      Parameters:
      itemlist - items and quantities as a String item=q1;item2=q2
    • EquipRandomItemAction

      public EquipRandomItemAction(String itemlist, boolean bind)
      Creates a new EquipRandomItemAction.
      Parameters:
      itemlist - items and quantities as a String item=q1;item2=q2
      bind - bind to player
  • Method Details