Database cleanup problem...

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
babyjason
Posts: 575
Joined: Wed Dec 02, 2009 7:59 pm

Database cleanup problem...

Post by babyjason »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

I was told that if you delete a character in the characters.sql table, the gameserver cleans the items.sql database at next server startup.

well, today i wanted to verify if it truly does, but it does not. a character owner id, that doesent exist, still had items in items.sql as owner...

is there any script to clean up items.sql database, from items belonging to characters that dont exist anymore?

ty.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Database cleanup problem...

Post by _DS_ »

Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
babyjason
Posts: 575
Joined: Wed Dec 02, 2009 7:59 pm

Re: Database cleanup problem...

Post by babyjason »

well, wich command string is the one that deletes orphaned character items ?

o only see 2 commands wich delete items from db...

Code: Select all

 "DELETE FROM character_instance_time WHERE time <= ?",100                         "DELETE FROM character_skills_save WHERE restore_type = 1 AND systime <= ?"     };
this, i see updates only items...

Code: Select all

  "UPDATE items                 SET owner_id = ?    WHERE owner_id = ?",39                  "UPDATE items                 SET object_id = ?   WHERE object_id = ?",
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Database cleanup problem...

Post by _DS_ »

_DS_ wrote:line 212
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
babyjason
Posts: 575
Joined: Wed Dec 02, 2009 7:59 pm

Re: Database cleanup problem...

Post by babyjason »

thank you ,
if it doesent work i ll try to manually use the line in sql database to clean up...
babyjason
Posts: 575
Joined: Wed Dec 02, 2009 7:59 pm

Re: Database cleanup problem...

Post by babyjason »

confirmed again today, deleted few characters, started game server after, but in items.sql the owner id corresponds to deleted characters id... :(
User avatar
achilless
Posts: 153
Joined: Thu Oct 02, 2008 7:40 pm
Location: Russia & Ukraine

Re: Database cleanup problem...

Post by achilless »

Post Reply