Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 20.08.2007, 08:14   #1
Darklink
Архивный участник
 
Join Date: Jul 2007
Posts: 38
Default [Help] Removing an item.

Hey

On my server for beta i provided players with l2day scrolls in the shops. Now as i plan to go live and i am not going to wipe. Whats the best way to remove all l2day scrolls from people inventory's,warehouse or any other places they have stored it.

Thanks in advance
Darklink is offline  
Old 20.08.2007, 08:24   #2
adriahu
Архивный участник
 
Join Date: Oct 2006
Posts: 47
Default

shutdown cached, then run in mssql:
Code:
use lin2world;
delete from user_item where item_type in (4218,3958,3959,3931,3927,3928,3929,3926,3930,3933,3932,3935,3934);
adriahu is offline  
Old 20.08.2007, 08:24   #3
Drag
Архивный участник
 
Join Date: Mar 2006
Posts: 241
Default

Ubber easy way via sql:
DELETE FROM user_item WHERE (item_type>'3926' AND item_type<'3935') OR item_type='4218'

Hahah adriahu was first xD
Drag is offline  
Old 20.08.2007, 08:46   #4
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by Drag View Post
Ubber easy way via sql:
DELETE FROM user_item WHERE (item_type>'3926' AND item_type<'3935') OR item_type='4218'

Hahah adriahu was first xD
Well... using [ ' ] with int values is wrong!

Something like this would be better, adriahu is a good choice too but this is more easy and more logical, using [ ' ] will take the values as string and not as integers... so... thats wrong...

Code:
DELETE FROM user_item
WHERE item_type BETWEEN 3926 AND 3935
OR item_type = 4218
FidoW is offline  
Old 20.08.2007, 08:48   #5
Drag
Архивный участник
 
Join Date: Mar 2006
Posts: 241
Default

FidoW i never had problems with that, but agree
Drag is offline  
Old 20.08.2007, 11:45   #6
Darklink
Архивный участник
 
Join Date: Jul 2007
Posts: 38
Default

thanks a lot guys
Darklink is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:44.