[DEV]DjSt3rios Posted April 29, 2010 Posted April 29, 2010 Hello everyone, i would like to ask if there is anyway, or a program, to find and delete inactive characters/accounts. I searched on the forum, but i didn't find anything. If someone has an idea, please tell me. Thanks for your time.
0 Matim Posted April 29, 2010 Posted April 29, 2010 Hello everyone, i would like to ask if there is anyway, or a program, to find and delete inactive characters/accounts. I searched on the forum, but i didn't find anything. If someone has an idea, please tell me. Thanks for your time. You can create new SQL file.. with simple check.. 'lastactive'
0 mogo Posted April 29, 2010 Posted April 29, 2010 The sql file wouldn't be so simple if you wanted to also delete the characters/items/macros/shortcuts/whatever of the unused account :)
0 Alexi Posted April 30, 2010 Posted April 30, 2010 I think that i have what you asking for... DELETE FROM characters WHERE lastAccess < 466560000; DELETE FROM accounts WHERE lastactive < 466560000; With this you will delete characters and accounts that arent connected on your server for 3 months...
0 kuba90 Posted April 30, 2010 Posted April 30, 2010 The database has dependancies in its model. For example, a Character depends on the account, and items, skills etc depend on charId. To clean the db you will do the inverse process. Delete skills, items bla bla based on charId, then delete the char, then the accounts. Thats one way to do your script.
0 bobolover Posted April 30, 2010 Posted April 30, 2010 The database has dependancies in its model. For example, a Character depends on the account, and items, skills etc depend on charId. To clean the db you will do the inverse process. Delete skills, items bla bla based on charId, then delete the char, then the accounts. Thats one way to do your script. is enough to delete account and chars ... l2j have auto cleanup for other things like items or whatever:P if owner of item dont exist anymore
Question
[DEV]DjSt3rios
Hello everyone, i would like to ask if there is anyway, or a program, to find and delete inactive characters/accounts. I searched on the forum, but i didn't find anything. If someone has an idea, please tell me. Thanks for your time.
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now