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.
Database cleanup problem...
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Database cleanup problem...
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 575
- Joined: Wed Dec 02, 2009 7:59 pm
Re: Database cleanup problem...
well, wich command string is the one that deletes orphaned character items ?
o only see 2 commands wich delete items from db...
this, i see updates only 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 <= ?" };
Code: Select all
"UPDATE items SET owner_id = ? WHERE owner_id = ?",39 "UPDATE items SET object_id = ? WHERE object_id = ?",
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Database cleanup problem...
_DS_ wrote:line 212
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 575
- Joined: Wed Dec 02, 2009 7:59 pm
Re: Database cleanup problem...
thank you ,
if it doesent work i ll try to manually use the line in sql database to clean up...
if it doesent work i ll try to manually use the line in sql database to clean up...
-
- Posts: 575
- Joined: Wed Dec 02, 2009 7:59 pm
Re: Database cleanup problem...
confirmed again today, deleted few characters, started game server after, but in items.sql the owner id corresponds to deleted characters id... 

- achilless
- Posts: 153
- Joined: Thu Oct 02, 2008 7:40 pm
- Location: Russia & Ukraine