CLEO Help [HELP] First Cleo

CLEO related
Status
Not open for further replies.

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
Hi, so I started to learn about cleo stuff. For my first cleo I started editing (adding keys on/off and stuff like that...), so I downloaded cleo for infinity run. I manage to make an button which start the script but I got problem with button which makes script off. Can you guys tell me what I'm doing wrong ?...


Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread 'RUN_SYLAR' 

:RUN_SYLAR_97
wait 5 
if 
0ADC:   test_cheat "RUN" 
else_jump @RUN_SYLAR_97 
print "~W~RUN ~G~ON" 1500 
wait 2000 

:RUN_SYLAR_156
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @RUN_SYLAR_156 
Player.InfiniteRun($PLAYER_CHAR) = True
jump @RUN_SYLAR_156 
end_thread 
if 

:RUN_SYLAR_156_2
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @RUN_SYLAR_156 
Player.InfiniteRun($PLAYER_CHAR) = False
jump @RUN_SYLAR_156 
end_thread 
0ADC:   test_cheat "RUN" 
else_jump @RUN_SYLAR_97 
print "~W~RUN ~R~OFF" 1500 
wait 2000 
jump @RUN_SYLAR_156_2
 

Attachments

  • InfiniteRun[2][0].cs
    18.1 KB · Views: 31

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Code:
{$CLEO .cs}

thread 'RUN_SYLAR' 

:ON
wait 5 
if 
0ADC:   test_cheat "RUN" 
jf @ON
Player.InfiniteRun($PLAYER_CHAR) = True
print "~W~RUN ~G~ON" 1500

:OFF
wait 0
if 
0ADC:   test_cheat "RUN" 
else_jump @OFF
Player.InfiniteRun($PLAYER_CHAR) = False
print "~W~RUN ~R~OFF" 1500 
goto @ON
 

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
Oh so I needed to add

:ON and :OFF and in :ON add "Player.InfiniteRun($PLAYER_CHAR) = True" and in :OFF add "Player.InfiniteRun($PLAYER_CHAR) = False"


Thanks bro
 
Status
Not open for further replies.
Top