View Full Version : [HELP] delete old account
superkent
02.01.2006, 04:31
As to automatically remove old account with its char and item?
kepler001
02.01.2006, 05:46
sql query =)
superkent
02.01.2006, 05:56
give me plizzz this sql
lol and ur on a dev team?
Domzelan
02.01.2006, 10:44
He just ask - if you can - help if you can't - stay your mouth closed, every people study and was a time - you know nothing...
Phantom2005
02.01.2006, 11:22
By changing char_name to account_name you will be able to get char_id from account....
change superkent to the Character's name.
use lin2world
(select char_id from user_data where char_name='superkent')
change user_item to user_skill, user_activeskill, warehouse, etc.
and execute it.
use lin2world
delete from user_item where char_id='CHARID-You-got-from-first-step'
superkent
02.01.2006, 14:06
на англ. я это не смогу сказать.
есть ли у кого-то готовый скл. Мне нужно удалить старые-неиспользуемые аккаунты, вместе с их чарами , итемами, скилами, и т.д. по одному акку я буду месяц удалять.
TheOrder
02.01.2006, 16:08
I think you should thank Phantom for his action !!!
delete from user_item where char_id in (select char_id from user_deleted) use your fantasy to delete data from other tables.
for old players
delete from user_item where char_id in (select char_id from user_data where login < [put some datetime value here])
etc etc etc.....
ps: read BOL and MSDN
superkent
03.01.2006, 00:27
<rus>всем спасибо. Я думал у кого-то есть готовое решение. Понял, что прийдеться самому писать. </rus>