What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

[REQ] potions cap at 99 (or number of your choice)

Joined
Jan 16, 2010
Messages
3,041
Reaction score
8
When set at 100 if DB is using one with a stack of 99 it will put it in another slot, and then there is 2 slots with potion in your inventory, the single potion is never used first. You have an extra slot used in your inventory then.

G
 
Backup your GilesTrinity.cs before.

Go to line 8312 (v.1.6.3.4)

Code:
                        if (settings.iFilterPotions == 2)
                        {
                            // Map out all the items already in the backpack
                            int iTotalPotions =
                                (from tempitem in ZetaDia.Me.Inventory.Backpack where tempitem.BaseAddress != IntPtr.Zero where tempitem.GameBalanceId == tempbalanceid select tempitem.ItemStackQuantity).Sum();
                            [B]if (iTotalPotions > 99)[/B]
                            {
                                return false;
                            }
                        }

and switch the 99 to a number you want. I choosed 89.
 
Back
Top