CLEO Help Shortcut (need help)

CLEO related

Ariya9473

Active member
Joined
Dec 7, 2014
Messages
59
Reaction score
0
hi , this is a shotcut cmd mod , but i have a little problem on this
For example, when I use this keybind cod , giving waiting (wait 2000) time will work correctly , and mod will wait for 2 sec and after that it will continue and send other commands
if
0AB0: key_pressed 102 // (numpad 6)
then
Say "/drink soda"
Say "/drink soda"
Say "/drink soda"
wait 2000
Say "/drink soda"
Say "/drink soda"
wait 500
end

but when i am useing shortcut command , the wait between them will not work like this and it will send commands without wait time

0B34: "so" to_label @Hotdog

:soda
Say "/drink soda"
Say "/drink soda"
Say "/drink soda"
wait 2000
Say "/drink soda"
Say "/drink soda"
Say "/drink soda"
cmdret

i khow this is a very simple cleo but i am not good at this
can you help me how can i fix this?
 
Solution
PHP:
While true
wait 0

If 31 @ == true
Then
Say "/drink soda"
Say "/drink soda"
Say "/drink soda"
wait 2000
Say "/drink soda"
Say "/drink soda"
Say "/drink soda
31@ = false
End

End

:cmd
31@ = true
cmdret

Parazitas

God
Joined
Jan 2, 2017
Messages
3,115
Solutions
5
Reaction score
879
Location
Lithuania
PHP:
While true
wait 0

If 31 @ == true
Then
Say "/drink soda"
Say "/drink soda"
Say "/drink soda"
wait 2000
Say "/drink soda"
Say "/drink soda"
Say "/drink soda
31@ = false
End

End

:cmd
31@ = true
cmdret
 
Solution
Top