mirror of
https://github.com/opentibiabr/canary
synced 2026-08-16 06:26:09 -04:00
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.
10 lines
230 B
Lua
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
|