View previous topic :: View next topic |
Author |
Message |
prouha How do I cheat? Reputation: 0
Joined: 29 Aug 2017 Posts: 4
|
Posted: Tue Aug 29, 2017 4:19 am Post subject: Change values only per description name |
|
|
hello,
I found 5 addresses per pointer , They change automatically after each death in game . They are currently in float But I can if you have to change them into 4 bytes....
I named them respectively:
1: cool1
2: cool2
3: cool3
4: cool4
5: cool5 .... In description. ex:
active description adress type value
____ cool1 p->37458960 float 54
now , this value change when zoom in game to 50 or 35 (arm scope)
cool1 p->37458960 float 50 .."You will understand dont freeze this "
simple lua script when value 54 appear -------->120
50 '' -------->101 ect.....but by "description" ex : cool1 or cool2 or cool3....Knowing that the address moves after death . is possible ? do you can help me ?
thanks
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Tue Aug 29, 2017 8:54 am Post subject: |
|
|
um, maybe something like this?
Code: |
{$lua}
[ENABLE]
cool_timer = createTimer()
-- copy interval from timer that freezes values
cool_timer.Interval = getFreezeTimer().Interval
local records = 5
-- no real pattern so using a table for arbitrarily value pairing
local values = {
['50'] = 101,
['54'] = 120
}
local get = getAddressList().getMemoryRecordByDescription
cool_timer.OnTimer = function(t)
for i=1, records do
local mr = get('cool'..i)
if not mr then
print(('cool%i could not be found'):format(i))
else
local val = values[mr.Value]
if val then mr.Value = val end
end
end
end
[DISABLE]
cool_timer.destroy()
|
|
|
Back to top |
|
|
prouha How do I cheat? Reputation: 0
Joined: 29 Aug 2017 Posts: 4
|
Posted: Tue Aug 29, 2017 5:41 pm Post subject: |
|
|
FreeER wrote: | um, maybe something like this?
Code: |
{$lua}
[ENABLE]
cool_timer = createTimer()
-- copy interval from timer that freezes values
cool_timer.Interval = getFreezeTimer().Interval
local records = 5
-- no real pattern so using a table for arbitrarily value pairing
local values = {
['50'] = 101,
['54'] = 120
}
local get = getAddressList().getMemoryRecordByDescription
cool_timer.OnTimer = function(t)
for i=1, records do
local mr = get('cool'..i)
if not mr then
print(('cool%i could not be found'):format(i))
else
local val = values[mr.Value]
if val then mr.Value = val end
end
end
end
[DISABLE]
cool_timer.destroy()
|
|
thanks is very perfect !
and if i want add more values ?....tried but not work!
add other script with other values is a same....
thanks you
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Tue Aug 29, 2017 5:52 pm Post subject: |
|
|
just copy+paste the line for 50 and change the numbers...Without knowing what you tried I can't tell you what you did wrong...
If you meant more 'cool' records then change the 'local records = 5' line, could rewrite it to look at all memory records for anything that starts with cool but.
|
|
Back to top |
|
|
|