From a8f47448b23ba2718884cc61fae4e44100d625e8 Mon Sep 17 00:00:00 2001 From: Sarah Wesker Date: Sat, 27 Apr 2024 23:54:28 -0400 Subject: [PATCH] Create debug_assert.lua --- data/scripts/network/debug_assert.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 data/scripts/network/debug_assert.lua 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()