Advertisement
LucaoModssBM

sei la

Jun 21st, 2025 (edited)
1,385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. gg.setVisible(true)
  2. gg.setRanges(gg.REGION_ANONYMOUS)
  3. gg.clearResults()
  4. gg.searchNumber("h06000000000000000000000000000000000000000000803F", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
  5. local count = gg.getResultCount()
  6. if count == 0 then
  7.     gg.alert("Nenhuma correspondência encontrada para o hex string na região ANONYMOUS.")
  8. else
  9.     local results = gg.getResults(count)
  10.     local targetIndices = {7, 8, 23, 24}
  11.     local output = {}
  12.     for _, index in ipairs(targetIndices) do
  13.         if index <= count then
  14.             local targetAddr = results[index].address
  15.             local floatAddr = targetAddr + 0x14
  16.             local value = gg.getValues({{address = floatAddr, flags = gg.TYPE_FLOAT}})[1].value
  17.             table.insert(output, string.format("Resultado %d:\nEstrutura em: 0x%X\nPonteiro para float: 0x%X\nValor: %f", index, targetAddr, floatAddr, value))
  18.         end
  19.     end
  20.     gg.alert(table.concat(output, "\n\n"))
  21. end
  22. gg.clearResults()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement