Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. function scanAob(array)
  2. result = nil
  3. scan = createMemScan(true)
  4.  
  5. memscan_returnOnlyOneResult(scan, true)
  6. memscan_firstScan(scan, soExactValue, vtByteArray, rtTruncated, array, nil, 0x00000000, 0xFFFFFFFFFFFFF, "*W", fsmNotAligned, nil, true, false, false, false)
  7. memscan_waitTillDone(scan)
  8.  
  9. result = memscan_getOnlyResult(scan)
  10. result = string.format("%x", result)
  11. result = ("0"):rep(8-#result) .. result
  12. end
  13.  
  14. fly = scanAob("00 00 00 01 01 00 01 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 22 00 00 00") -- CHANGE THIS TO WHATEVER THE FLY ADDRESS IS
  15.  
  16. function setFlyOn()
  17. for i = 1,2 do
  18. writeBytes(result, 01, 00, 00)
  19. sleep(10)
  20. writeBytes(result, 00, 00, 00)
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement