Class SayRequiredItemAction

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

@Dev(category=ITEMS_OWNED, label="\"...\"") public class SayRequiredItemAction extends Object implements ChatAction
States the name of the item, with formatting/grammar rules, stored in the quest slot
See Also:
StartRecordingRandomItemCollectionAction, DropRecordedItemAction, PlayerHasRecordedItemWithHimCondition
  • Constructor Details

    • SayRequiredItemAction

      @Dev public SayRequiredItemAction(String questname, @Dev(defaultValue="1") int index, String message)
      Creates a new SayRequiredItemAction.
      Parameters:
      questname - name of quest-slot to check
      index - index of sub state
      message - message with substitution defined for item: [item], [#item], or [the item]
    • SayRequiredItemAction

      public SayRequiredItemAction(String questname, String message)
      Creates a new SayRequiredItemAction.
      Parameters:
      questname - name of quest-slot to check
      message - message with substitution defined for item: [item], [#item], or [the item]
  • Method Details