Class ThePiedPiper
java.lang.Object
games.stendhal.server.maps.quests.AbstractQuest
games.stendhal.server.maps.quests.ThePiedPiper
- All Implemented Interfaces:
IQuest,ITPPQuestConstants
QUEST: The Pied Piper
PARTICIPANTS:
- Mayor Chalmers
- George
- Anna
- Jens
- Susi
- Finn Farmer
- Pied Piper
- 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.
- 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
- once between a week and two weeks.
-
Nested Class Summary
Nested classes/interfaces inherited from interface games.stendhal.server.maps.quests.piedpiper.ITPPQuestConstants
ITPPQuestConstants.TPP_Phase -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static org.apache.log4j.Loggerprotected LinkedHashMap<String,Integer>Fields inherited from class games.stendhal.server.maps.quests.AbstractQuest
npcs, questInfoFields inherited from interface games.stendhal.server.maps.quests.piedpiper.ITPPQuestConstants
AWAITING, AWAITING_TIME_MAX, AWAITING_TIME_MIN, CHILDRENS, CHILDRENS_TIME_MAX, CHILDRENS_TIME_MIN, FINAL, FINAL_TIME_MAX, FINAL_TIME_MIN, INACTIVE, INACTIVE_TIME_MAX, INACTIVE_TIME_MIN, INVASION, INVASION_TIME_MAX, INVASION_TIME_MIN, OUTGOING, OUTGOING_TIME_MAX, OUTGOING_TIME_MIN, QUEST_SLOT, RAT_REWARDS, RAT_TYPES, RAT_ZONES, SHOUT_TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadds the quest to the game world (e.g.static ITPPQuestfunction return default phase classgetHistory(Player player)Gets a the quest history for the given player, written in the first person.getName()Returns the name of the quest.static ITPPQuestConstants.TPP_Phasereturn next available quest phasestatic ITPPQuestreturn next instance of quest phases classes from listReturns the starter NPC for the quest, or null if there is nonestatic ITPPQuestConstants.TPP_PhasegetPhase()static ITPPQuestreturn instance of quest phases classesstatic intstatic LinkedList<ITPPQuest>Returns the region where the quest adventure takes place (or begins), or null for global questsintintThe slot-name in !quests.static voidsetNewNotificationTime(int max, int min)Set new time period for quest timer (time to next quest phase).static voidsetPhase(ITPPQuestConstants.TPP_Phase phase)static voidsetPhases(LinkedList<ITPPQuest> phases)static voidswitching quest to next available phase.Methods inherited from class games.stendhal.server.maps.quests.AbstractQuest
fillQuestInfo, getFormattedHistory, getHint, getMinLevel, getQuestInfo, isCompleted, isRepeatable, isStarted, isVisibleOnQuestStatus, removeFromWorld, updatePlayer
-
Field Details
-
logger
protected static final org.apache.log4j.Logger logger -
timings
-
-
Constructor Details
-
ThePiedPiper
public ThePiedPiper()
-
-
Method Details
-
getPhaseIndex
- Parameters:
ph-- Returns:
- phase index
-
getNextPhase
return next available quest phase- Parameters:
ph- -- Returns:
- next phase
-
getNextPhaseClass
return next instance of quest phases classes from list- Parameters:
ph-- Returns:
- next phase class
-
getPhaseClass
return instance of quest phases classes- Parameters:
ph-- Returns:
- phase class
-
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 secondsmin- - minimal time in seconds
-
getSlotName
Description copied from class:AbstractQuestThe slot-name in !quests.- Specified by:
getSlotNamein interfaceIQuest- Specified by:
getSlotNamein classAbstractQuest- Returns:
- the slot's name
-
getHistory
Description copied from interface:IQuestGets a the quest history for the given player, written in the first person.- Specified by:
getHistoryin interfaceIQuest- Parameters:
player- Player- Returns:
- list of history item-names
-
getName
Description copied from interface:IQuestReturns the name of the quest.- Specified by:
getNamein interfaceIQuest- Specified by:
getNamein classAbstractQuest- Returns:
- name
-
addToWorld
public void addToWorld()Description copied from interface:IQuestadds the quest to the game world (e.g. by placing SpeakerNPCs there)- Specified by:
addToWorldin interfaceIQuest- Specified by:
addToWorldin classAbstractQuest
-
setPhase
-
getPhase
-
setPhases
-
getPhases
-
getRegion
Description copied from class:AbstractQuestReturns the region where the quest adventure takes place (or begins), or null for global quests- Specified by:
getRegionin interfaceIQuest- Overrides:
getRegionin classAbstractQuest- Returns:
- region, or null for global quests
-
getRemainingTurns
public int getRemainingTurns() -
getRemainingSeconds
public int getRemainingSeconds() -
getNPCName
Description copied from class:AbstractQuestReturns the starter NPC for the quest, or null if there is none- Specified by:
getNPCNamein interfaceIQuest- Overrides:
getNPCNamein classAbstractQuest- Returns:
- NPC name, or null for quests with no starter NPC
-