CLEO Help How can i add activation/deactivation key?

CLEO related
Status
Not open for further replies.

noobish

Active member
Joined
Feb 16, 2014
Messages
120
Reaction score
0
I want K + B activation and deactivation but i gives me some weird error on compiling, Am i doing something wrong?

Code:
//-------------MAIN---------------
thread "UGBASEEU" 
0000: NOP 

:MAIN
wait 0
if and 
0AB0:   key_pressed 75
0AB0:   key_pressed 66
jump @MAIN2

:MAIN2
if
5@ = 0
then
5@ = 1
printf "FAST BIND ACTIVATED"
else
5@ = 0
printf "FAST BIND DEACTIVATED"
else jump @MAIN


:UGBASEEU_15
wait 0 
if and
00E1:   player 0 pressed_key 16 
044B:   actor $PLAYER_ACTOR on_foot 
else_jump @UGBASEEU_87 

:UGBASEEU_41
wait 0 
call @UGBASEEU_94 2 32 255 
call @UGBASEEU_94 2 32 0 
80E1:   not player 0 pressed_key 16 
else_jump @UGBASEEU_41 

:UGBASEEU_87
jump @UGBASEEU_15 

:UGBASEEU_94
2@ = 12006488 
005A: 2@ += 0@ // (int) 
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0 
ret 0
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
noobish said:
I want K + B activation and deactivation but i gives me some weird error on compiling, Am i doing something wrong?

try [attachment=4956]
 

Attachments

  • fastbind.rar
    446 bytes · Views: 21

noobish

Active member
Joined
Feb 16, 2014
Messages
120
Reaction score
0
_=Gigant=_ said:
noobish said:
I want K + B activation and deactivation but i gives me some weird error on compiling, Am i doing something wrong?

Code:
//-------------MAIN---------------
thread "UGBASEEU" 
0000: NOP 

:MAIN
wait 0
if and 
0AB0:   key_pressed 75
0AB0:   key_pressed 66
jump @MAIN2

:MAIN2
if
5@ = 0
then
5@ = 1
printf "FAST BIND ACTIVATED"
else
5@ = 0
printf "FAST BIND DEACTIVATED"
else jump @MAIN


:UGBASEEU_15
wait 0 
if and
00E1:   player 0 pressed_key 16 
044B:   actor $PLAYER_ACTOR on_foot 
else_jump @UGBASEEU_87 

:UGBASEEU_41
wait 0 
call @UGBASEEU_94 2 32 255 
call @UGBASEEU_94 2 32 0 
80E1:   not player 0 pressed_key 16 
else_jump @UGBASEEU_41 

:UGBASEEU_87
jump @UGBASEEU_15 

:UGBASEEU_94
2@ = 12006488 
005A: 2@ += 0@ // (int) 
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0 
ret 0

try 

thanks
 
Status
Not open for further replies.
Top