Class GuessKills
java.lang.Object
games.stendhal.server.maps.quests.AbstractQuest
games.stendhal.server.maps.quests.GuessKills
- All Implemented Interfaces:
IQuest
QUEST: The Guessing Game
PARTICIPANTS:
- Crearid, an old lady found in Nalwor city
- Crearid asks if you want to play a game
- She picks a random creature you have killed and asks you to guess how many of those you killed
- You get three guesses and get rewarded if your guess exactly matches the number or a lower reward if your guess is close to the correct number
- Quest state: done, 1, 2 or 3 (where 1, 2 and 3 represent what guess the player is on)
- Timestamp: last time quest was completed
- Creature: the creature that was asked about if quest was not completed
- 150 XP if guess is exact
- 90 XP if guess is close
- Weekly
-
Field Summary
FieldsFields inherited from class games.stendhal.server.maps.quests.AbstractQuest
npcs, questInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadds the quest to the game world (e.g.getHistory(Player player) Gets a the quest history for the given player, written in the first person.getName()Returns the name of the quest.Returns the starter NPC for the quest, or null if there is noneReturns the region where the quest adventure takes place (or begins), or null for global questsThe slot-name in !quests.booleanisRepeatable(Player player) May the quest be repeated?voidSets the FSM for the NPC with all required responses and interactionsMethods inherited from class games.stendhal.server.maps.quests.AbstractQuest
fillQuestInfo, fillQuestInfo, fillQuestInfo, fillQuestInfo, getCompletedCount, getFormattedHistory, getHint, getMinLevel, getQuestInfo, isCompleted, isStarted, isVisibleOnQuestStatus, isVisibleOnQuestStatus, removeFromWorld, updatePlayer
-
Field Details
-
QUEST_SLOT
- See Also:
-
-
Constructor Details
-
GuessKills
public GuessKills()Create new quest instance.
-
-
Method Details
-
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
-
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
-
isRepeatable
Description copied from interface:IQuestMay the quest be repeated?- Specified by:
isRepeatablein interfaceIQuest- Overrides:
isRepeatablein classAbstractQuest- Parameters:
player- Player- Returns:
- true, if it can be repeated, false otherwise
-
getSlotName
Description copied from class:AbstractQuestThe slot-name in !quests.- Specified by:
getSlotNamein interfaceIQuest- Specified by:
getSlotNamein classAbstractQuest- Returns:
- the slot's name
-
getName
Description copied from interface:IQuestReturns the name of the quest.- Specified by:
getNamein interfaceIQuest- Specified by:
getNamein classAbstractQuest- Returns:
- name
-
getHistory
Description copied from interface:IQuestGets a the quest history for the given player, written in the first person.- Parameters:
player- Player- Returns:
- list of history item-names
-
prepareQuestStep
public void prepareQuestStep()Sets the FSM for the NPC with all required responses and interactions -
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
-