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

disable potion looting

figured it out. edited itemhandling.cs

the potion cap in trinity is not working, in case that wasnt clear
 
this is what to edit

plugins/triningty/items/itemhandling.cs
// Potion filtering
if (itemType == GItemType.HealthPotion)
{
return false;
}
 
Will be fixed in next build. It was counting the number of stacks, not the number of potions in each stack. Correct code is:

Code:
                    // Potion filtering
                    if (itemType == GItemType.HealthPotion)
                    {
                        int potionsInBackPack = ZetaDia.Me.Inventory.Backpack.Where(p => p.ItemType == ItemType.Potion).Sum(p => p.ItemStackQuantity);


                        if (potionsInBackPack >= Settings.Loot.Pickup.PotionCount)
                            return false;
                        else
                            return true;
                    }
 
Back
Top