jrubimf

Untitled

Dec 14th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. function findOffset(offset, compare)
  2. for i=1,29999 do
  3. if offset == 'combatreach' then
  4. if Automata.ObjectField('player', i, 10) == 1.5 then
  5. local hex = string.format("%x", i * 256)
  6. print(Automata.ObjectField('player', i,2) .. ' - ' .. hex .. ' / ' .. i)
  7. end
  8. end
  9.  
  10. if offset == 'specid' then
  11. if Automata.ObjectField('target', i, 1) == 250 then
  12. local hex = string.format("%x", i * 256)
  13. print(Automata.ObjectField('target', i,1) .. ' - ' .. i .. ' / ' .. num2hex(i))
  14. end
  15. end
  16.  
  17. if offset == 'guid' then
  18. if Automata.ObjectField('player', i, 15) == UnitGUID("Player") then
  19. local hex = string.format("%x", i * 256)
  20. print(Automata.ObjectField('player', i,15) .. ' ' .. i)
  21. end
  22. end
  23.  
  24. if offset == 'creator' then
  25. if Automata.ObjectField('target', i, 15) == UnitGUID("Player") then
  26. local hex = string.format("%x", i * 256)
  27. print(Automata.ObjectField('target', i,15) .. ' - ' .. i .. ' / ' .. num2hex(i))
  28. end
  29. end
  30.  
  31. if offset == 'target' then
  32. if Automata.ObjectField('target', i, 15) == UnitGUID("Player") then
  33. local hex = string.format("%x", i * 256)
  34. print(Automata.ObjectField('target', i,15) .. ' - ' .. i .. ' / ' .. num2hex(i))
  35. end
  36. end
  37.  
  38. if offset == 'objtype' then
  39. if Automata.ObjectField('player', i,3) == 7 then
  40. local hex = string.format("%x", i * 256)
  41. print(Automata.ObjectField('player', i,3) .. ' - ' .. i .. ' / ' .. num2hex(i))
  42. end
  43. end
  44.  
  45. if offset == 'facing' then
  46. if Automata.ObjectField('player', i,10) >= 6.2 and Automata.ObjectField('player', i,10) <= 6.3 then
  47. local hex = string.format("%x", i * 256)
  48. print(Automata.ObjectField('player', i, 10) .. ' - ' .. i .. ' / ' .. num2hex(i))
  49. end
  50. end
  51.  
  52.  
  53. if offset == 'currentTarget' then
  54. if Automata.ObjectField('player', i,15) == UnitGUID("target") then
  55. local hex = string.format("%x", i * 256)
  56. print(Automata.ObjectField('player', i,15) .. ' - ' .. i .. ' / ' .. num2hex(i))
  57. end
  58. end
  59.  
  60. if offset == 'dynamicFlags' then
  61. if Automata.ObjectField('target', i, 6) and Automata.ObjectField('target',i, 6) == 4 then
  62. local hex = string.format("%x", i * 256)
  63. print('Value: ' .. Automata.ObjectField('target', i, 6) .. ' - ' .. i .. ' / ' .. num2hex(i))
  64. end
  65. end
  66.  
  67. if offset == 'tagged' then
  68. if Automata.ObjectField('target', i, 6) and Automata.ObjectField('target', i, 6) == 8 then
  69. local hex = string.format("%x", i * 256)
  70. print('Value: ' .. Automata.ObjectField('target', i, 6) .. ' - ' .. i .. ' / ' .. num2hex(i))
  71. end
  72. end
  73.  
  74. if offset == 'castingat' then
  75. if Automata.ObjectField('player', i,15) == UnitGUID("target") then
  76. local hex = string.format("%x", i * 256)
  77. print(Automata.ObjectField('player', i,15) .. ' - ' .. i)
  78. end
  79. end
  80.  
  81. if offset == 'bounding' then
  82. if Automata.ObjectField('target', i,10) >= 1.5 and Automata.ObjectField('target', i,10) < 1.6 then
  83. print(Automata.ObjectField('target', i,10) .. ' - ' .. i .. ' / ' .. num2hex(i))
  84. end
  85. end
  86. end
  87. end
Advertisement
Add Comment
Please, Sign In to add comment