Quote:
Originally Posted by sys[antaris]
lin_GetItem
DELETE user_item WHERE item_id = @item_id
change to:
UPDATE user_item SET char_id = 0, item_type = 0 WHERE item_id = @item_id
lin_DeleteItem
DELETE user_item FROM USER_ITEM WHERE item_id=@item_id
change to:
UPDATE user_item set char_id=0, item_type=0 WHERE item_id=@item_id
lin_AmountChange
DELETE user_item WHERE char_id = @char_id AND item_id = @item_id
change to:
UPDATE user_item SET char_id = 0, item_type = 0 WHERE char_id = @char_id AND item_id = @item_id
this changes fix all errors in cached eg:
Code:
10/10/2006 15:33:xx.xx7, Item delete Error, id[304546]
10/10/2006 15:33:xx.xx7, [.\WareHouse.cpp][4195] item delete fail[304546][1835][1795]
sry my eng 
|
I belive targeted by sys[antaris] strings must be changed to
lin_DeleteItem:
DELETE FROM USER_ITEM WHERE item_id=@item_id
lin_GetItem:
DELETE FROM USER_ITEM WHERE item_id=@item_id
lin_AmountChange
DELETE FROM user_item WHERE char_id = @char_id AND item_id = @item_id
also set in lin_AmountChange
IF ( @nResultAmount = 0 AND @bZeorDelete = 1)
to
IF ( @nResultAmount = 0 AND @bZeorDelete = 0)
Dont know with method is better but this mod take off item delete errors too.
If it set to UPDATE your user_item table will grow _very_ fast i think.