View previous topic :: View next topic |
Author |
Message |
gamjadory Cheater Reputation: 0
Joined: 04 Dec 2011 Posts: 27
|
Posted: Sun Dec 04, 2011 4:18 pm Post subject: Conditional Value Change? |
|
|
I'm sorry. Does not speak English well.
Example:
if 00400300 Value More than 500
00400300 Value Increased 100
else do nothing.
How to create code do?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sun Dec 04, 2011 5:18 pm Post subject: |
|
|
"Value More than" ? Really? Ok... (If not, try to figure out what to change...)
this is the main code
Code: |
local tempvar=readInteger(0x00400300)
if (tempvar>500) then
writeInteger(0x00400300, tempvar+100)
end
|
(if 00400300 is a float instead of 4 byte replace Integer with Float (readFloat))
Now if you wish to execute this function every second (1000 milliseconds) do:
Code: |
function CheckAndAdjust(sender)
local tempvar=readInteger(0x00400300)
if (tempvar>500) then
writeInteger(0x00400300, tempvar+100)
end
end
t=createTimer(nil)
timer_setInterval(t, 1000)
timer_onTimer(t, CheckAndAdjust)
timer_setEnabled(t, true)
|
when you want to stop it do object_destroy(t)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
gamjadory Cheater Reputation: 0
Joined: 04 Dec 2011 Posts: 27
|
Posted: Mon Dec 05, 2011 12:59 am Post subject: not change.... |
|
|
I've tried does not change
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Mon Dec 05, 2011 7:25 am Post subject: |
|
|
make sure that 00400300 is writable (it usually is not) and that the value is ABOVE 500
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
gamjadory Cheater Reputation: 0
Joined: 04 Dec 2011 Posts: 27
|
Posted: Mon Dec 05, 2011 10:02 am Post subject: thanks |
|
|
Thank you very much!!! Dark byte
|
|
Back to top |
|
|
gamjadory Cheater Reputation: 0
Joined: 04 Dec 2011 Posts: 27
|
Posted: Mon Dec 05, 2011 7:29 pm Post subject: how to use Pointer?? |
|
|
how to use Pointer Address??
I know Use Normal address. (0x25EAECD4 bla bla~)
But, I don't know write pointer address...
EX) "games.exe"+0072C7E0 ...
How Use?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Mon Dec 05, 2011 8:57 pm Post subject: |
|
|
replace readInteger(0x00400300) with readInteger("games.exe+0072c7e0")
as for pointers:
readInteger("[games.exe+0072c7e0]+offset1")
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
gamjadory Cheater Reputation: 0
Joined: 04 Dec 2011 Posts: 27
|
Posted: Mon Dec 05, 2011 10:21 pm Post subject: thank you |
|
|
thank you very much~!!!!!!
|
|
Back to top |
|
|
hack0535 Cheater Reputation: 2
Joined: 16 Oct 2011 Posts: 28
|
Posted: Wed Jan 18, 2012 2:44 am Post subject: |
|
|
like this
multi level pointer!
readInteger("[[[[games.exe+0072c7e0]+offset1]+offset2]+offset3]")
|
|
Back to top |
|
|
|