UG-Base Gamehacking

Full Version: Conditions for memories
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just want to ask that how to ask conditions 'if' before read_memory and write_memory , because i try to add if - then - end .... it's crash

-Thanks in advanced  :computer_guy:
It's simple, just follow this tutorial:
https://www.youtube.com/watch?v=sGI59pt0RxI
WOW :$
Context?
(06-22-2014, 06:25 AM)TH3RM4L link Wrote: [ -> ]It's simple, just follow this tutorial:
https://www.youtube.com/watch?v=sGI59pt0RxI
looooool hahahaha
that's made my day lol
Code:
{$CLEO .cs}
thread 'GRAVITY'
wait 3000
:GRAVITY_1
0A8D: 1@ = read_memory 0x863984   size 4 virtual_protect 1
wait 100
03F0: text_draw_toggle  1
0001: wait  50 ms
03F0: text_draw_toggle  0
0001: wait  50 ms
045A: text_draw_1number  250.0  40.0 'NUMBER' [email protected]
0A8C: write_memory 0x863984   size 4 value 2 virtual_protect 1 //clear the buffer
0A93: end_custom_thread
Like this example , making ON/OFF with condition ?
Code:
{$CLEO .cs}

0000: NOP
0A8D: [email protected] = read_memory 0x863984 size 4 virtual_protect 1

:GRAVITY_ON
wait 0
if
0AB0:
jf @GRAVITY_ON
0A8C: write_memory 0x863984 size 4 value 2 virtual_protect 1
wait 750
goto @GRAVITY_OFF

:GRAVITY_OFF
wait 0
if
0AB0:
jf @GRAVITY_OFF
0A8C: write_memory 0x863984 size 4 value [email protected] virtual_protect 1
wait 750
goto @GRAVITY_ON
(06-23-2014, 06:23 AM)TH3RM4L link Wrote: [ -> ]
Code:
{$CLEO .cs}

0000: NOP
0A8D: [email protected] = read_memory 0x863984 size 4 virtual_protect 1

:GRAVITY_ON
wait 0
if
0AB0:
jf @GRAVITY_ON
0A8C: write_memory 0x863984 size 4 value 2 virtual_protect 1
wait 750
goto @GRAVITY_OFF

:GRAVITY_OFF
wait 0
if
0AB0:
jf @GRAVITY_OFF
0A8C: write_memory 0x863984 size 4 value [email protected] virtual_protect 1
wait 750
goto @GRAVITY_ON
one thing : why it has to be 'size 4' and value 2 [email protected] etc.' ?
That's a retarded question to ask, since you provided the addres, size and value.

Size = number of bytes to write.
Value = value to write.
[email protected] = old value
(06-23-2014, 03:52 PM)springfield link Wrote: [ -> ]That's a retarded question to ask, since you provided the addres, size and value.

Size = number of bytes to write.
Value = value to write.
[email protected] = old value
i get that address example from gtaforums so i don't own and know it well.
btw , thanks