Class ThePiedPiper

java.lang.Object
games.stendhal.server.maps.quests.AbstractQuest
games.stendhal.server.maps.quests.ThePiedPiper
All Implemented Interfaces:
IQuest, ITPPQuestConstants

public class ThePiedPiper extends AbstractQuest implements ITPPQuestConstants
QUEST: The Pied Piper PARTICIPANTS:
  • Mayor Chalmers
  • George
  • Anna
  • Jens
  • Susi
  • Finn Farmer
  • Pied Piper
STEPS:
  • PART I.
  • Mayor will activate the quest by telling to all about Ados city rats problem.
  • Kill (all) rats in city and go back to mayor for your reward.
REWARD:
  • PART I.
  • 10 moneys for each rat
  • 20 moneys for each caverat
  • 100 moneys for each venomrat
  • 160 moneys for each razorrat
  • 360 moneys for each giantrat
  • 800 moneys for each archrat
  • 5 karma in total
REPETITIONS:
  • once between a week and two weeks.
  • Field Details

  • Constructor Details

    • ThePiedPiper

      public ThePiedPiper()
  • Method Details

    • getPhaseIndex

      public static int getPhaseIndex(ITPPQuestConstants.TPP_Phase ph)
      Parameters:
      ph -
      Returns:
      phase index
    • getNextPhase

      public static ITPPQuestConstants.TPP_Phase getNextPhase(ITPPQuestConstants.TPP_Phase ph)
      return next available quest phase
      Parameters:
      ph - -
      Returns:
      next phase
    • getNextPhaseClass

      public static ITPPQuest getNextPhaseClass(ITPPQuestConstants.TPP_Phase ph)
      return next instance of quest phases classes from list
      Parameters:
      ph -
      Returns:
      next phase class
    • getPhaseClass

      public static ITPPQuest getPhaseClass(ITPPQuestConstants.TPP_Phase ph)
      return instance of quest phases classes
      Parameters:
      ph -
      Returns:
      phase class
    • getDefaultPhaseClass

      public static ITPPQuest getDefaultPhaseClass()
      function return default phase class
      Returns:
      default phase class
    • switchToNextPhase

      public static void switchToNextPhase()
      switching quest to next available phase.
    • setNewNotificationTime

      public static void setNewNotificationTime(int max, int min)
      Set new time period for quest timer (time to next quest phase).
      Parameters:
      max - - maximal time in seconds
      min - - minimal time in seconds
    • getSlotName

      public String getSlotName()
      Description copied from class: AbstractQuest
      The slot-name in !quests.
      Specified by:
      getSlotName in interface IQuest
      Specified by:
      getSlotName in class AbstractQuest
      Returns:
      the slot's name
    • getHistory

      public List<String> getHistory(Player player)
      Description copied from interface: IQuest
      Gets a the quest history for the given player, written in the first person.
      Specified by:
      getHistory in interface IQuest
      Parameters:
      player - Player
      Returns:
      list of history item-names
    • getName

      public String getName()
      Description copied from interface: IQuest
      Returns the name of the quest.
      Specified by:
      getName in interface IQuest
      Specified by:
      getName in class AbstractQuest
      Returns:
      name
    • addToWorld

      public void addToWorld()
      Description copied from interface: IQuest
      adds the quest to the game world (e.g. by placing SpeakerNPCs there)
      Specified by:
      addToWorld in interface IQuest
      Specified by:
      addToWorld in class AbstractQuest
    • setPhase

      public static void setPhase(ITPPQuestConstants.TPP_Phase phase)
    • getPhase

      public static ITPPQuestConstants.TPP_Phase getPhase()
    • setPhases

      public static void setPhases(LinkedList<ITPPQuest> phases)
    • getPhases

      public static LinkedList<ITPPQuest> getPhases()
    • getRegion

      public String getRegion()
      Description copied from class: AbstractQuest
      Returns the region where the quest adventure takes place (or begins), or null for global quests
      Specified by:
      getRegion in interface IQuest
      Overrides:
      getRegion in class AbstractQuest
      Returns:
      region, or null for global quests
    • getRemainingTurns

      public int getRemainingTurns()
    • getRemainingSeconds

      public int getRemainingSeconds()
    • getNPCName

      public String getNPCName()
      Description copied from class: AbstractQuest
      Returns the starter NPC for the quest, or null if there is none
      Specified by:
      getNPCName in interface IQuest
      Overrides:
      getNPCName in class AbstractQuest
      Returns:
      NPC name, or null for quests with no starter NPC