Well, as far as i've seen on XenoBot (bought yesterday), if two creatures fall in the same sqm, it will only loot the first one.. would be great if the bot move corpses to make sure every creature is looted in a situation like that..
Printable View
Well, as far as i've seen on XenoBot (bought yesterday), if two creatures fall in the same sqm, it will only loot the first one.. would be great if the bot move corpses to make sure every creature is looted in a situation like that..
yeah an option to loot immediately after kill would be cool too + ability to choose a looting mode
+1 good idea!
anyone found a script for this yet?... i've lost a lot of profit because of this. :S
there is no scrip for this and there most likely wont be if you want it to loot befor hand right click in the looter and channge it from last to first and it will loot after it kills the monster
Would be nice if the looter use "Browse Field" option on the Tibia client...
Function?Code:Self.BrowseField()
First the bot needs the ability to read the 8 or so visible items on a square. I know it must be possible to read, because you can see 8 or so items before they start disappearing. Also there should be a way to tell if something is covering the base ground tile. Once you add this ability to the bot you could easily implement this to the looter so that the bot would loot creatures that fall on each other with browse field. It could also loot creature that die on ladder spots, and also creatures that are underneath fire fields etc... All other creatures it could loot the normal way. The reason to do it this way is that it would be strange to loot every single creature using browse field and also inhuman. We should only use browse field where it is needed.
This would help with a lot of missed loots.
@DarkstaR
Or, y'know, you could write a script...
Here's a browse field looter. Really basic, not commented, not going to explain how to set it up. Get inspired.
As for the above post, pffffffffffffffffffffffffffffffffffffffffffff usuckCode:local lootList = {
[1] = {3031}
}
local target, pos;
LootMessageProxy.OnReceive('looting', function(p, m)
if (pos) then
--Cavebot.Stop()
Self.BrowseField(pos.x, pos.y, pos.z)
wait(300, 500)
local cont = Container.GetLast()
for spot, item in cont:iItems() do
if (Item.isCorpse(item.id)) then
cont:UseItem(spot, true)
wait(300, 500)
cont = Container.GetLast()
local offset = 0
for i = 0, cont:ItemCount() - 1 do
local itm = cont:GetItemData(i - offset)
for bp, items in pairs(lootList) do
if table.contains(items, itm.id) then
cont:MoveItemToContainer(i - offset, Container(bp), 0)
wait(300, 500)
offset = offset - 1
break
end
end
end
break
end
end
--Cavebot.Start()
end
end)
Module.New('postracking', function()
if Self.TargetID() > 0 then
target = Creature(Self.TargetID())
if (target:isAlive() and target:isOnScreen()) then
pos = target:Position()
return
end
end
target = nil
end)