Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Темы без сохранившегося раздела (https://postpacific.mmorpg-game.online/forumdisplay.php?f=10001)
-   -   [Help] Removing an item. (https://postpacific.mmorpg-game.online/showthread.php?t=8316)

Darklink 20.08.2007 08:14

[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

adriahu 20.08.2007 08:24

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);


Drag 20.08.2007 08:24

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

FidoW 20.08.2007 08:46

Quote:

Originally Posted by Drag (Post 94990)
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


Drag 20.08.2007 08:48

FidoW i never had problems with that, but agree

Darklink 20.08.2007 11:45

thanks a lot guys ;)


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