Database¶
The SQLite database contains a series of tables dedicated to each of the model types. Following SQL best practices where possible.
The database can be accessed through the API provided by this module, or directly any SQLite API using queries.
The generated database has the following tables.
Tables¶
Table |
Description |
---|---|
Contains information for all achievements. |
|
Contains information about books. |
|
Contains information for all charms. |
|
Contains information for all creatures. |
|
Contains all the abilities done by creatures. |
|
Contains all the items dropped by creatures. |
|
Contains the breakdown of max damage done by creatures. |
|
Contains all the sounds made by creatures. |
|
Contains information about the database itself. |
|
Contains information about game updates. |
|
Contains all houses and guildhalls. |
|
Contains information for all imbuements. |
|
Contains the item materials for imbuements. |
|
Contains information for all items. |
|
Contains extra attributes and properties of items that only apply to certain types. |
|
Contains the different key variations. |
|
Contains all the sounds made by items. |
|
Contains all offers for items in the Tibia store. |
|
Contains the world map’s images. |
|
Contains information for all mounts. |
|
Contains information for all NPCs. |
|
Contains all the NPCs’ travel destinations. |
|
Contains all the NPCs’ jobs. |
|
Contains all the NPCs’ buy offers. |
|
Contains all the NPCs’ sell offers. |
|
Contains all the NPCs’ races. |
|
Contains all the spells NPCs teach. |
|
Contains information for all outfits. |
|
Contains images for all outfits. |
|
Contains outfit and addon rewards for quests. |
|
Contains information for all quests. |
|
Contains creatures that can be found in a quest. |
|
Contains item rewards for quests. |
|
Contains the positions for the NPC Rashid every day of the week. |
|
Contains information for all spells. |
|
Contains information for all worlds. |
Table schemas¶
Note
SQLite does not have an actual Boolean storage class. Instead, Boolean values are stored as integers 0 (false) and 1 (true).
This is not much of an issue in Python, but it might be an issue on more strict typed languages.
achievement¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this achievement. |
title |
|
The title of the article containing the achievement. |
name |
|
The name of the achievement. |
grade |
|
The grade of the achievement. Goes from 1 to 3. |
points |
|
The number of points this achivement gives. |
description |
|
The official description shown for this achievement. |
spoiler |
|
Brief instructions on how to complete the quest. |
secret |
|
Whether this is a secret achievement or not. |
premium |
|
Whether this achievement requires premium. |
version |
|
Client version this achievement was implemented in. |
achievement_id |
|
The internal ID of the achievement. |
status |
|
The status of the achievement in game. |
timestamp |
|
Unix timestamp of the article’s last edit. |
book¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this book. |
title |
|
The title of the article containing this book. |
book_type |
|
The type of item this book can be found in. |
item_id |
|
The item id of the book. |
name |
|
The name of the book. |
location |
|
Where the book can be found. |
blurb |
|
A short introduction text of the book. |
author |
|
The person that wrote the book, if known. |
prev_book |
|
If the book is part of a series, the book that precedes this one. |
next_book |
|
If the book is part of a series, the book that follows this one. |
text |
|
The content of the book. |
version |
|
The client version this key was introduced to the game. |
status |
|
The status of the key in game. |
timestamp |
|
Unix timestamp of the article’s last edit. |
charm¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this charm. |
title |
|
The title of the article containing this charn. |
name |
|
The name of the charm. |
type |
|
The type of the charm: |
cost |
|
The number of charm points needed to unlock. |
effect |
|
The effect of this charm. |
version |
|
Client version this charm was implemented in. |
image |
|
The charm’s image bytes. |
status |
|
The status of the charm in game. |
timestamp |
|
Unix timestamp of the article’s last edit. |
creature¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this creature. |
title |
|
The title of the article containing this creature. |
name |
|
The name of the creature in-game. |
plural |
|
The plural of the name. |
library_race |
|
The race name of the creature in Tibia.com’s library. |
article |
|
The grammatical article before the creature’s name. This is shown when looking at creatures. Bosses have no article. |
hitpoints |
|
The number of hitpoints the creature has.
May be |
experience |
|
The number of experience the creature yields .
May be |
armor |
|
The armor value of the creature.
May be |
speed |
|
The speed value of the creature.
May be |
creature_class |
|
The class this creature belongs to
(e.g. |
creature_type |
|
The type this creature belongs to
(e.g. |
type_secondary |
|
A secondary type this creature belongs to, if any. |
bestiary_class |
|
The bestiary category of this
creature. |
bestiary_level |
|
The bestiary level of this
creature. |
bestiary_occurrence |
|
The bestiary’s rarity value of
this creature. |
bosstiary_class |
|
The bosstiary category of this
creature. |
max_damage |
|
The maximum damage a creature may
deal if it were to use all it’s
abilities at once. May be |
runs_at |
|
The amount of hitpoints when the creature starts to run away. 0 means it won’t run away. |
summon_cost |
|
The mana cost to summon this
creature. |
convince_cost |
|
The mana cost to convince this
creature. |
illusionable |
|
Whether the player can turn into this creature with Creature Illusion. |
pushable |
|
Whether this creature can be pushed or not. |
push_objects |
|
Whether this creature can push objects or not. |
paralysable |
|
Whether this creature can be paralyzed or not. |
sees_invisible |
|
Whether this creature can see invisible players or not. |
boss |
|
Whether this creature is a boss or not. |
modifier_physical |
|
Percentage of damage the creature
receives from this damage type.
|
modifier_earth |
|
Percentage of damage the creature
receives from this damage type.
|
modifier_fire |
|
Percentage of damage the creature
receives from this damage type.
|
modifier_ice |
|
Percentage of damage the creature
receives from this damage type.
|
modifier_energy |
|
Percentage of damage the creature
receives from this damage type.
|
modifier_death |
|
Percentage of damage the creature
receives from this damage type.
|
modifier_holy |
|
Percentage of damage the creature
receives from this damage type.
|
modifier_drown |
|
Percentage of damage the creature
receives from this damage type.
|
modifier_hpdrain |
|
Percentage of damage the creature
receives from this damage type.
|
modifier_hpdrain |
|
The healing modifier. |
abilities |
|
A summary of a creature’s abilities (attacks, spells, healing). |
walks_through |
|
The type of fields the creature will walk through. |
walks_around |
|
The type of fields the creature will walk around to avoid when possible. |
location |
|
The locations where the creature can be found. |
version |
|
The client version this creature was introduced to the game. |
image |
|
The creature’s image bytes. |
status |
|
The status of the creature in game. |
timestamp |
|
Unix timestamp of the article’s last edit. |
creature_ability¶
Column |
Type |
Description |
---|---|---|
creature_id |
|
The id of the creature that does this ability. |
name |
|
The name of th ability |
effect |
|
The effect of the ability, or the damage range. |
element |
|
The element of damage type of the ability. This could also be a status condition instead. |
creature_drop¶
Column |
Type |
Description |
---|---|---|
creature_id |
|
The id of the creature that yields this drop. |
item_id |
|
The id of the dropped item. |
chance |
|
The chance percentage of this drop. |
min |
|
The minimum count of the dropped item. |
max |
|
The maximum count of the dropped item. |
creature_max_damage¶
Column |
Type |
Description |
---|---|---|
creature_id |
|
The id of the creature this max damage belongs to. |
physical |
|
The maximum physical damage dealt by the creature. If it is unknown, but the creature does deal damage, it will be -1. |
physical |
|
The maximum physical damage dealt by the creature. If it is unknown, but the creature does deal damage, it will be -1. |
fire |
|
The maximum fire damage dealt by the creature. If it is unknown, but the creature does deal damage, it will be -1. |
ice |
|
The maximum ice damage dealt by the creature. If it is unknown, but the creature does deal damage, it will be -1. |
energy |
|
The maximum energy damage dealt by the creature. If it is unknown, but the creature does deal damage, it will be -1. |
earth |
|
The maximum earth damage dealt by the creature. If it is unknown, but the creature does deal damage, it will be -1. |
holy |
|
The maximum holy damage dealt by the creature. If it is unknown, but the creature does deal damage, it will be -1. |
death |
|
The maximum death damage dealt by the creature. If it is unknown, but the creature does deal damage, it will be -1. |
lifedrain |
|
The maximum life drain damage dealt by the creature. If it is unknown, but the creature does deal damage, it will be -1. |
manadrain |
|
The maximum mana drain damage dealt by the creature. The maximum manadrain damage dealt by the creature. This is not counted as part of the total. If it is unknown, but the creature does deal damage, it will be -1. |
summons |
|
The maximum summons damage dealt by the creature. This is not coounted as part of the total. If it is unknown, but the creature does deal damage, it will be -1. |
total |
|
The maximum damage the creature can deal in a single turn. In most cases, this is simply the sum of the other damages, but in some cases, the amount may be different. If it is unknown, but the creature does deal damage, it will be -1. |
creature_sound¶
Column |
Type |
Description |
---|---|---|
creature_id |
|
The id of the creature that does this sound. |
content |
|
The content of the sound. |
database_info¶
Column |
Type |
Description |
---|---|---|
key |
|
The name of the value contained. |
value |
|
The value of the property. |
game_update¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this update. |
title |
|
The title of the article containing the update. |
name |
|
The name of the update, if any. |
date |
|
The date when this update was released, in ISO 8601 format. |
news_id |
|
The world’s PvP type. |
type_primary |
|
The primary type of the update. |
type_secondary |
|
The secondary type of the update. |
previous |
|
The version before this update |
next |
|
The version after this update |
version |
|
The client version this update set. |
summary |
|
A brief summary of the update. |
changelist |
|
A brief list of the changes introduced. |
house¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this house. |
house_id |
|
The id of the house according to tibia.com. |
title |
|
The title of the article containing this house. |
name |
|
The name of the house. |
city |
|
The city the house belongs to. |
street |
|
The street this house is located in. |
location |
|
A brief description of the house’s location. |
beds |
|
The maximum amount of beds the house can have. |
rent |
|
The monthly rent of this house. |
size |
|
The number of tiles this house has. |
rooms |
|
The number of rooms or divisions has. |
floors |
|
The number of floors this house has. |
x |
|
The x position of the house. |
y |
|
The y position of the house. |
z |
|
The z position of the house. |
guildhall |
|
Whether this house is a guildhall or not. |
version |
|
The client version this was implemented in. |
status |
|
The status of the house in game. |
timestamp |
|
Unix timestamp of the article’s last edit. |
imbuement¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this imbuement. |
title |
|
The title of the article containing this imbuement. |
name |
|
The name of the imbuement. |
tier |
|
The imbuement’s tier: |
type |
|
The imbuement’s type, e.g. |
effect |
|
The effect given by this imbuement. |
slots |
|
The item types this imbuement can be applied to. |
version |
|
The client version this imbuement was introduced to the game. |
image |
|
The imbuement’s image bytes. |
status |
|
The status of the imbuement in game. |
timestamp |
|
Unix timestamp of the article’s last edit. |
imbuement_material¶
Column |
Type |
Description |
---|---|---|
imbuement_id |
|
The id of the imbuement this material belongs to |
item_id |
|
The id of the item material. |
amount |
|
The amount of items needed. |
item¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this item. |
title |
|
The title of the article containing this item. |
name |
|
The actual name of the item in-game. |
plural |
|
The plural of the item’s name. |
marketable |
|
Whether this item can be traded in the market or not. |
stackable |
|
Whether this item is stackable or not. |
pickupable |
|
Whether this item can be picked up or not. |
value |
|
The maximum value of this item when sold to NPCs |
price |
|
The maximum price of this item when bought from NPCs. |
weight |
|
The weight of this item in ounces. |
item_class |
|
The class this item belongs to
(e.g. |
item_type |
|
The category this item belongs to
(e.g. |
type_secondary |
|
A secondary type this item belongs to, if any. |
flavor_text |
|
The extra text that is displayed when some items are looked at. |
client_id |
|
The client id of the item. |
light_color |
|
The color of the light emitted by this item, if any. |
light_radius |
|
The radius of the light emitted by this item, if any. |
version |
|
The client version this item was introduced to the game. |
image |
|
The item’s image bytes. |
status |
|
The status of the item in game. |
timestamp |
|
Unix timestamp of the article’s last edit. |
item_attribute¶
Column |
Type |
Description |
---|---|---|
item_id |
|
The id of the item this attribute belongs to. |
name |
|
The name of the attribute. |
value |
|
The value of the attribute. |
item_key¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this key. |
title |
|
The title of the article containing this key. |
number |
|
The number of this key, without padding
(e.g. Key 0555’s
|
item_id |
|
The item id of the key. |
name |
|
Name(s) this key usually receives by players. |
material |
|
The material this key is made of. |
location |
|
General location of this key. |
origin |
|
How this key is obtained. |
notes |
|
Where this key is used or other notes. |
version |
|
The client version this key was introduced to the game. |
status |
|
The status of the key in game. |
timestamp |
|
Unix timestamp of the article’s last edit. |
item_sound¶
Column |
Type |
Description |
---|---|---|
item_id |
|
The id of the item that does this sound. |
content |
|
The content of the sound. |
item_store_offer¶
Column |
Type |
Description |
---|---|---|
item_id |
|
The id of the item the offer is for |
price |
|
The price of the item. |
amount |
|
The amount of the item offered. |
currency |
|
The currency used. Most of the time Tibia Coins. |
map¶
Column |
Type |
Description |
---|---|---|
z |
|
The floor’s level, where 7 is the ground floor. |
image |
|
The map’s image for that that floor, in PNG format. |
mount¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this mount. |
title |
|
The title of the article containing the mount. |
name |
|
The name of the mount. |
speed |
|
The speed given by the mount. |
taming_method |
|
A brief description on how the mount is obtained. |
buyable |
|
Whether the mount can be bought from the store or not. |
price |
|
The price in Tibia coins to buy the mount. |
achievement |
|
The achievement obtained for obtaining this mount. |
light_color |
|
The color of the light emitted by this mount, if any. |
light_radius |
|
The radius of the light emitted by this mount, if any. |
version |
|
The client version where this mount was introduced to the game. |
image |
|
The mount’s image bytes. |
status |
|
The status of the mount in game. |
timestamp |
|
Unix timestamp of the article’s last edit. |
npc¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this NPC. |
title |
|
The title of the article containing the NPC. |
name |
|
The actual name of the NPC in-game. |
gender |
|
The gender of the NPC in-game. |
race |
|
The race of the NPC in-game. |
job |
|
The NPC job. |
job_additionals |
|
Additional jobs the NPC has. A comma separated list. |
city |
|
City where the NPC is found. |
location |
|
The location where the NPC is found. |
x |
|
The x position where the NPC is usually located. |
y |
|
The y position where the NPC is usually located. |
z |
|
The z position where the NPC is usually located. |
version |
|
The client version this NPC was introduced to to the game. |
image |
|
The NPC’s image bytes. |
status |
|
The status of the NPC in game. |
timestamp |
|
Unix timestamp of the article’s last edit. |
npc_destination¶
Column |
Type |
Description |
---|---|---|
npc_id |
|
The id of the NPC this destination belongs to. |
name |
|
The name of the place this NPC can take you to. |
price |
|
The price to travel to the destination with this NPC. |
notes |
|
Extra notes for this destination, like extra requirements or exceptions. |
npc_job¶
Column |
Type |
Description |
---|---|---|
npc_id |
|
The id of the NPC this job is for. |
name |
|
The name of the job. |
npc_offer_buy¶
Column |
Type |
Description |
---|---|---|
npc_id |
|
The id of the NPC this offer belongs to |
item_id |
|
The id of the item this offer refers to |
value |
|
The value of the offer |
currency |
|
The id of the item used as currency in this offer. In most cases this is the id of gold coins. |
npc_offer_sell¶
Column |
Type |
Description |
---|---|---|
npc_id |
|
The id of the NPC this offer belongs to |
item_id |
|
The id of the item this offer refers to |
value |
|
The value of the offer |
currency |
|
The id of the item used as currency in this offer. In most cases this is the id of gold coins. |
npc_race¶
Column |
Type |
Description |
---|---|---|
npc_id |
|
The id of the NPC this race is for. |
name |
|
The name of the race. |
npc_spell¶
Column |
Type |
Description |
---|---|---|
npc_id |
|
The id of the NPC that teaches this spell. |
spell_id |
|
The id of the spell this NPC teaches. |
knight |
|
Whether this NPC teaches this spell to knights. |
sorcerer |
|
Whether this NPC teaches this spell to sorcerers. |
druid |
|
Whether this NPC teaches this spell to druids. |
paladin |
|
Whether this NPC teaches this spell to paladins. |
outfit¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this outfit. |
title |
|
The title of the article containing the outfit. |
name |
|
The name of the outfit. |
type |
|
The type of outfit. Basic, Quest, Special, Premium. |
premium |
|
Whether this outfit is requires a premium account or not. |
bought |
|
Whether this outfit can be bought from the store. |
tournament |
|
Whether this outfit can be obtained with Tournament coins. |
full_price |
|
The price of the full outfit in Tibia Coins. |
achievement |
|
The achievement obtained by getting this full outfit. |
version |
|
Client version where this outfit was implemented. |
status |
|
The status of the iytfut in game. |
timestamp |
|
Unix timestamp of the UTC time of the last edit made to this article. |
outfit_image¶
Column |
Type |
Description |
---|---|---|
outfit_id |
|
Id of the outfit this image belongs to |
sex |
|
The sex this outfit image is for. |
addon |
|
The addon used in the image. |
image |
|
The outfit’s image’s bytes. |
outfit_quest¶
Column |
Type |
Description |
---|---|---|
outfit_id |
|
Id of the outfit this image belongs to |
quest_id |
|
Id of the quest this image belongs to |
type |
|
Whether the quest is for the outfit or its addons. |
quest¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this quest. |
title |
|
The title of the article containing the quest. |
name |
|
The name of the quest. |
location |
|
Location where the quest starts or takes place. |
rookgaard |
|
Whether this quest is in Rookgaard or not. |
type |
|
The type of quest. |
quest_log |
|
Whether this quest is registered in the quest log or not. |
legend |
|
Short description of the quest. |
level_required |
|
The level required to finish the quest. |
level_recommended |
|
The level recommended to finish the quest. |
active_time |
|
Times of the year when this quest is active. |
estimated_time |
|
Estimated time to finish this quest. |
premium |
|
Whether premium account is required to finish the quest. |
version |
|
Client version where this quest was implemented. |
status |
|
The status of the quest in game. |
timestamp |
|
Unix timestamp of the UTC time of the last edit made to this article. |
quest_danger¶
Column |
Type |
Description |
---|---|---|
quest_id |
|
Id of the quest this danger belongs to. |
creature_id |
|
Id of the creature found in this quest. |
quest_reward¶
Column |
Type |
Description |
---|---|---|
quest_id |
|
Id of the quest this reward belongs to. |
item_id |
|
Id of the item obtained in this quest. |
rashid_position¶
Column |
Type |
Description |
---|---|---|
day |
|
Day of the week, where Monday is |
city |
|
Name of the city Rashid is located. |
location |
|
Location where Rashid is that day. |
x |
|
The x position where Rashid is that day. |
y |
|
The y position where Rashid is that day. |
z |
|
The z position where Rashid is that day. |
spell¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this achievement. |
title |
|
The title of the article containing the achievement. |
name |
|
The name of the spell. |
words |
|
The words used to cast the spell. |
effect |
|
The effect of this spell. |
type |
|
Whether the spell is |
group_spell |
|
The cooldown group of this spell. |
group_rune |
|
The cooldown group of the rune created by this spell. |
group_secondary |
|
The secondary cooldown group of this spell. |
element |
|
The type of damage this spell deals, if applicable. |
level |
|
Level required to cast this spell |
mana |
|
Mana required to cast this spell.
|
soul |
|
Soul points required to cast this spell. |
premium |
|
Whether this spell requires
premium account or not. |
promotion |
|
Whether this spell requires
a promotion or not. |
price |
|
Price in gold coins of this spell |
cooldown |
|
The individual cooldown in seconds of this spell |
cooldown_group |
|
The group cooldown of this spell. |
cooldown_group_secondary |
|
The secondary group cooldown of this spell. |
knight |
|
Whether this spell can be used by knights or not. |
sorcerer |
|
Whether this spell can be used by sorcerers or not. |
druid |
|
Whether this spell can be used by druids or not. |
paladin |
|
Whether this spell can be used by paladins or not. |
image |
|
The spell’s image bytes. |
status |
|
The status of the spell in game. |
version |
|
Client version where this quest was implemented. |
timestamp |
|
Unix timestamp of the article’s last edit. |
world¶
Column |
Type |
Description |
---|---|---|
article_id |
|
The id of the article containing this world. |
title |
|
The title of the article containing the world. |
name |
|
The name of the world. |
location |
|
The world’s server’s physical location. |
pvp_type |
|
The world’s PvP type. |
preview |
|
Whether the world is a preview world or not. |
experimental |
|
Whether the world is a experimental world or not. |
online_since |
|
Date when the world became online for the first time, in ISO 8601 format. |
offline_since |
|
Date when the world went offline, in ISO 8601 format. |
merged_into |
|
The name of the world this world got merged into, if applicable. |
battleye |
|
Whether the world is BattlEye protected or not. |
battleye_type |
|
The type of battleye protection the world has (yellow or green). |
protected_since |
|
Date when the world started being protected by BattlEye, in ISO 8601 format. |
world_board |
|
The board ID for the world’s board. |
trade_board |
|
The board ID for the world’s trade board. |
timestamp |
|
Unix timestamp of the article’s last edit. |