CLEO Help [Help] ON OFF switch

CLEO related
Status
Not open for further replies.

Petricko

Member
Joined
Dec 21, 2014
Messages
23
Reaction score
0
Can some one help me how to make switch on tis Script. Thanks in advance.
Code:
{$CLEO .cs}

0662: "Wolverine_Advanced"

//Created by M1ZG4RD, credits to MegaBlack for inspiration

:Settings_Read
wait 50 
if 
0AAB:   file_exists "CLEO\WolverineAdvanced_config.ini" 
else_jump @Settings_New
0AF0: 20@ = get_int_from_ini_file "CLEO\WolverineAdvanced_config.ini" section "SETTINGS" key "INCREASE_AMOUNT" 
0AF0: 21@ = get_int_from_ini_file "CLEO\WolverineAdvanced_config.ini" section "SETTINGS" key "TIME_WAIT" 
0AF0: 22@ = get_int_from_ini_file "CLEO\WolverineAdvanced_config.ini" section "SETTINGS" key "MAX_HP" 
jump @WOLVERINE_Add

:Settings_New
wait 10 
0AF1: write_int 4 to_ini_file "CLEO\WolverineAdvanced_config.ini" section "SETTINGS" key "INCREASE_AMOUNT" 
0AF1: write_int 2000 to_ini_file "CLEO\WolverineAdvanced_config.ini" section "SETTINGS" key "TIME_WAIT"
0AF1: write_int 100 to_ini_file "CLEO\WolverineAdvanced_config.ini" section "SETTINGS" key "MAX_HP"
jump @Settings_Read


:WOLVERINE_Add
wait 0 
if and
  Player.Defined($PLAYER_CHAR)
  not Actor.Dead($PLAYER_ACTOR)  
else_jump @WOLVERINE_Add
2@ = Actor.Health($PLAYER_ACTOR)
wait 21@
1@ = Actor.Health($PLAYER_ACTOR)
if
  003B:   1@ == 2@  // (int)
else_jump @WOLVERINE_Add
0085: 23@ = 22@ // (int)
0062: 23@ -= 20@  // (int)
if 
  002D:   23@ >= 1@  // (int)
else_jump @WOLVERINE_Full
005A: 1@ += 20@  // (int)
Actor.Health($PLAYER_ACTOR) = 1@
jump @WOLVERINE_Add 

:WOLVERINE_Full
wait 0 
Actor.Health($PLAYER_ACTOR) = 22@
jump @WOLVERINE_Add
 

Min

Well-known member
Joined
Jun 13, 2014
Messages
220
Reaction score
1
[glow=red,2,300]You can change the activation keys by opening the .ini[/glow]  :computer_guy:
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Code:
:ON
if
...
jf @ON
print "shit on" 1000

:WOLVERINE_Add
wait 0 
if and
  Player.Defined($PLAYER_CHAR)
  not Actor.Dead($PLAYER_ACTOR)  
jf @OFF
2@ = Actor.Health($PLAYER_ACTOR)
wait 21@
1@ = Actor.Health($PLAYER_ACTOR)
if
  003B:   1@ == 2@  // (int)
jf @OFF
0085: 23@ = 22@ // (int)
0062: 23@ -= 20@  // (int)
if 
  002D:   23@ >= 1@  // (int)
jf @WOLVERINE_Full
005A: 1@ += 20@  // (int)
Actor.Health($PLAYER_ACTOR) = 1@
jump @OFF 

:WOLVERINE_Full
Actor.Health($PLAYER_ACTOR) = 22@

:OFF
if
...
jf @WOLVERINE_Add
print "shit off" 1000
goto @ON
 
Status
Not open for further replies.
Top