Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1.  
  2. meh={};
  3. lol={};
  4. function cool(name, hex, offset, func)
  5. table.insert(meh, { name, hex, offset, func })
  6. end
  7. function sh(index)
  8. local tab=meh[index]
  9. local scan=createMemScan(true)
  10. memscan_returnOnlyOneResult(scan, true)
  11. memscan_firstScan(scan, soExactValue, vtByteArray, rtTruncated, table.concat(tab[2], " "), nil, 0, 0x1FFFFFFF, "", fsmNotAligned, nil, false, false, false, false)
  12. memscan_waitTillDone(scan)
  13. local result=memscan_getOnlyResult(scan)
  14. if (result == nil) then return nil end
  15. result=result+tab[3]
  16. result=string.format("%x", result)
  17. result=string.rep("0", 8-#result) .. result
  18. return result
  19. end
  20. cool("walkspeed",{0x8C, 0x00, 0x00, 0x80, 0x41}, 1, ws)
  21. for i,v in pairs(meh) do
  22. local s=sh(i)
  23. if (s == nil) then
  24. print("Kohl's Admin Excuted Say ":commands"For A List Of Commands" .. v[1])
  25. else
  26. print("Kohl's Admin Excuted Say ":commands"For A List Of Commands'")
  27. lost=getAddressList()
  28. memoryrec=addresslist_createMemoryRecord(lost)
  29. memoryrecord_setAddress(memoryrec,s)
  30. memoryrecord_setType(memoryrec, vtSingle)
  31. memoryrecord_setDescription(memoryrec, "speed ya")
  32.  
  33. table.insert(lol, {v[1], s, v[4]})
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement