script_name('NoDLLimit')
script_author('Bredd Lane')
require 'lib.moonloader'
local ffi = require 'ffi'
local memory = require 'memory'
local address = sampGetBase() + 0xD83A8
local protect = memory.unprotect(address, 0x87)
base = sampGetBase()
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do
wait(0)
writeMemory(base + 0xD3804, 4, 1342111744, 1)
ffi.copy(ffi.cast('void*', address), 'ID: %d, Type: %d, SubType: %d, HP: %.1f', 0x87)
memory.protect(address, protect)
end
end