public bool MoveItem(uint itemId, int count, uint moveIntoId, int x, int y, int z)
{
if (DragItem(itemId, count))
return DropItem(moveIntoId, x, y, z);
return false;
}
I have a list of uints representing items that i want to loot, we will use Zoogi as an example. The way that i thought you would look for the item is by using 0x26B7. So I added 0x26B7 into the list. Then down in the loot function i have
Stealth.Client.FindTypeEx(0xFFFF, 0xFFFF, corpseId, true);
var itemsFound = Stealth.Client.GetFindList();
if (itemsFound.Count < 1)
{
_messanger.Invoke($"Nothing found in container");
Stealth.Client.Ignore(corpseId);
lootingQueue.Remove(corpseId);
return;
}
_messanger.Invoke($"looting..." + itemsFound.Count);
foreach (var item in itemsFound)
{
bool transfer = false;
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if (LootTypes.Contains(Stealth.Client.GetType(item)))
{
_messanger.Invoke($"loot type not in list");
transfer = true;
}
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.
.
.
.
if (transfer)
{
ct = new CancellationTokenSource();
_currMovingItem = item;
_messanger.Invoke($"attempting loot item");
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//try to make item into an Item
Item thisItem = new Item(item);
thisItem.MoveItem(backpack);
//^^^^^^^^^^^^^^^^^^^^^
//Stealth.Client.MoveItem(item, 0, _backpackId, 0, 0, 0);
}
Maybe im getting confused about what uint itemId is...