JavaScript / TypeScript
Resources
Community
| Method | Returns |
|---|---|
characters.get(name) | Character |
highscores.list({ world, category, vocation, protection, types, page }) | HighscorePage |
highscores.character(name, { world, category, vocation, protection, types }) | RankHit |
worlds.list() | WorldList |
worlds.get(world) | WorldDetail |
drome.rotations() | Rotations |
drome.rotations(world, page?) | DromeRank |
killStatistics.get(world) | KillStatistics |
fansites.list() | Fansites |
guilds.list(world) | GuildList |
guilds.get(name) | GuildDetail |
polls.list({ page }) | Polls |
houses.list(world, town, { state, type, order }) | HouseList |
houses.get(world, houseId) | HouseDetail |
ts
const page = await client.highscores.list({
world: "Antica",
category: "magiclevel",
vocation: "sorcerers",
});
const houses = await client.houses.list("Antica", "Thais", { state: "auctioned" });Library
| Method | Returns |
|---|---|
library.achievements({ grade }) | AchievementList |
library.boostableBosses() | Bosses |
library.creatures({ creature_race }) | Creatures |
library.experienceTable() | ExperienceTable |
library.maps({ region }) | MapList |
library.spells({ spell }) | SpellList |
library.worldQuests({ worldquest }) | WorldQuestList |
Tools
| Method | Returns |
|---|---|
online.list(worlds, { fields, ifNoneMatch }) | { notModified, etag, data: OnlineBatch } |
online.character(name) | Online |
tools.shareExperience(level | levels[]) | ShareExperience |
tools.vocationStatus(vocation, level) | VocationStatus |
tools.rawSkills({ vocation, sword, magic, loyalty, ... }) | RawSkills |
tools.exerciseWeapons(charges) | ExerciseTime |
tools.experienceForLevel(level) | LevelExperience |
tools.levelForExperience(experience) | ExperienceStatus |
tools.experienceGoal(targetLevel, { level } | { experience }) | ExperienceGoal |
tools.splitHunt(analyzerText) | HuntSplit |
online.list reads up to 100 worlds in one call and supports ETags: an unchanged list answers notModified: true and does not use quota.
ts
let etag: string | undefined;
const res = await client.online.list(["Antica", "Yonabra"], { ifNoneMatch: etag });
if (!res.notModified) console.log(res.data.worlds);
etag = res.etag;levelForExperience and experienceGoal accept a bigint for experience above 2^53. splitHunt takes the text copied from the Party Hunt Analyzer; it is sent once (never retried) and never logged.
Wiki
Data from TibiaWiki BR (texts in Portuguese).
| Method | Returns |
|---|---|
wiki.rashidLocation() | RashidLocation |
wiki.categories() | WikiCategoryList |
wiki.list(category) | WikiItemList |
wiki.get(category, name) | WikiItem |
ts
const axe = await client.wiki.get("axes", "hellforged axe");Next: Errors.