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.
on pagedown press it'll send the position of current player to bot server and all chars will try to run to that pos.
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)
- remove | + add
10 Jun 2021