CLEO Help Where to put the active/deactived cheat code?.

CLEO related
Status
Not open for further replies.

Mzguen

New member
Joined
Dec 5, 2019
Messages
4
Reaction score
0
Location
United States
Code:
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP
thread 'AUTOSPACE'
wait 0
TIMERA = 0

:AUTOSPACE_32
wait 0
if
0ADC:   test_cheat "WALK"
else_jump @AUTOSPACE_94
if
  0@ == 0
else_jump @AUTOSPACE_87
0@ = 1
jump @AUTOSPACE_94

:AUTOSPACE_87
0@ = 0

:AUTOSPACE_94
if and
  0@ == 1
  TIMERA > 250
else_jump @AUTOSPACE_160
TIMERA = 0
0AB1: call_scm_func @AUTOSPACE_167 2 32 255
wait 30
0AB1: call_scm_func @AUTOSPACE_167 2 32 0

:AUTOSPACE_160
jump @AUTOSPACE_32

:AUTOSPACE_167
2@ = 12004552
0@ *= 2
005A: 2@ += 0@ // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: 0 ret
I'm trying to follow the step from tutorial "how to add active & deactived button" and the game always crash i don't know where to add in this sript, please help me to add active/deactive button in this code.
 
Status
Not open for further replies.
Top