CLEO Help Need help with cleo script

CLEO related
Status
Not open for further replies.

Mr.Nikola

New member
Joined
Jan 3, 2015
Messages
3
Reaction score
0
Hello guys .I have one question for u .I got one healt hack which set your health on 100 when u click 2 bottons.Ok now i need code to just give me for exemple 10hp+ not to set and to autoomatically write some text .Can somebodey done this for me ? I will give u now code how it is now.


//-------------MAIN---------------
03A4: name_thread 'HEALTHARMOR'

:HEALTHARMOR_19
0001: wait 10 ms
00D6: if and
0AB0:  key_pressed 219
0AB0:  key_pressed 221
004D: jump_if_false @HEALTHARMOR_19
0223: set_actor $PLAYER_ACTOR health_to 99
0002: jump @HEALTHARMOR_19


Thank u guys !      :imoverit:
 

ThermaL

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

while true
    wait 0 
    if and
            0AB0:   key_pressed 219 
            0AB0:   key_pressed 221 
    then
    0@ = Actor.Health($PLAYER_ACTOR) // 0@ = your current health
        if
            8029:   0@ >= 91 // 0@ not bigger than 91
        then
            0@ += 10 // increase 0@ with 10
            0223: set_actor $PLAYER_ACTOR health_to 0@ // apply
            print "TEXT" 1000 // shows "TEXT" for 1 second
        else
            0223: set_actor $PLAYER_ACTOR health_to 100
        end
    end
end
 
Status
Not open for further replies.
Top