import { QuestController } from "https://deno.land/x/sptaki@1.2.0/controllers/QuestController.d.ts";
Constructors
Properties
Methods
Look for newly available quests after completing a quest with a requirement to wait x minutes (time-locked) before being available and add data to profile
Fail the provided quests Update quest in profile, otherwise add fresh quest object with failed status
Return a list of quests that would fail when supplied quest is completed
Return quests that have different statuses
Look for an accepted quest inside player profile, return matching
Does a provided quest have a level requirement equal to or below defined level
Remove a quest entirely from a profile
Send a popup to player on successful completion of a quest
Should a quest be shown to the player in trader quest screen
Show warning to user and write to log quest item handed over did not match what is required
Show warning to user and write to log that repeatable quest failed a condition check
Increment a backend counter stored value by an amount, Create counter if it does not exist
Handle QuestAccept event Handle the client accepting a quest and starting it Send starting rewards if any to player and Send start notification if any to player
Handle the client accepting a repeatable quest and starting it Send starting rewards if any to player and Send start notification if any to player
Handle QuestComplete event Update completed quest in profile Add newly unlocked quests to profile Also recalculate their level due to exp rewards
Handle /client/game/profile/items/moving - QuestFail
Handle client/quest/list Get all quests visible to player Exclude quests with incomplete preconditions (level/loyalty)
Handle QuestHandover event