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
Modifier and TypeFieldDescriptionprotected static org.apache.log4j.Logger
protected LinkedHashMap<String,Integer>
Fields inherited from class games.stendhal.server.maps.quests.AbstractQuest
npcs, questInfo
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adds the quest to the game world (e.g.static ITPPQuest
function 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_Phase
return next available quest phasestatic ITPPQuest
return next instance of quest phases classes from listReturns the starter NPC for the quest, or null if there is nonestatic ITPPQuestConstants.TPP_Phase
getPhase()
static ITPPQuest
return instance of quest phases classesstatic int
static LinkedList<ITPPQuest>
Returns the region where the quest adventure takes place (or begins), or null for global questsint
int
The slot-name in !quests.static void
setNewNotificationTime(int max, int min)
Set new time period for quest timer (time to next quest phase).static void
setPhase(ITPPQuestConstants.TPP_Phase phase)
static void
setPhases(LinkedList<ITPPQuest> phases)
static void
switching 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:AbstractQuest
The slot-name in !quests.- Specified by:
getSlotName
in interfaceIQuest
- Specified by:
getSlotName
in classAbstractQuest
- Returns:
- the slot's name
-
getHistory
Description copied from interface:IQuest
Gets a the quest history for the given player, written in the first person.- Specified by:
getHistory
in interfaceIQuest
- Parameters:
player
- Player- Returns:
- list of history item-names
-
getName
Description copied from interface:IQuest
Returns the name of the quest.- Specified by:
getName
in interfaceIQuest
- Specified by:
getName
in classAbstractQuest
- 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 interfaceIQuest
- Specified by:
addToWorld
in classAbstractQuest
-
setPhase
-
getPhase
-
setPhases
-
getPhases
-
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 interfaceIQuest
- Overrides:
getRegion
in classAbstractQuest
- Returns:
- region, or null for global quests
-
getRemainingTurns
public int getRemainingTurns() -
getRemainingSeconds
public int getRemainingSeconds() -
getNPCName
Description copied from class:AbstractQuest
Returns the starter NPC for the quest, or null if there is none- Specified by:
getNPCName
in interfaceIQuest
- Overrides:
getNPCName
in classAbstractQuest
- Returns:
- NPC name, or null for quests with no starter NPC
-