CLEO Help Auto Teleport

CLEO related
Status
Not open for further replies.

Jack911

Member
Joined
Jul 1, 2015
Messages
14
Reaction score
0
Hi yo, im new at cleo scripting etc etc etc.. :dont_care:
and I want somebody to teach me how can I make auto teleport for 2 coords

ex: press F12 and automatic teleport to the 1 coord and after 1 second teleport to the 2 coord then wait 8 secs and back me to the 1 coord, and repeat again again and again  :urtheman:

I NEED THIS, CAN SOMEBODY TEACH ME? IF IT CAN I WILL BE HAPPY  :forever_hurra:
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
228
Location
( ͡° ͜ʖ ͡°)
This is how you do that once if you press f12:

Code:
{$CLEO .cs}
0000:

WHILE TRUE
    WAIT 0
    IF
    0AB0: PRESSING_KEY 123
    THEN
        Actor.PutAt($PLAYER_ACTOR, 0.0, 0.0, 0.0) // FIRST_CORDS
        WAIT 1000 // wait 1 seconds ... 1000 MS is 1 second.
        Actor.PutAt($PLAYER_ACTOR, 212.0, 1234.0, 14.0) // SECOND CORDS
        WAIT 8000
        Actor.PutAt($PLAYER_ACTOR, 0.0, 0.0, 0.0) // FIRST_CORDS
        // DONE?
    END
END

and to do it in a  loop  (repeat all the time)
you have to create a toggle for the loop and if the toggle is true
do everything in the loop

Code:
{$CLEO .cs}
0000:
0@ = FALSE

WHILE TRUE
    WAIT 0
    IF
    0AB0: 123
    THEN
        IF
        0@ == TRUE
        THEN
        0@ = FALSE
        0AD1: show_formatted_text_highpriority "TURNED ON" time 2000

        ELSE
        0@ = TRUE
        0AD1: show_formatted_text_highpriority "TURNED OFF" time 2000
        END
    END
    IF
    0@ == TRUe
    THEN
        Actor.PutAt($PLAYER_ACTOR, 0.0, 0.0, 0.0) // FIRST_CORDS
        WAIT 1000 // wait 1 seconds ... 1000 MS is 1 second.
        Actor.PutAt($PLAYER_ACTOR, 212.0, 1234.0, 14.0) // SECOND CORDS
        WAIT 8000
        Actor.PutAt($PLAYER_ACTOR, 0.0, 0.0, 0.0) // FIRST_CORDS
        // DONE?
    
    END 
END

but for this version you have to hold the f12 key 9seconds to disable the mod
 
Status
Not open for further replies.
Top