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

How to select item based on location in the inventory?

tesslerc

New Member
Joined
Jun 27, 2012
Messages
803
Reaction score
9
If i want to select the item (object) located in the top left area of my inventory, how can this be done?
 
I don't mean to be ignoring you... so many updates so little time
It's here:

Zeta.Internals.Actors.ACDItem.InventoryRow
Zeta.Internals.Actors.ACDItem.InventoryColumn

These will be 0 based integers from top -> bottom and left -> right

And also see: (for slot type)
Zeta.Internals.Actors.ACDItem.InventorySlot


You can use a particular slot like this:

Code:
var myItem = ZetaDia.Me.Inventory.Backpack.Where(i => i.InventoryColumn == 0 && i.InventoryColumn == 0).FirstOrDefault();
ZetaDia.Me.Inventory.EquipItem(myItem.DynamicId, InventorySlot.PlayerLeftHand);


You can also edit protected slots by setting this, but be very careful with this!

Zeta.CommonBot.Settings.CharacterSettings.ProtectedBagSlots
 
Last edited:
Back
Top