1
0
Fork 0
mirror of https://github.com/dragonfireclient/hydra-dragonfire.git synced 2024-11-23 19:34:00 -05:00
hydra-dragonfire/example/pathfind.lua
Elias Fleckenstein 1f94c5aef9
Add path finding
2022-06-08 20:20:45 +02:00

22 lines
394 B
Lua
Executable file

#!/usr/bin/env hydra-dragonfire
local client = require("client")()
client:enable("map")
client.map:set(hydra.map(true))
client:enable("pkts")
client.pkts:subscribe("chat_msg")
client:connect()
while true do
local evt = client:poll()
if not evt or evt.type == "disconnect" or evt.type == "interrupt" then
break
elseif evt.type == "pkt" then
print("chatmsg")
end
end
client:close()