Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. --- This script can add/update leftarm tattoos from your frostymod
  2. --- You need to edit "tattoos_map" by yourself, pattern is simple:
  3. --- [playerid] = tattooid,
  4. --- by default it updates these tattoos:
  5. --- 070 : Roberto Firmino 201942
  6. --- 071 : Manuel Lanzini 188988
  7. --- 072 : Dani Ceballos 222509
  8. --- 073 : Emerson Palmieri 210736
  9. --- 074 : Isco 197781
  10. --- 075 : James Maddison 220697
  11. --- 076 : Christian Pulisic 227796
  12. --- 077 : Ricardo Quaresma 20775
  13. --- 078 : Santi Mina 212623
  14. --- 079 : Saul 208421
  15. --- 080 : Arturo Vidal 181872
  16. --- 081 : Maro Icardi 201399
  17. --- 082 : Marcelo 176676
  18. --- 083 : Nainggolan 178518
  19. --- 084 : Gabriel Jesus 230666
  20. --- 085 : Leonardo Bonucci 184344
  21. --- 086 : Samu Castillejo 210617
  22. --- 087 : Coutinho 189242
  23. --- 088 : Joao Cancelo 210514
  24. --- 089 : Milinkovic-Savic 223848
  25. --- 090 : Perotti 183900
  26. --- 091 : Pellegrini 228251
  27. --- 092 : Spinazzola 202884
  28. --- 093 : Douglas Costa 190483
  29. --- 666 : Sergio Ramos 155862
  30.  
  31.  
  32. --- HOW TO USE:
  33. --- https://i.imgur.com/xZMqzTc.gifv
  34. --- 1. Open Cheat table as usuall and enter your career.
  35. --- 2. In Cheat Engine click on "Memory View" button.
  36. --- 3. Press "CTRL + L" to open lua engine
  37. --- 4. Then press "CTRL + O" and open this script
  38. --- 5. Click on 'Execute' button to execute script and wait for 'done' message box.
  39.  
  40. --- AUTHOR: ARANAKTU
  41.  
  42. require 'lua/GUI/forms/playerseditorform/consts';
  43. require 'lua/consts';
  44.  
  45. local comp_desc = get_components_description_player_edit()
  46.  
  47. local tattoos_map = {
  48. [201942] = 70,
  49. [188988] = 71,
  50. [222509] = 72,
  51. [210736] = 73,
  52. [197781] = 74,
  53. [220697] = 75,
  54. [227796] = 76,
  55. [20775] = 77,
  56. [212623] = 78,
  57. [208421] = 79,
  58. [181872] = 80,
  59. [201399] = 81,
  60. [176676] = 82,
  61. [178518] = 83,
  62. [230666] = 84,
  63. [184344] = 85,
  64. [210617] = 86,
  65. [189242] = 87,
  66. [210514] = 88,
  67. [223848] = 89,
  68. [183900] = 90,
  69. [228251] = 91,
  70. [202884] = 92,
  71. [190483] = 93,
  72. [155862] = 666,
  73. }
  74.  
  75. -- players table
  76. local sizeOf = 112 -- Size of one record in players database table
  77.  
  78. -- iterate over all players in 'players' database table
  79. local i = 0
  80. local current_playerid = 0
  81. local updated_players = 0
  82. while true do
  83. local playerid_record = ADDR_LIST.getMemoryRecordByID(CT_MEMORY_RECORDS['PLAYERID'])
  84. 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))
  85. if current_playerid == 0 then
  86. break
  87. end
  88.  
  89. writeQword('playerDataPtr', readPointer('firstPlayerDataPtr') + i*sizeOf)
  90.  
  91. local tattooid = tattoos_map[current_playerid]
  92. if tattooid then
  93. updated_players = updated_players + 1
  94. ADDR_LIST.getMemoryRecordByID(comp_desc['TattooLeftArmEdit']['id']).Value = tattooid
  95. end
  96.  
  97.  
  98. i = i + 1
  99. if i >= 26000 then
  100. break
  101. end
  102. end
  103.  
  104. showMessage(string.format("Done\nUpdated tattoos: %d", updated_players))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement