View Single Post
  #19  
Old 07-13-2012, 09:32 AM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

One last question (well, maybe two) for you guru's out there before I head off to bed...


I see that items stored on the cursor beyond slot #30 are in slots beginning at #8001 in the database. This appears to successfully reload since I had
both the slot #30 and #8001 items when I logged back in.

First, I'm not seeing where this extra range is defined anywhere in Item.h, Item.cpp, inventory.h or inventory.cpp. In addition, no checks are made to
this range. These are probably not an issue since we don't want to be trading in this area anyways.


Question 1: What is the maximum range for the additional cursor slots?

Question 2: Where are the bag slots defined for these cursor extra slots??? (see where I'm going?)


If a full bag is loaded to one of the #8001+ slots due to overloading your inventory, when it gets bumped to slot #30, where does the information come
from for the items that used to be in there?

If there are bag slot id ranges for the additional cursor range, I'm still trying to find them somewhere. Otherwise, this is where the loss of items is coming
from on the corpse looting when someone grabs extra stuff for a corpse run. If there are no extra slots, the only thing I can think to do would be to auto-loot
everything but the bags, then calculate how many slots are left to hold bags and cancel the transaction if there aren't enough spaces to safely loot them.


I would like to know the ranges for the extra cursor slots and their bag slots, if they exist.


Thanks!
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote