mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-06 09:28:49 +01:00
27 lines
732 B
Text
27 lines
732 B
Text
#26400
|
|
Healing Water~
|
|
1 s 100
|
|
~
|
|
set currenthunger %actor.hunger%
|
|
set currentthirst %actor.thirst%
|
|
if %currenthunger% > 20 && %currentthirst% > 0
|
|
%send% %actor% Your stomach can't contain anymore!
|
|
else
|
|
%send% %actor% The water seems to sparkle refreshingly as you drink.
|
|
%echoaround% %actor% The clear water seems to perk %actor.name% up.
|
|
%send% %actor% The clear water seems to perk %actor.name% up.
|
|
dg_cast 'cure light' %actor%
|
|
return 0
|
|
if %actor.thirst% < 0
|
|
else
|
|
eval newhunger %currenthunger% + 1
|
|
eval newthirst %currentthirst% + 5
|
|
nop %actor.thirst(%newthirst%)%
|
|
nop %actor.hunger(%newhunger%)%
|
|
if %newthirst% > 20
|
|
%send% %actor% You don't feel thirsty any more.
|
|
end
|
|
end
|
|
end
|
|
~
|
|
$~
|