Yeah, that, that is inventory update, you notice that when printing is a bit slow (anyway 167 ms is no that slow ) and 9 ms to update full inventory without printing, i think its an improvement ^^rock5 wrote:I wasn't aware of that. I have never ever used sort (and probably never will)^^.VoidMain wrote:Unfortunately, no, if you move around some items and press sort, BagId changes...
The only places I see SlotNumber used will become obsolete. Looks like AutoSell is the only thing that actually needs it.VoidMain wrote:As for SlotNumber, well, is not there, at least not yet, can you check with me if there is any other function than the autosell that uses it? If its just that one we can move it fully to igf...
I think icon was just added because it was a value returned by GetBagItemInfo. I'm sure it has never and will never be used in rombot.VoidMain wrote:Icon i'm not getting it because i didn't see it used anywhere but maybe i missed something but, honestly, we have no use for icon... I mean, as users, only uses for icon might be for an addon but outside the game has little to no meaning at all...
I'm not sure what you mean. The yellow data takes about 6s. The white data takes a fraction of a second. Or do you mean this?VoidMain wrote:About speed: What you noticed, how it behaves? In here it takes abot 26ms when printing the data and then 2-3ms to update...Code: Select all
Inventory update took: 167 Inventory update took: 9
Now i'm able to get the cooldown for consumables, so i'm adding that, i can't see tho, where is that timer running but i think is not a problem, we can just put a flag on it when we use, li ke this:
Code: Select all
self.LastTimeUsed = getTime();
Code: Select all
if ( deltaTime( getTime(), self.LastTimeUsed ) / 1000 ) > self.CoolDown then -- Colldown finished, we can use it again
And then, well just wait for testing and Administrator aproval.
About timing to the initial parse of tables: I think that even if it takes 20 seconds (thats 10 times of what it takes here but lets supose i have a nice pc because i live of it and not everyone has one), 20 secs is not that much time if we are getting a nice implementation of an inventory capable of updating itself every second if we need it...