Hey I have script for shooting runes. I want change it. It means i want use it "On target" not "crosshair" . Anyone know how to change it?
elseif getuseroption("tsr") and tsr.amount >= tonumber(getuseroption("tsramount")) and itemcount("thunderstorm rune") > 0 and (not getuseroption("pvp") or ((_pAround(10, false) == 0 and not nearStack(10)) or (nearStack(10) and _pAround(10, true, 1) == 0))) then
local tempAmount, tempTime = itemcount("thunderstorm rune"), $timems
while tempAmount == itemcount("thunderstorm rune") and $timems - tempTime < 2000 and (not getuseroption("pvp") or ((_pAround(10, false) == 0 and not nearStack(10)) or (nearStack(10) and _pAround(10, true, 1) == 0))) do
pausewalking(400)
useitemon('thunderstorm rune', 0, tsr.tile)
wait(200)
end