I try search on forum, but without sucess.
I have 2 server (low and high). I like merge this 2 server on 1.
How I can make this merge (charId, items etc) without duplicate errors?
Have any script for server merge?
Thx
Server Merge
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- Szponiasty
- Advanced User
- Posts: 557
- Joined: Mon Apr 21, 2008 1:31 pm
- Location: Eastern Poland
Re: Server Merge
There's no such thing, or at least not shared publicly. U can do it urself if u know what and how to do (or hire someone to do it for uPSGB wrote:Nobody?

And in the next chronicle they went into space, fighting the evil empire... In a galaxy far, far away xD
- Gnacik
- L2j Veteran
- Posts: 925
- Joined: Tue Dec 16, 2008 3:49 pm
- Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
- Contact:
Re: Server Merge
It's quite simple. on one server make query to update charid and itemid in all tables. check min and max values, if for example charId=charid+100000000 is enough. Then export that db and import to first one, just simple insert without droping table or smth.
-
- Posts: 19
- Joined: Sat Oct 09, 2010 11:19 am
Re: Server Merge
Add a number before the ID.
Id's from server high -> 1xxxxxx ("xxxxxx" is the original ID)
Id's from server low -> 2xxxxxx ("xxxxxx" is the original ID)
Id's from server high -> 1xxxxxx ("xxxxxx" is the original ID)
Id's from server low -> 2xxxxxx ("xxxxxx" is the original ID)
-
- Posts: 39
- Joined: Thu Jun 10, 2010 9:06 am
Re: Server Merge
Actually if both databases are on the same machine its as easy as INSERT INTO (SELECT) ON DUPLICATE KEY update id=id+1 mega easy and this is for every character info tableGnacik wrote:It's quite simple. on one server make query to update charid and itemid in all tables. check min and max values, if for example charId=charid+100000000 is enough. Then export that db and import to first one, just simple insert without droping table or smth.
The bigger issue is with duplicate names and maintaining relativity for items owned by players/warehouse/mails.
It can be done you sure must have a backup and be able to write scripts (php, python, simple java apps etc)