Deleting 10000 lv. 20 or lower chars

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
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: Deleting 10000 lv. 20 or lower chars

Post by denser »

you said that you wont to get tails and clean delete....i contrib you a method with 100% clean deletion.
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: Deleting 10000 lv. 20 or lower chars

Post by momo61 »

denser wrote:you said that you wont to get tails and clean delete....i contrib you a method with 100% clean deletion.
>_< i dont understand you m8
User avatar
Aikimaniac
L2j Inner Circle
L2j Inner Circle
Posts: 3048
Joined: Sun Aug 07, 2005 11:42 pm
Location: Slovakia

Re: Deleting 10000 lv. 20 or lower chars

Post by Aikimaniac »

what is not understandible on what denser explained...you will fully clear erase from DB for those toons so he made queries with HOW TO for you..not sure if there is way to explain it more easier..
Image
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: Deleting 10000 lv. 20 or lower chars

Post by denser »

Code: Select all

UPDATE characters SET deletetime=1 WHERE level<=20;UPDATE characters SET account_name=momo61 WHERE deletetime=1;
edited for real names in SQL, earlier wrote by memory) now look at sql table.
hope you will find more easy way...but i do not see it.

regards
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: Deleting 10000 lv. 20 or lower chars

Post by momo61 »

deleted 27.000 characters ^^

that was so much fun :D
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: Deleting 10000 lv. 20 or lower chars

Post by denser »

hope you like it if it needs again)
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: Deleting 10000 lv. 20 or lower chars

Post by momo61 »

denser wrote:hope you like it if it needs again)
I didnt use your scripts X_x I deleted the characters manually in Navicat :P
User avatar
LaraCroft
Posts: 360
Joined: Sat Aug 08, 2009 1:37 am

Re: Deleting 10000 lv. 20 or lower chars

Post by LaraCroft »

Hi guys....
Sorry... I see that is a old topic...
But...
How do I delete the characters that do not log in the server for more than 120 days?
Using denser's method...

Thx a lot...
:)
!!!knowledge and intelligence must be shared!!!
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: Deleting 10000 lv. 20 or lower chars

Post by denser »

[sql]UPDATE characters SET deletetime=1 WHERE level<=20 AND (UNIX_TIMESTAMP()*1000-lastAccess) >= 10368000000;UPDATE characters SET account=momo61 WHERE deletion_time=1;[/sql]
may be that helps you ;)
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
User avatar
LaraCroft
Posts: 360
Joined: Sat Aug 08, 2009 1:37 am

Re: Deleting 10000 lv. 20 or lower chars

Post by LaraCroft »

Ok...
Works so fine...
Thx a lot guys
:mrgreen:
!!!knowledge and intelligence must be shared!!!
blacksea
Posts: 458
Joined: Fri Oct 05, 2007 1:29 am

Re: Deleting 10000 lv. 20 or lower chars

Post by blacksea »

for all accounts/chars etc older than 6 months?:-s
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Deleting 10000 lv. 20 or lower chars

Post by janiii »

blacksea wrote:for all accounts/chars etc older than 6 months?:-s
what about using a little bit of math? the time difference is in milliseconds..

Code: Select all

UPDATE characters SET deletetime=1 WHERE level<=20 AND (UNIX_TIMESTAMP()*1000-lastAccess) >= [b]10368000000[/b];
120 days -> 120*24*60*60*1000 milliseconds -> 10368000000 number in the query
6 months is about 180 days -> 180*24*60*60*1000 milliseconds -> your number
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
blacksea
Posts: 458
Joined: Fri Oct 05, 2007 1:29 am

Re: Deleting 10000 lv. 20 or lower chars

Post by blacksea »

and level<=85 i supose.. i used option from idfactory but it takes too long.. after 6 hours still not finished
User avatar
LaraCroft
Posts: 360
Joined: Sat Aug 08, 2009 1:37 am

Re: Deleting 10000 lv. 20 or lower chars

Post by LaraCroft »

janiii wrote:UPDATE characters SET deletion_time=1 WHERE level<=20 AND (NOW()-`characters`.lastAccess) >= 10368000000;
Don't work so fine...
All characters below lvl 20 are set to delete...
:?: :?:
Ps: Im using the sql on Navicat

One Question:
The acc are deleted atomatic by server or only when the player try to log in???
Last edited by LaraCroft on Sat Jul 10, 2010 1:50 pm, edited 1 time in total.
!!!knowledge and intelligence must be shared!!!
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: Deleting 10000 lv. 20 or lower chars

Post by denser »

i dont check it, but sintaxis is right... may be something wrong with lastaccess column?

strange...
[sql]SELECT * FROM characters WHERE (NOW()-lastAccess) < 100000;[/sql]
give me zero result. but i just now logged in adn then logout... :shock:
Last edited by denser on Sat Jul 10, 2010 1:58 pm, edited 1 time in total.
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
Post Reply