POSTPACIFICFORUM ARCHIVE · 2004–2007Архив сообщества

[Help] Removing an item.

6 сообщений · Darklink · 20.08.2007 08:14

#1

[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 :D
Исходный текст
#2
shutdown cached, then run in mssql:

use lin2world;
delete from user_item where item_type in (4218,3958,3959,3931,3927,3928,3929,3926,3930,3933,3932,3935,3934);
Исходный текст
#3
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
Исходный текст
#4
Цитата · Drag
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...

DELETE FROM user_item
WHERE item_type BETWEEN 3926 AND 3935
OR item_type = 4218
Исходный текст
#5
FidoW i never had problems with that, but agree
Исходный текст
#6
thanks a lot guys ;)
Исходный текст