...are you a wizard?
Honestly, how do you KNOW all this stuff? ^^
Teleport works as intended, it's actually as you've said here (I've included a picture how it works on the 2nd page), and when you're knocked down, it still can do it - so it's actually faster this way, even if you don't avoid the wave - hence I don't think that 'evading' it each time that it blows up is the way to go.
Next, I've dug up my ancient mage on an account from ~8 months ago, changed the code a little, and went to test it. When it's gone to the place where it's supposed to target the leftover tiles, I've gotten an error. Seeing as I've had almost 5 minutes left, I've quickly cut down the code to try it by itself.
There have been 4 tiles left, so I wanted it to harvest 3 tiles, and then check whether player:findNearestNameOrId(); will work with the extra argument.
This was the 'short' waypoint
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onload>
function clicktile(address)
local tmp = memoryReadRepeat("int", proc, address + addresses.pawnAttackable_offset) or 0;
if bitAnd(tmp,0x8) then
return true
else
return false
end
end
</onload>
<!-- # 64 --><waypoint x="2602" z="2941" y="10" >
changeProfileOption("HARVEST_DISTANCE", 400);
yrest(500);
player:target_Object(111812, nil, nil, true, clicktile);
</waypoint>
<!-- # 65 --><waypoint x="2510" z="2975" y="10">
player:target_Object(111812, nil, nil, true, clicktile);
</waypoint>
<!-- # 66 --><waypoint x="2638" z="3030" y="10">
player:target_Object(111812, nil, nil, true, clicktile);
</waypoint>
<!-- # 67 --><waypoint x="2548" z="3064" y="10">
player:findNearestNameOrId(111812, clicktile)
</waypoint>
</waypoints>
Every time that the bot approached the target_Object, micromacro printed
[time] - [string "..."]:4: Invalid proc
Since I don't really know about all those addresses, and even what does your function do, I have no clue what's wrong with it.
Oh well, I've had enough for today - I'll get back to it tomorrow. Cheers
@Edit - come to think of it, if it's
function clicktile(address), then wouldn't it need to be
player:target_Object(111812, nil, nil, true, clicktile() ); ? Maybe I'm grasping at straws, but that's the only thing I can think of on top of my head.