Advertisement
Rono_plays

delete

May 22nd, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. function yote()
  2. gg.toast('Please wait')
  3. gg.clearResults()
  4.  
  5. function searchText(text)
  6. local bytes = gg.bytes(text, 'UTF-16LE')
  7. local ret = ''
  8. for i, b in ipairs(bytes) do
  9. ret = ret .. ';' .. b
  10. end
  11. ret = ret:sub(2)..'::'..#bytes
  12. return gg.searchNumber(ret, gg.TYPE_BYTE)
  13. end
  14.  
  15.  
  16. function replaceText(text)
  17. local bytes = gg.bytes(text, 'UTF-16LE')
  18. local all = gg.getResults(100000)
  19. local len = #bytes
  20. for i, t in ipairs(all) do
  21. t.value = bytes[((i - 1) % len) + 1]
  22. end
  23. return gg.setValues(all)
  24. end
  25. searchText('SINGLE PLAYER')
  26.  
  27. replaceText('RONOPLAYS.COM')
  28. gg.clearResults()
  29. searchText('LIGHTNING ROUND')
  30. replaceText('[RONO\'S PACKS.]')
  31. gg.clearResults()
  32. searchText('LIGHTNING ROUND')
  33. replaceText('[RONOPLAYS.COM]')
  34. gg.clearResults()
  35. searchText('ONLINE')
  36. replaceText('[RONO]')
  37. gg.clearResults()
  38. searchText('MY CLUB')
  39. replaceText('[PLAYS]')
  40. gg.clearResults()
  41. searchText('BUY PACKS')
  42. replaceText('[RONO\'S.]')
  43. gg.clearResults()
  44. searchText('MY PACKS')
  45. replaceText('[PACKS.]')
  46.  
  47. end
  48.  
  49.  
  50. function write()
  51. ::START::
  52. local open = io.open
  53. local function read_file(path)
  54. local file = open(path, "rb")
  55. if not file then return nil end
  56. local content = file:read
  57. "*a"
  58. file:close()
  59. return content
  60. end
  61.  
  62. Text = read_file('/storage/emulated/0/Android/data/com.pacybits.fut19draft/cache/unityads.png')
  63.  
  64. if Text == nil then
  65. local file = io.open("/storage/emulated/0/Android/data/com.pacybits.fut19draft/cache/unityads.png", "w")
  66. file:write("1")
  67. file:close()
  68. else
  69. local check = Text
  70. num=tonumber(check)
  71.  
  72. if Text==nil then
  73. goto START
  74. end
  75. if num==nil then
  76. local file = io.open("/storage/emulated/0/Android/data/com.pacybits.fut19draft/cache/unityads.png", "w")
  77. file:write(1)
  78. file:close()
  79. goto START
  80. end
  81. if num < 999999999.0 then
  82. local file = io.open("/storage/emulated/0/Android/data/com.pacybits.fut19draft/cache/unityads.png", "w")
  83. file:write(Text+1)
  84. file:close()
  85. else
  86. os.exit()
  87. end
  88. end
  89. if num==nil then
  90. goto START
  91. end
  92. end
  93. write()
  94. yote()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement