View Full Version : ≈ [Share] How to delete char/account
Found a lot of threads about deleting but no one has the end.
As I understand we can find char_ID and use "lin_DeleteChar" from Stored Procedures in Lin2world on your server. It will delete the char but left all data in tables.
I haven't found the procedure to delete account. So it just 2 question left.
1. How to delete account?
2. Is there any way to delete char from database complitelly?
2:
DELETE FROM user_data WHERE char_id =
DELETE FROM user_item WHERE warehouse BETWEEN 0 AND 1 AND char_id =
DELETE FROM user_skill WHERE char_id =
DELETE FROM user_data WHERE char_id =
DELETE FROM user_macro WHERE char_id =
DELETE FROM user_log WHERE char_id =
DELETE FROM user_history WHERE char_id =
....
etc etc...
1:
DELETE FROM user_account WHERE uid =
DELETE FROM ssn WHERE ...
....
same as char... look for all tables and create a little script to do it more easy
Yep, I understand that, but wouldn't this create any errors in the game?
Especially when I have this:https://postpacific.mmorpg-game.online/forums/showthread.php?t=5860
I already created the querry for all tables, but do not want to have an error :)
Here is the query which deletes the selected Char. Just put char_id instead of xx and run. Char_id could be found in User_data table. Soon will post the query to delete an account.
Actually I want to create the script which you could run from your web page :)
P.S. Rar file updated
Вложения из исходного сообщения (сами файлы в копии отсутствуют):
full_char_delete.rar — 473 байт
Be carefull with this -> DELETE FROM user_item WHERE char_id = xx
You can delete CLAN WAREHOUSE with this query.
The correct one would be
DELETE FROM user_item WHERE char_id = xx AND warehouse BETWEEN 0 AND 1
Wow! That's why you posted it on your firs post :) Didn't understand it :)
But if the warehouse will be 3 for example, what will happen if char_id stays there? Would that cause an error? And anyway, if I delete using CHAR_ID, the warehouse could be deleted if that char is the lider, but if I delete char, it would give the error anyway, as only lider of the clan could take something from warehouse.
What do you think?
May be, a db mantenaince's script deleting al characters (or accounts) that havent been used since a x period of time , could be good ^^
You could modify my script to do it. just add few lines :)