TATATATRATATATA

99 ovr

May 14th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. --- This script will set all players attributes on 1 and potential on 99
  2.  
  3. --- HOW TO USE:
  4. --- https://i.imgur.com/xZMqzTc.gifv
  5. --- 1. Open Cheat table as usuall and enter your career.
  6. --- 2. In Cheat Engine click on "Memory View" button.
  7. --- 3. Press "CTRL + L" to open lua engine
  8. --- 4. Then press "CTRL + O" and open this script
  9. --- 5. Click on 'Execute' button to execute script and wait for 'done' message box.
  10.  
  11. --- AUTHOR: ARANAKTU
  12.  
  13. require 'lua/GUI/forms/playerseditorform/consts';
  14. require 'lua/consts';
  15.  
  16. local comp_desc = get_components_description_player_edit()
  17.  
  18. local attributes_to_change = {
  19. "Overall",
  20. "Crossing",
  21. "Finishing",
  22. "HeadingAccuracy",
  23. "ShortPassing",
  24. "Volleys",
  25. "Marking",
  26. "StandingTackle",
  27. "SlidingTackle",
  28. "Dribbling",
  29. "Curve",
  30. "FreeKickAccuracy",
  31. "LongPassing",
  32. "BallControl",
  33. "GKDiving",
  34. "GKHandling",
  35. "GKKicking",
  36. "GKPositioning",
  37. "GKReflex",
  38. "ShotPower",
  39. "Jumping",
  40. "Stamina",
  41. "Strength",
  42. "LongShots",
  43. "Acceleration",
  44. "SprintSpeed",
  45. "Agility",
  46. "Reactions",
  47. "Balance",
  48. "Aggression",
  49. "Composure",
  50. "Interceptions",
  51. "AttackPositioning",
  52. "Vision",
  53. "Penalties",
  54. }
  55.  
  56. -- players table
  57. local sizeOf = 112 -- Size of one record in players database table (0x64)
  58.  
  59. -- iterate over all players in 'players' database table
  60. local i = 0
  61. local current_playerid = 0
  62. local updated_players = 0
  63. while true do
  64. local playerid_record = ADDR_LIST.getMemoryRecordByID(CT_MEMORY_RECORDS['PLAYERID'])
  65. 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))
  66.  
  67. if current_playerid > 0 then
  68. writeQword('playerDataPtr', readPointer('firstPlayerDataPtr') + i*sizeOf)
  69.  
  70. for j=1, #attributes_to_change do
  71. local attr_name = attributes_to_change[j] .. 'Edit'
  72. ADDR_LIST.getMemoryRecordByID(comp_desc[attr_name]['id']).Value = 98
  73. end
  74. ADDR_LIST.getMemoryRecordByID(comp_desc['PotentialEdit']['id']).Value = 98
  75. end
  76.  
  77. i = i + 1
  78. if i >= 26000 then
  79. break
  80. end
  81. end
  82.  
  83. showMessage("Done")
Add Comment
Please, Sign In to add comment