CLANS and ALLIES

Post all your tuts or request for tuts here.
Post Reply
User avatar
Losdivinos
Posts: 139
Joined: Tue Mar 01, 2011 5:44 pm

CLANS and ALLIES

Post 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
Ask me anything about SEO & Marketing.
Skype: rasmus_355
Xaleph
Posts: 897
Joined: Mon Feb 07, 2011 2:55 am

Re: CLANS and ALLIES

Post 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.
User avatar
Losdivinos
Posts: 139
Joined: Tue Mar 01, 2011 5:44 pm

Re: CLANS and ALLIES

Post by Losdivinos »

That sounds easy! Thanks. ;) I have vacation, so my brain is not 100% active ;D
Ask me anything about SEO & Marketing.
Skype: rasmus_355
Post Reply

Return to “Tutorials”