diff --git a/data/scripts/network/debug_assert.lua b/data/scripts/network/debug_assert.lua new file mode 100644 index 0000000..62a6f86 --- /dev/null +++ b/data/scripts/network/debug_assert.lua @@ -0,0 +1,13 @@ +local debugAssert = PacketHandler(0xE8) + +function debugAssert.onReceive(player, msg) + if player:hasDebugAssert() then return end + + local assertLine = msg:getString() + local date = msg:getString() + local description = msg:getString() + local comment = msg:getString() + Game.saveDebugAssert(player:getGuid(), assertLine, date, description, comment) +end + +debugAssert:register()