--[[ Version 1.0 ]]-- --[[ By Rock5 ]]-- local luck_offset local function checkoffset() if not luck_offset then local pattern = string.char( 0xDE, 0xCA, 0xD9, 0xC9, 0xD9, 0x5C, 0x24, 0x08, 0xD9, 0x84, 0x91, 0xFF, 0xFF, 0xFF, 0xFF, 0xD9, 0x44, 0x24, 0x08, 0xD9, 0xC0, 0xDE, 0xC2) local mask = "xxxxxxxxxxx????xxxxxxxx" local offset = 11 local startloc = 0x6C0000 local found = findPatternInProcess(getProc(), pattern, mask, startloc, 0xA0000); if( found == 0 ) then error("Unable to find wall hack address. Pattern needs updating.", 0); end luck_offset = memoryReadUInt(getProc(), found + offset) + 0x8C; end end function getLuck() checkoffset() return memoryReadFloat(getProc(), addresses.playerCraftLevelBase + luck_offset) end