I already transfered all data (really ALL) from NCZ0ft database to yours. It's not a big problem (much work for analysis, but it's real).janiii wrote:e.g. in items the owner id is taken from characters or from clans, so they cannot be same.
for augmentations - yeah, somehow that is wrong, because we already have a mapping between augId and skill id-level, so there should be no need for that in db. true.
server written by NCZ0ft has different structure, so you cannot just take data from there and migrate it to l2j. different tables, different data structure, different logic.
You already have field in [items] called [loc]. So if loc = CLANWH - this is clan item (and ownerId = clanId).
Char items: SELECT * FROM items WHERE owner_id = ?d AND loc <> 'CLANWH' (?d - charId)
Clan items: SELECT * FROM items WHERE owner_id = ?d AND loc = 'CLANWH' (?d - clanId)
This way is used in NCZ0ft database.
Oh, I almost forget, why loc field has VARCHAR type and not ENUM? ENUM is much faster, because it is just INT with aliases.