Page 1 of 1

CLANS and ALLIES

Posted: Fri Jul 01, 2011 6:26 pm
by Losdivinos
Hi!

I've not been very active lately, sorry for that!

Let's get to the point. I wanna make a clans/allies feature to my browsergame (not made from your tutorials), but i have no clue how. Could you try to explain to me, how i should do this?

Thanks! :D

Re: CLANS and ALLIES

Posted: Fri Jul 01, 2011 7:09 pm
by Xaleph
Its not that hard. You have a table called: Clan or whatever, you add an ID, a name field ( clans have names right? ) and some other specific fields needed for your clan system. You should create a new field in your player table and add a field called clan_id, which is in fact a reference to the ID from the clan table.

Now, the default value should be something like 0, this means this player is not member of a clan. If he did choose to join one, you can add the clan_id in the players table.

If you want specific stuff for your clan, like grouping, titles et cetera ( housing, bonusses etc ) you add this as well to your clan table.

Now, if your database is done, you can implement right? PHP isn`t that hard.

Re: CLANS and ALLIES

Posted: Fri Jul 01, 2011 7:58 pm
by Losdivinos
That sounds easy! Thanks. ;) I have vacation, so my brain is not 100% active ;D