• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [REQ] potions cap at 99 (or number of your choice)

    Discussion in 'Archives' started by theatristformallyknownasG, Oct 22, 2012.

    1. theatristformallyknownasG

      theatristformallyknownasG Active Member

      Joined:
      Jan 16, 2010
      Messages:
      3,041
      Likes Received:
      8
      Trophy Points:
      38
      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
       
    2. dudeson

      dudeson New Member

      Joined:
      Oct 7, 2012
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      0
      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.
       
    3. theatristformallyknownasG

      theatristformallyknownasG Active Member

      Joined:
      Jan 16, 2010
      Messages:
      3,041
      Likes Received:
      8
      Trophy Points:
      38
      Thanks, I'll give it a whirl

      G
       

    Share This Page