CLEO Help [HELP] Changing key_press

CLEO related
Status
Not open for further replies.

Bosschicken

New member
Joined
Feb 27, 2014
Messages
1
Reaction score
0
For the past few hours i have tried to edit the hotkey of a cleo called "lag.cs"
I've been trying to change the key from F3 to number 2 and it activates it by pressing 2 but it won't deactivate, and this is the problem i have. Is it possible to have activation and deactivation on the same button?

Code:
//-------------MAIN---------------
wait 3000 
0@ = 304498 

:CB3R_15
thread 'CB3R' 
wait 0 
if 
0AB0:   key_pressed 50 
jf @CB3R_15 
018C: play_sound 1057 at 0.0 0.0 0.0 
00BC: show_text_highpriority GXT 'CHEAT1' time 1000 flag 1  // Cheat activated

:CB3R_81
wait 0 
if 
   not Actor.Stopped($PLAYER_ACTOR)
jf @CB3R_81 
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 50 
Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0)
wait 1000 
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 100 
jump @CB3R_81 
wait 200 

:CB3R2
thread 'CB3R2' 
wait 0 
if 
0AB0:   key_pressed 50 
jf @CB3R2 
018C: play_sound 1058 at 0.0 0.0 0.0 
00BC: show_text_highpriority GXT 'CHEAT8' time 1000 flag 1  // Cheat deactivated
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 2500 
jump @CB3R_15

Note: I cannot script at all, so it may cause some problems.

Another small request about a mod called spread.cs, currently the way to activate this mod is to type 'spread', but i'd like to change it to number 1 and i don't know how since the script is different.
If someone currently has lag.cs or spread.cs and could edit it for me and post a download link, would be appreciated very much.
 
Status
Not open for further replies.
Top