• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

House Auction system for WEB

Paxton

Banned User
Joined
Feb 23, 2008
Messages
4,110
Reaction score
48
Location
London, UK
Hi there.

I will be developing auction system for Modern AAC, housing of course.

Unfortunately, I'm not so into Tibia and I don't really know how it should workd. I've checked the database most of the tables are self explanatory, but not all of them.


Houses Table
id - we know.
world_id - we know
owner - ID of the player
paid - If it's been paid? What is the value 1 or 0?
warnings - explain this please
lastwarning - and this
name - name of the house?
town - ID of the town?
size - how many sqms ?
price - price for what? overall?
rent - how much is the rent?
doors - amount of doors?
beds - amount of beds?
tiles - how many sqms again?
guild - if it's guild house or not? what is the value? 1 or 0?
clear - is it empty?

Another question. Only the guild owner can buy guild house right? Is there any difference?

House auctions table
house_id - ID of the house in houses table?
world_id - we know
player_id - ID of player currently bidding?
bid - how much he is bidding?
limit - Got no idea what it is
endtime - ending of auctions in UNIX timestamp?

What do I have to clean in database to make the house free? Or what makes it free?

Thanks :)
 
Houses Table
id - ID of the house
world_id - world id
owner - ID of the player
paid - i dont know
warnings - i dont know
lastwarning - i dont know
name - name of the house, yes
town - ID of the town, yes
size - how many walkable-sqms
price - depending on "housePriceEachSquare" config.lua value (if size = 100 and housePriceEachSquare = 500 || price = 100*500)
rent - i dont know
doors - amount of doors, yes
beds - amount of beds, yes
tiles - how many sqms (including non-walkable: beds, dustbin, etc)
guild - if it's guild house or not? what is the value? 1 or 0? - idk, but i think so, yes
clear - is it empty? - idk

About house_auctions, I don't know XD.

Good luck :D!

What do I have to clean in database to make the house free? Or what makes it free?
Free of owning (Nobody owns this house)?
With server offline:
PHP:
UPDATE `houses` SET `owner` = 0, `lastwarning` = 0 WHERE `id` = XX;
And, if online, the unique option is changing it ingame (I think).
 
Last edited:
paid - Date the house was paid.
warnings - How many "rent overdue" warning does this house have
lastwarning - When was the last warning given.
rent - if you choose rent mode in config, then this is simply, the rent to pay each time.

That should cover them all ;)
 
Back
Top