PDA

View Full Version : [Notes]breakdown on ItemClearOnStart=1


Digital
20.05.2005, 03:12
well thx to NBKua :)

found this i sink u nead it
procedure in lin2world server
lin_DeleteNotOwnedItem
DELETE user_item WHERE char_id = 0 OR item_type = 0
chenge to sams like
INSERT INTO user_item_lost (create sams table to copy to) SELECT * FROM user_item where char_id = 0 or item_type=0
and then delete
DELETE user_item WHERE char_id = 0 OR item_type = 0
can delet only adena and arrows
DELETE user_item WHERE char_id = 0 and item_type = 57 (this delete only adena on the ground)

sorry for bad ebglish. if it helps (i dont test it) pliase mail to nbk@uct.ua
this procedure i'm think can start only if in l2cashe.ini
ItemClearOnStart=1

if item in warehouss its have a warehouse 1 if in clanwarehouse it's have a warehouse 2 but it always have a char_id <>0

----------
[edit]
this thing just reminded me of something... we should somewhat mod warehouse as well.. to support global freight :)
some one do get back to me on this :)

Kane Hart
20.05.2005, 03:23
confused a tad so this makes so when server loads items that will be cleared is adena and arrows?

djvogans
20.05.2005, 05:55
u can run this stored procedure with server online .. and clear only adena and arrows from the ground...just a guess

BiGBoY
20.05.2005, 07:57
You can delete all unowned items from database manualy if u want but it wont affect the online server becouse of CacheD server. This crappy application rewrites all the items back to database.
I believe the only thing to successfuly delete actualy unowned ingame items is to force CacheD to excecute (EXEC lin_DeleteNotOwnedItem) command.

archy
21.05.2005, 05:53
This crappy application rewrites all the items back to database.

This crappy application is actually one of the reasons its so much better than L2J - keep that in mind ;)

Kane Hart
21.05.2005, 06:01
This crappy application rewrites all the items back to database.

This crappy application is actually one of the reasons its so much better than L2J - keep that in mind ;)

well said :twisted: