local currencies = {}
windower.register_event('incoming chunk',function(id,data,modified,injected,blocked)
if id == 0x113 then
currencies.one = packets.parse('incoming', data)
if debug_mode then
log('packet 0x113')
print('currencies.one should be populated')
end
end
if id == 0x118 then
currencies.two = packets.parse('incoming', data)
if debug_mode then
log('packet 0x118')
print('currencies.two should be populated')
end
end
end)
function inject_0x10f()
if debug_mode then
print('requesting currencies 1')
end
local packet = packets.new('outgoing', 0x10f)
packets.inject(packet)
end
function inject_0x115()
if debug_mode then
print('requesting currencies 2')
end
local packet = packets.new('outgoing', 0x115)
packets.inject(packet)
end