Deleting 10000 lv. 20 or lower chars
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- denser
- Posts: 1392
- Joined: Wed May 30, 2007 9:13 pm
- Location: Russia
- Contact:
Re: Deleting 10000 lv. 20 or lower chars
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!
L2J - the place where glad to see you any time!
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: Deleting 10000 lv. 20 or lower chars
>_< i dont understand you m8denser wrote:you said that you wont to get tails and clean delete....i contrib you a method with 100% clean deletion.
- Aikimaniac
- L2j Inner Circle
- Posts: 3048
- Joined: Sun Aug 07, 2005 11:42 pm
- Location: Slovakia
Re: Deleting 10000 lv. 20 or lower chars
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..
- denser
- Posts: 1392
- Joined: Wed May 30, 2007 9:13 pm
- Location: Russia
- Contact:
Re: Deleting 10000 lv. 20 or lower chars
Code: Select all
UPDATE characters SET deletetime=1 WHERE level<=20;UPDATE characters SET account_name=momo61 WHERE deletetime=1;
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!
L2J - the place where glad to see you any time!
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: Deleting 10000 lv. 20 or lower chars
deleted 27.000 characters ^^
that was so much fun
that was so much fun
- denser
- Posts: 1392
- Joined: Wed May 30, 2007 9:13 pm
- Location: Russia
- Contact:
Re: Deleting 10000 lv. 20 or lower chars
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!
L2J - the place where glad to see you any time!
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: Deleting 10000 lv. 20 or lower chars
I didnt use your scripts X_x I deleted the characters manually in Navicatdenser wrote:hope you like it if it needs again)
- LaraCroft
- Posts: 360
- Joined: Sat Aug 08, 2009 1:37 am
Re: Deleting 10000 lv. 20 or lower chars
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...
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!!!
- denser
- Posts: 1392
- Joined: Wed May 30, 2007 9:13 pm
- Location: Russia
- Contact:
Re: Deleting 10000 lv. 20 or lower chars
[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
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!
L2J - the place where glad to see you any time!
- LaraCroft
- Posts: 360
- Joined: Sat Aug 08, 2009 1:37 am
Re: Deleting 10000 lv. 20 or lower chars
Ok...
Works so fine...
Thx a lot guys
Works so fine...
Thx a lot guys
!!!knowledge and intelligence must be shared!!!
-
- Posts: 458
- Joined: Fri Oct 05, 2007 1:29 am
Re: Deleting 10000 lv. 20 or lower chars
for all accounts/chars etc older than 6 months?:-s
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Deleting 10000 lv. 20 or lower chars
what about using a little bit of math? the time difference is in milliseconds..blacksea wrote:for all accounts/chars etc older than 6 months?:-s
Code: Select all
UPDATE characters SET deletetime=1 WHERE level<=20 AND (UNIX_TIMESTAMP()*1000-lastAccess) >= [b]10368000000[/b];
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!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 458
- Joined: Fri Oct 05, 2007 1:29 am
Re: Deleting 10000 lv. 20 or lower chars
and level<=85 i supose.. i used option from idfactory but it takes too long.. after 6 hours still not finished
- LaraCroft
- Posts: 360
- Joined: Sat Aug 08, 2009 1:37 am
Re: Deleting 10000 lv. 20 or lower chars
Don't work so fine...janiii wrote:UPDATE characters SET deletion_time=1 WHERE level<=20 AND (NOW()-`characters`.lastAccess) >= 10368000000;
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!!!
- denser
- Posts: 1392
- Joined: Wed May 30, 2007 9:13 pm
- Location: Russia
- Contact:
Re: Deleting 10000 lv. 20 or lower chars
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...
strange...
[sql]SELECT * FROM characters WHERE (NOW()-lastAccess) < 100000;[/sql]
give me zero result. but i just now logged in adn then logout...
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!
L2J - the place where glad to see you any time!