Have tried searching around for anything related to it but unsuccessful so far...
Basically just want to load the player position within the onload of a waypoint rather than using Get_Player_Position.bat manually and put the values into playerX-playerY-playerZ which would then go into the waypoint.
<?xml version="1.0" encoding="utf-8"?><waypoints>
<OnLoad>
local playerX, playerY, playerZ = player.X, player.Y, player.Z
while true do
-- Wait for mob
repeat
yrest(1)
player:update()
until player.Battling or player:findEnemy(nil,nil,evalTargetDefault)
-- Fight till there are no more mobs
enemy = player:findEnemy(nil,nil,evalTargetDefault)
while enemy do
player:target(enemy)
player:fight()
enemy = player:findEnemy(nil,nil,evalTargetDefault)
end
-- Return to starting position
player:moveTo(CWaypoint(playerX,playerZ,playerY), true)
end
</OnLoad>
</waypoints>
I think that should work.
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.