By farming mementos, I'm using several bots running synchronized - so from time to time one of them doesnt loot mementos, because the other character is using em (some msec seems to be enough to cause this).
I have tried to solve this, repeating the waypoint:
Code: Select all
<onload>
function Memoscount()
Memosbeforeloot = inventory:getItemCount(206879)
end
</onload>
<!-- # 1 --><waypoint x=".." z=".." y=".." tag="boss">
Memoscount()
player:lootAll()
</waypoint>
<!-- # 2 --><waypoint x=".." z=".." y="..">
inventory:update()
local Memosafterloot = inventory:getItemCount(206879)
if Memosafterloot > Memosbeforeloot then
cprintf(cli.lightblue, " Got em!\n")
else
cprintf(cli.lightred, "Fail!\n")
player:clearTarget()
player:update()
__WPL:setWaypointIndex(__WPL:findWaypointTag("boss"))
end
</waypoint>
<!-- # 3 --><waypoint x=".." z=".." y="..">
...
...
Rock, lisa, have you any idea how to solve this little problem