Interface IQuest
- All Known Implementing Classes:
AbstractQuest,AdMemoriaInPortfolio,AdosDeathmatch,AdventureIsland,AGrandfathersWish,AntivenomRing,BalloonForBobby,Blackjack,BowsForOuchit,BuiltQuest,CaptureFlagQuest,ChocolateForElisabeth,CloakCollector,CloakCollector2,CloaksForBario,ClubOfThorns,CodedMessageFromFinnFarmer,CollectEnemyData,CrownForTheWannaBeKing,DailyItemQuest,DailyMonsterQuest,DiceGambling,DragonLair,EasterGiftsForChildren,ElfPrincess,ElvishArmor,EmotionCrystals,FindGhosts,FindJefsMom,FindRatChildren,FishermansLicenseCollector,FishermansLicenseQuiz,FishSoup,FishSoupForHughie,FruitsForCoralia,GoodiesForRudolph,GuessKills,HelpMrsYeti,HelpTomi,HelpWithTheHarvest,HerbsForCarmen,HerbsForJynath,HouseBuying,HungryJoshua,IcecreamForAnnie,ImperialPrincess,JailedBarbarian,JailedDwarf,KanmararnSoldiers,KillBlordroughs,KillDarkElves,KillDhohrNuggetcutter,KillEnemyArmy,KillMonks,KillSpiders,KoboldishTorcibud,LearnAboutKarma,LearnAboutOrbs,LookUpQuote,LuaQuestHelper.LuaQuest,Marriage,Maze,McPeglegIOU,MealForGroongo,MedicineForTad,MeetBunny,MeetHackim,MeetHayunn,MeetIo,MeetKetteh,MeetMarieHenri,MeetMonogenes,MeetSanta,MeetZynn,MineTownRevivalWeeks,MineTownRevivalWeeksConstruction,MithrilCloak,MixtureForOrtiv,MuseumEntranceFee,NewsFromHackim,ObsidianKnife,PaperChase,RainbowBeans,RestockFlowerShop,ReverseArrow,RingMaker,SadScientist,ScubaLicenseQuiz,SevenCherubs,SheepGrowing,Snowballs,SolveRiddles,Soup,StuffForBaldemar,StuffForVulcanus,SuntanCreamForZara,SuppliesForPhalk,TakeGoldforGrafindle,TheMissingBooks,ThePiedPiper,ToysCollector,TutorialIsland,UltimateCollector,VampireSword,WaterForXhiphin,WeaponsCollector,WeaponsCollector2,WeeklyItemQuest,WizardBank,ZekielsPracticalTestQuest,ZooFood
public interface IQuest
All quests MUST implement this interface or extend the abstract class
AbstractQuest in order for the loader to recognize them.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadds the quest to the game world (e.g.intgetCompletedCount(Player player) Retrieves number of times player has completed quest.getFormattedHistory(Player player) Gets a list of possible hint-names.getHistory(Player player) Gets a the quest history for the given player, written in the first person.intReturns the minimum level of player expected to start the quest.getName()Returns the name of the quest.Returns the starter NPC for the quest, or null if there is nonegetQuestInfo(Player player) function will return information about this questReturns the region where the quest adventure takes place (or begins), or null for global questsReturns the slot name of the quest.booleanisCompleted(Player player) Was the quest completed? Note: A quest can be completed without its status being "Done" (e.booleanisRepeatable(Player player) May the quest be repeated?booleanWas the quest started?booleanDenotes whether quest details should be included in travel log.booleanisVisibleOnQuestStatus(Player player) Denotes whether quest details should be included in travel log.booleanremoves a quest from the world.voidupdatePlayer(Player player)
-
Method Details
-
getQuestInfo
function will return information about this quest- Parameters:
player- - player for whom required quest info- Returns:
- - QuestInfo object with info about this quest
-
updatePlayer
- Parameters:
player- Player
-
addToWorld
void addToWorld()adds the quest to the game world (e.g. by placing SpeakerNPCs there) -
removeFromWorld
boolean removeFromWorld()removes a quest from the world.- Returns:
- true if the quest could be unloaded, false otherwise
-
isStarted
Was the quest started?- Parameters:
player- Player- Returns:
- true, if it was started, false otherwise
-
isCompleted
Was the quest completed? Note: A quest can be completed without its status being "Done" (e. g. rejected, failed).- Parameters:
player- Player- Returns:
- true, if it was completed, false otherwise
-
getCompletedCount
Retrieves number of times player has completed quest.- Parameters:
player- Player for whom quest is being checked.- Returns:
- Number of completions.
-
isRepeatable
May the quest be repeated?- Parameters:
player- Player- Returns:
- true, if it can be repeated, false otherwise
-
getHistory
Gets a the quest history for the given player, written in the first person.- Parameters:
player- Player- Returns:
- list of history item-names
-
getFormattedHistory
-
getHint
Gets a list of possible hint-names.The hint system will ensure that the same hint is not displayed twice. This class creates a list of useful hints (without hints about already completed parts).
- Parameters:
player- Player- Returns:
- list of history item-names
-
getName
String getName()Returns the name of the quest.- Returns:
- name
-
getMinLevel
int getMinLevel()Returns the minimum level of player expected to start the quest. Used for choosing which hints to give. To set a hard minimum level requirement for doing the quest, use level related ChatConditions in the quest methods- Returns:
- level
-
getSlotName
String getSlotName()Returns the slot name of the quest.- Returns:
- slot name
-
isVisibleOnQuestStatus
boolean isVisibleOnQuestStatus()Denotes whether quest details should be included in travel log.- Returns:
- `true` if details should be included.
-
isVisibleOnQuestStatus
Denotes whether quest details should be included in travel log.- Parameters:
player- Player for whom details are requested.- Returns:
- `true` if details should be included.
-
getRegion
String getRegion()Returns the region where the quest adventure takes place (or begins), or null for global quests- Returns:
- region, or null for global quests
-
getNPCName
String getNPCName()Returns the starter NPC for the quest, or null if there is none- Returns:
- NPC name, or null for quests with no starter NPC
-