Re: Deleting 10000 lv. 20 or lower chars
Posted: Sun May 10, 2015 1:55 pm
Hy!
Looking for a script wich can clear all char related data from db.
Not just the char it self.
Clan, Char items, etc where one data is stored.
I have a this script
" $query = ("DELETE FROM characters WHERE characters.accesslevel = 0 AND DATEDIFF(CURRENT_DATE( ) , FROM_UNIXTIME(`lastAccess`/1000)) > 180");
$result = mysql_query($query) or die(mysql_error());
break;
"
But the GS did not clean up the db is the char it self deleted.
So if chance the charId is readded by a char creation the new char have the deleted ones items to.
The new char is even rejoin the clan if the deleted char was in clan so it mess up things.
thx Fowardly
Looking for a script wich can clear all char related data from db.
Not just the char it self.
Clan, Char items, etc where one data is stored.
I have a this script
" $query = ("DELETE FROM characters WHERE characters.accesslevel = 0 AND DATEDIFF(CURRENT_DATE( ) , FROM_UNIXTIME(`lastAccess`/1000)) > 180");
$result = mysql_query($query) or die(mysql_error());
break;
"
But the GS did not clean up the db is the char it self deleted.
So if chance the charId is readded by a char creation the new char have the deleted ones items to.
The new char is even rejoin the clan if the deleted char was in clan so it mess up things.
thx Fowardly