Quantcast
Channel: OTLand
Viewing all articles
Browse latest Browse all 33167

One house per account - simple LUA, does not require DB modifications

$
0
0
Hello!

I wrote this today for my server, and I remember seeing some unanswered threads in OTLand asking for it.

What it does is, it checks for other characters in the same account and then checks the houses table for an owner with that id.

There are two advantages over using an extra attribute in 'accounts' in your DB:
  1. you don't need to make an extra modification in your DB;
  2. there are too many ways a player can loose a house, and you would need to think of all of them in...

One house per account - simple LUA, does not require DB modifications

Viewing all articles
Browse latest Browse all 33167