A simple housing system

Joined
Aug 17, 2016
Messages
33
Reaction score
6
I had written this a month or two back, but promised to release it once it was done, but kinda forgot. So here it is.

You can just create a 'House' class, and then insert this into it.



i've modified my MapleMapFactory so it'd be easier to use, but the original is this:
For the database part you can insert this into your db:



If you use PHPMyAdmin, you can also add a relation between characters->id and houses->OwnerId

and add your own rules (that is if you use InnoDB or others that support relational databases.

For the antileech, i'll just not include the getHouse and setHouse, aka the getter and setter, because even idiots would be able to figure that one out.

And here's the NPC script


it'd be nice to leave my credit in there, but idm too much.

(It's not much, but i too have used releases from ragezone, which is why i feel a duty to also release something back even if it's not the best/i'll get flamed somehow)
 
Back