I only recently began to do this mini game, so I have no idea if they changed anything about it,
but none of the scripts in the other thread is really working for me.
As far as I see it, the problem is how the mobs are being targeted:
playing manually, it seems you have to first use the skill, then click a mob,
and player:target somehow isnt reproducing the clicking part.
So here's my sub-par code
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<onLoad>
function ignore(a)
return (math.random(100)>75)
end
creatures={106883,106882,106881,106884}
mytarget=nil
while true do
for k,id in pairs(creatures) do
mytarget=player:findNearestNameOrId(id,0,ignore)
if mytarget~=nil then
print("shoot "..mytarget.Address.." "..mytarget.Name)
player:target(mytarget)
yrest(50)
RoMScript("UseExtraAction(1)")
rest(50)
player:target(mytarget)
yrest(50)
break;
end
end
end
</onLoad>
</waypoints>
Thanks for any input.