What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

TehHuntorz

Member
Joined
Jan 15, 2010
Messages
63
As title states, just looking for a method to delete an InventoryItem.
Am trying to make a quick plugin to remove the junk from my inventory whilst botting.

So, just doing something like this...

Code:
foreach (var item in GameManager.Inventory.Bags.Items)            
{
         if ((ItemType)item.Info.Type.Id == ItemType.TechnologistFormula)
         {
                //item.Delete();
         }
}

But Delete or similar methods don't exist. (There's a Dispose, but I assume that's just memory related)

Is there something I'm missing, or?
 
Code:
private void DeleteItem(InventoryItem Item)
{
  ConfirmActionButton btn = new ConfirmActionButton(
  @"local InventoryBag = Apollo.GetAddon('Inventory')
      if InventoryBag ~= nil then
        local btn = InventoryBag.wndDeleteConfirm:FindChild('DeleteBtn')
        if btn ~= nil then
          btn:SetActionData(GameLib.CodeEnumConfirmButtonType.DeleteItem, " + Item.InventoryId + @")
          return btn
        end
      end
  ");

  if (btn.IsValid)
    btn.Click();
}

It's not wrapped, so you gotta do it yourself, shouldddd still work since I used it last! :)
 
Back
Top