Alliance leader in Database

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
reblock
Posts: 21
Joined: Fri Mar 05, 2010 2:08 pm

Alliance leader in Database

Post by reblock »

Hello. Can you help me. I can't find where alliance leader is stored in database. I found only clan_data table, but there is no such field.
Second question. Why ally_name and ally_crest_id are stored in clan_data (dublicated records)? Maybe we need to make normalization (or I didn't understand something)?
AdvancedSky
Posts: 14
Joined: Sun May 09, 2010 2:10 pm

Re: Alliance leader in Database

Post by AdvancedSky »

reblock wrote:Hello. Can you help me. I can't find where alliance leader is stored in database. I found only clan_data table, but there is no such field.
Second question. Why ally_name and ally_crest_id are stored in clan_data (dublicated records)? Maybe we need to make normalization (or I didn't understand something)?

1. I think if you take clan_id (clan nr. 1) and put it to ally_id (to clan nr. 2) , then clan nr.1 and clan nr.2 will have alliance. And the clan_id that is same as the ally_id is the ally leader clan -> this clans leader is ally leader auto.
2. See nr 1, that's why.
reblock
Posts: 21
Joined: Fri Mar 05, 2010 2:08 pm

Re: Alliance leader in Database

Post by reblock »

Thanks. You are right.
P. S. I am writing now PTS (Hellbound) -> L2J database transfer script.
Post Reply