Quote:
Originally Posted by sarkoplata
USE SRO_VT_SHARD
DELETE FROM _Items WHERE OptLevel > 30
|
Will either cause an error right away at the execution since there are constraints referenced or as soon as someone tries to login to his/her char again.
If you're going to delete an item completely you'd have to set the reference on the inventory tables to 0/NULL (belongs to its location) AND delete the ItemID from _ItemPool as well.
I would also recommend against the use of a simple update statement since e.g. Alchemy Stones use the OptLevel for their assimilation values (!> 30 though, just sayin) - could end up turning every stone to a 0% one.
You may use..
Code:
UPDATE _Items
SET OptLevel = 0
WHERE
RefItemID in
(
SELECT ID FROM _RefObjCommon
WHERE (CodeName128 like 'ITEM_CH%' OR CodeName128 like 'ITEM_EU%')
AND TypeID1 = 3 AND TypeID2 = 1 AND TypeID3 != 7 AND [Service] = 1
)
AND
OptLevel > 30

sry, in case I was acting like a smartypants