canary/data/modules/scripts/questtrack/questtrack.lua
Luan Santos 5549d87f9d
improve: switch to Stylua formatter (#1582)
Stylua is easier to configure than what we had before, since it's
already available as a code action. It also parses the code while it
formats which will help catch syntax errors on PRs automatically.
2023-09-10 10:17:19 -07:00

10 lines
230 B
Lua

function onRecvbyte(player, msg, byte)
if byte == 0xD0 then
local quests = {}
local missions = msg:getByte()
for i = 1, missions do
quests[#quests + 1] = msg:getU16()
end
player:resetTrackedMissions(quests)
end
end