function H(op,...) local ok,value=host(op,...) if not ok then error(value,2)end return value end syntaxcheck=false vtSingle,vtByteArray,soExactValue,rtRounded,fsmNotAligned=4,8,0,0,0 caNone=0 process='PBZ.exe' function getOpenedProcessID()return H('pid')end function getModuleSize()return H('size')end function getAddress(x)return resolveAddress(x,false)end function getAddressSafe(x)return resolveAddress(x,true)end function unregisterSymbol(x)Symbols[x:lower()]=nil end unregistersymbol=unregisterSymbol function registerSymbol(x,v)Symbols[x:lower()]=v end function readBytes(p,n,asTable) local bytes=H('read',resolveAddress(p),n or 1);if not bytes then return nil end if asTable then return {bytes:byte(1,#bytes)}end return bytes:byte(1,#bytes) end local function read(p,n,kind) local b=H('read',resolveAddress(p),n);if not b then return nil end;return (string.unpack(kind,b))end function readQword(p)return read(p,8,'>10),0xDC00+(cp&1023))end end return H('write',resolveAddress(p),table.concat(chars),false) end function createMemScan() local s={hits={}} s.firstScan=function(_,_,_,pattern,_,first,last,protection)s.hits=H('scan',pattern,first,last,protection=='+X')end s.waitTillDone=function()end;s.destroy=function()end return s end function createFoundList(s) local f={Count=0,Address={}} f.initialize=function()f.Count=#s.hits;for i,p in ipairs(s.hits)do f.Address[i-1]=('%X'):format(p)end end f.destroy=function()end;return f end function AOBScanModuleUnique(_,pattern,protection)local hits=H('scan',pattern,H('base'),H('base')+H('size')-1,protection=='+X');if #hits==1 then return hits[1]end end function getTickCount()return H('ticks')end function sleep(n)H('sleep',n)end function print(...)local s={};for i,v in ipairs({...})do s[i]=tostring(v)end;H('log',table.concat(s,' '))end function showMessage(s)H('message',tostring(s))end function writeToClipboard(s)H('clipboard',s)end function enumModules()return {{Name='PBZ.exe',PathToFile=H('path'),Address=H('base')}}end function getForegroundProcess()return H('foregroundPid')end function getForegroundWindow()return H('foregroundWindow')end function getWindow(h,c)return H('window',h,c)end function getWindowProcessID(h)return H('windowPid',h)end function getWindowClassName(h)return H('windowClass',h)end function isKeyPressed(k)return H('key',k)end function getXBox360ControllerState(i)return H('controller',i or 0)end function readIntegerLocal(p,signed)local b=H('localRead',p,4);return(string.unpack(signed and '