[SVN:3229] Fixed MerchantTradeItem pages for instanced items

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

[SVN:3229] Fixed MerchantTradeItem pages for instanced items

Postby Leodagan » Sat Aug 24, 2013 2:25 pm

MerchantTradeItem has a bug with it's page system for instanced objects...

It never adds page index to current slot index, so instanced MerchantTradeItem list (with no database ID) can only have one page !

I modified most item storage procedures to take page as a multiplier for item index (page*MAX_ITEM_BY_PAGE+Slot_position)

Honestly I was unsure if this code was incomplete, but after editing it looks like someone could have left a "TODO" tag ;)
Attachments
MerchantTradeItems.cs.patch
(2.26 KiB) Downloaded 15 times
Last edited by Leodagan on Thu Aug 29, 2013 8:07 am, edited 1 time in total.
User avatar
Leodagan
Developer
 
Posts: 1350
Joined: Tue May 01, 2012 9:30 am
Website: https://daoc.freyad.net
Location: Lyon

Re: Fixed MerchantTradeItem for multi-page instanced items

Postby Graveen » Sun Aug 25, 2013 7:40 am

TY my friend. Excellent work
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: [SVN:3229] Fixed MerchantTradeItem pages for instanced i

Postby Leodagan » Thu Aug 29, 2013 8:08 am

Added to SVN
User avatar
Leodagan
Developer
 
Posts: 1350
Joined: Tue May 01, 2012 9:30 am
Website: https://daoc.freyad.net
Location: Lyon


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 1 guest