Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 10.10.2006, 22:15   #5
astrid
Архивный участник
 
Join Date: May 2006
Posts: 55
Default

Quote:
Originally Posted by sys[antaris] View Post
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.
astrid is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:36.