UNPKG

osrs-tools

Version:

A JavaScript package to provide JSON data for all current Old School RuneScape quests. This package aims to help junior software developers create tools related to Old School RuneScape. It's a work in progress, and issues should be reported to jamescer@ha

74 lines (73 loc) 1.67 kB
import { Requirement } from '../Requirement'; interface QuestRewardExperience { skill: string; amount: number; } interface QuestRewardItem { name: string; quantity?: number; note?: string; } interface QuestRewardUnlock { description: string; url?: string; } interface QuestRewardLamp { amount: number; skillRestriction?: string | string[]; note?: string; } interface QuestRewardPoints { type: string; amount: number; } interface QuestRewardPet { name: string; note?: string; } interface QuestRewards { experience?: QuestRewardExperience[]; items?: QuestRewardItem[]; unlocks?: QuestRewardUnlock[]; lamps?: QuestRewardLamp[]; points?: QuestRewardPoints[]; pets?: QuestRewardPet[]; questPoints: number; areas?: string[]; } interface Quest { id: number; name: string; description: string; difficulty: string; steps: string[]; requirements: Requirement[]; status: QuestStatus; miniquest: boolean; shortName: string; url: string; series?: string | undefined | null; members: boolean; questPoints: number; length: string; age: string; startLocation: string; difficultyLevel: string; officialDifficulty: string; officialLength: string; officialAge: string; recommendedItems: string[]; recommendedSkills: { [skill: string]: number; }; recommendedPrayers: string[]; rewards: QuestRewards; [key: string]: any; } export { Quest }; export declare enum QuestStatus { NotStarted = "NotStarted", InProgress = "InProgress", Completed = "Completed", Failed = "Failed" }