TATATATRATATATA

Untitled

Oct 15th, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. --- This script change jersey style code of all players. Means that all players will wear untucked shirts
  2. --- It may take a few mins. Cheat Engine will stop responding and it's normal behaviour. Wait until you get 'Done' message.
  3.  
  4. --- HOW TO USE:
  5. --- https://i.imgur.com/xZMqzTc.gifv
  6. --- 1. Open Cheat table as usuall and enter your career.
  7. --- 2. In Cheat Engine click on "Memory View" button.
  8. --- 3. Press "CTRL + L" to open lua engine
  9. --- 4. Then press "CTRL + O" and open this script
  10. --- 5. Click on 'Execute' button to execute script and wait for 'done' message box.
  11.  
  12. --- AUTHOR: ARANAKTU
  13.  
  14. require 'lua/consts';
  15.  
  16. local comp_desc = get_components_description_player_edit()
  17.  
  18. -- players table
  19. local sizeOf = 112 -- Size of one record in players database table (0x64)
  20.  
  21. -- iterate over all players in 'players' database table
  22. local i = 0
  23. local current_playerid = 0
  24. while true do
  25. local playerid_record = ADDR_LIST.getMemoryRecordByID(CT_MEMORY_RECORDS['PLAYERID'])
  26. local current_playerid = bAnd(bShr(readInteger(string.format('[%s]+%X', 'firstPlayerDataPtr', playerid_record.getOffset(0)+(i*sizeOf))), playerid_record.Binary.Startbit), (bShl(1, playerid_record.Binary.Size) - 1))
  27. if current_playerid == 0 then
  28. break
  29. end
  30.  
  31. writeQword('playerDataPtr', readPointer('firstPlayerDataPtr') + i*sizeOf)
  32. ADDR_LIST.getMemoryRecordByID(comp_desc['JerseyStyleEdit']['id']).Value = 1
  33.  
  34. i = i + 1
  35. end
  36.  
  37. showMessage("Done")
Advertisement
Add Comment
Please, Sign In to add comment