Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function findOffset(offset, compare)
- for i=1,29999 do
- if offset == 'combatreach' then
- if Automata.ObjectField('player', i, 10) == 1.5 then
- local hex = string.format("%x", i * 256)
- print(Automata.ObjectField('player', i,2) .. ' - ' .. hex .. ' / ' .. i)
- end
- end
- if offset == 'specid' then
- if Automata.ObjectField('target', i, 1) == 250 then
- local hex = string.format("%x", i * 256)
- print(Automata.ObjectField('target', i,1) .. ' - ' .. i .. ' / ' .. num2hex(i))
- end
- end
- if offset == 'guid' then
- if Automata.ObjectField('player', i, 15) == UnitGUID("Player") then
- local hex = string.format("%x", i * 256)
- print(Automata.ObjectField('player', i,15) .. ' ' .. i)
- end
- end
- if offset == 'creator' then
- if Automata.ObjectField('target', i, 15) == UnitGUID("Player") then
- local hex = string.format("%x", i * 256)
- print(Automata.ObjectField('target', i,15) .. ' - ' .. i .. ' / ' .. num2hex(i))
- end
- end
- if offset == 'target' then
- if Automata.ObjectField('target', i, 15) == UnitGUID("Player") then
- local hex = string.format("%x", i * 256)
- print(Automata.ObjectField('target', i,15) .. ' - ' .. i .. ' / ' .. num2hex(i))
- end
- end
- if offset == 'objtype' then
- if Automata.ObjectField('player', i,3) == 7 then
- local hex = string.format("%x", i * 256)
- print(Automata.ObjectField('player', i,3) .. ' - ' .. i .. ' / ' .. num2hex(i))
- end
- end
- if offset == 'facing' then
- if Automata.ObjectField('player', i,10) >= 6.2 and Automata.ObjectField('player', i,10) <= 6.3 then
- local hex = string.format("%x", i * 256)
- print(Automata.ObjectField('player', i, 10) .. ' - ' .. i .. ' / ' .. num2hex(i))
- end
- end
- if offset == 'currentTarget' then
- if Automata.ObjectField('player', i,15) == UnitGUID("target") then
- local hex = string.format("%x", i * 256)
- print(Automata.ObjectField('player', i,15) .. ' - ' .. i .. ' / ' .. num2hex(i))
- end
- end
- if offset == 'dynamicFlags' then
- if Automata.ObjectField('target', i, 6) and Automata.ObjectField('target',i, 6) == 4 then
- local hex = string.format("%x", i * 256)
- print('Value: ' .. Automata.ObjectField('target', i, 6) .. ' - ' .. i .. ' / ' .. num2hex(i))
- end
- end
- if offset == 'tagged' then
- if Automata.ObjectField('target', i, 6) and Automata.ObjectField('target', i, 6) == 8 then
- local hex = string.format("%x", i * 256)
- print('Value: ' .. Automata.ObjectField('target', i, 6) .. ' - ' .. i .. ' / ' .. num2hex(i))
- end
- end
- if offset == 'castingat' then
- if Automata.ObjectField('player', i,15) == UnitGUID("target") then
- local hex = string.format("%x", i * 256)
- print(Automata.ObjectField('player', i,15) .. ' - ' .. i)
- end
- end
- if offset == 'bounding' then
- if Automata.ObjectField('target', i,10) >= 1.5 and Automata.ObjectField('target', i,10) < 1.6 then
- print(Automata.ObjectField('target', i,10) .. ' - ' .. i .. ' / ' .. num2hex(i))
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment