Drink sprunk anywhere.
Like this:
sprunk: set to 97 hp
sprunk2: adds 35 hp only
Like this:
sprunk: set to 97 hp
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
for $not_used = 1 to 15 step 1
Actor.Health($PLAYER_ACTOR) = 97
wait 100
end
end
jump @SPRUNK_78
sprunk2: adds 35 hp only
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