Your browser does not support JavaScript or its disabled!
Please turn it on, or be aware that some features on this website will not work correctly.
221
BotServer send position #38
This uses OTClient bot server, setup with Vitrax config.vBot
on pagedown press it'll send the position of current player to bot server and all chars will try to run to that pos.
417b | 12 lines.
singlehotkey("PageDown", "Run to pos", function()
    BotServer.send("pos", { pos = { x = posx(), y = posy(), z= posz()} })
end)
BotServer.listen("pos", function(name, message)
    if name ~=  player:getName() then
        local pos = message["pos"]
        if autoWalk(pos, 4000, { ignoreNonPathable = true}) then
        else
            BotServer.send("broadcast", "Not possible to walk.")
        end
    end
end)

10 Jun 2021