require('pack') packets = require('packets') _addon.name = 'EffectTest' _addon.author = 'Kenshi' _addon.commands = {'et'} _addon.version = '1.0' windower.register_event('incoming chunk', function(id, data) if id == 0x00E then local packet = packets.parse('incoming', data) if packet.Index == 320 then local effect = data:unpack('b8', 43) local change_effect = 6 return data:sub(1, 42) .. 'b8':pack(change_effect) .. data:sub(44) end end end)