Class StartRecordingRandomItemCollectionAction

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

@Dev(category=ITEMS_OWNED, label="State") public class StartRecordingRandomItemCollectionAction extends Object implements ChatAction
Start recording random item collection request. For a quest to use this it needs the list of items with their quantities as a Map
See Also:
SayRequiredItemAction, DropRecordedItemAction, PlayerHasRecordedItemWithHimCondition
  • Constructor Details

    • StartRecordingRandomItemCollectionAction

      public StartRecordingRandomItemCollectionAction(String questname, Map<String,​Integer> items, String message)
      Creates a new StartRecordingRandomItemCollectionAction.
      Parameters:
      questname - name of quest-slot to change
      items - List of items to select from, with quantity
      message - Message which NPC asks for items with. We add the item name and quantity to end of message.
    • StartRecordingRandomItemCollectionAction

      @Dev public StartRecordingRandomItemCollectionAction(String questname, @Dev(defaultValue="1") int index, Map<String,​Integer> items, String message)
      Creates a new StartRecordingRandomItemCollectionAction.
      Parameters:
      questname - name of quest-slot to change
      index - index of sub state
      items - List of items name and quantity to select
      message - Message which NPC asks for items with. We add the item name and quantity to end of message.
  • Method Details