Class SetQuestToFutureRandomTimeStampAction

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

@Dev(category=TIME, label="State") public class SetQuestToFutureRandomTimeStampAction extends Object implements ChatAction
Sets the state of a quest to a timestamp, randomly picked between minimum and maximum delay from current system time in minutes
Author:
omero
See Also:
TimeReachedCondition, SayTimeRemainingUntilTimeReachedAction
  • Constructor Details

    • SetQuestToFutureRandomTimeStampAction

      public SetQuestToFutureRandomTimeStampAction(String questname, int min_delay, int max_delay)
      Creates a new SetQuestToFutureRandomTimeStampAction.
      Parameters:
      questname - name of quest-slot to change
      min_delay - in minutes
      max_delay - in minutes
    • SetQuestToFutureRandomTimeStampAction

      @Dev public SetQuestToFutureRandomTimeStampAction(String questname, @Dev(defaultValue="1") int index, int minDelay, int maxDelay)
      Creates a new SetQuestToFutureRandomTimeStampAction.
      Parameters:
      questname - name of quest-slot to change
      index - index of sub state
      minDelay - minimum delay in minutes
      maxDelay - maximum delay in minutes
  • Method Details