i need to put a countdown in this cleo

SeñorWeso

New member
Joined
Nov 15, 2018
Messages
2
Reaction score
0
Hi, i need to put a 60s cooldown to use this cleo so i cant spam it.

The cleo is SPRUNK.CS by x7F8

This is the code:

Code:
{$CLEO}

0000:

:SPRUNK_78
wait 0
if
0ADC: "XX"
then
    04ED: load_animation "VENDING"
    while 84EE: not animation "VENDING" loaded
        wait 0
    end
    0605: actor $PLAYER_ACTOR "VEND_USE" IFP "VENDING" framedelta 4.1 loop 0 lockX 0 lockY 0 lockF 0 time -1
    print "~b~Sprunk!" 2000
    wait 400
    0@ = Actor.Health($PLAYER_ACTOR)
    0@ += 35
    for $not_used = 1 to 15 step 1
        Actor.Health($PLAYER_ACTOR) = 0@
        wait 100
    end
    0@ = Actor.Health($PLAYER_ACTOR)
    if
    0@ > 100
    then
        Actor.Health($PLAYER_ACTOR) = 100
    end
end
jump @SPRUNK_78

Thanks!
 

Safa

Well-known member
Joined
Feb 24, 2015
Messages
342
Reaction score
127
Not sure what you are trying to do but you can use the wait (amount of ms) function to pause the script.
 

SeñorWeso

New member
Joined
Nov 15, 2018
Messages
2
Reaction score
0
Not sure what you are trying to do but you can use the wait (amount of ms) function to pause the script.

I'm trying to make this cleo only be able to activate it once every 60 seconds

Could you tell me where to put that line?
 
Top