summaryrefslogtreecommitdiff
path: root/npc/items/rand_sc_heal.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-15 16:41:32 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-15 16:41:32 -0300
commite1e7dbfe142e2b24bde410bd1ee2ac0296875a57 (patch)
tree9673d6f643d725ee1055739ae47ebd791e497d80 /npc/items/rand_sc_heal.txt
parentff5594f2f91332f94265d5126050a416d19ec694 (diff)
downloadserverdata-e1e7dbfe142e2b24bde410bd1ee2ac0296875a57.tar.gz
serverdata-e1e7dbfe142e2b24bde410bd1ee2ac0296875a57.tar.bz2
serverdata-e1e7dbfe142e2b24bde410bd1ee2ac0296875a57.tar.xz
serverdata-e1e7dbfe142e2b24bde410bd1ee2ac0296875a57.zip
Bad file?
Diffstat (limited to 'npc/items/rand_sc_heal.txt')
-rw-r--r--npc/items/rand_sc_heal.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt
index e4b0875a8..046b38e1c 100644
--- a/npc/items/rand_sc_heal.txt
+++ b/npc/items/rand_sc_heal.txt
@@ -1,6 +1,8 @@
+// TMW-2 Script.
// Evol scripts.
// Author:
// Reid
+// Jesusalva
// Description:
// Random heal every x seconds.
//
@@ -36,7 +38,7 @@
}
else
{
- @val1 = @val3;
+ @val3 = @val1;
}
return;
}
@@ -48,11 +50,11 @@ OnUse:
.@vitality_bonus = min(@min, readparam(bVit) * BaseLevel / 20);
.@rand_heal_val = rand(@min, @max);
- // val1 is the heal value without the vitality bonus
- @val1 = .@rand_heal_val / @delay;
- @val3 = (.@rand_heal_val + .@vitality_bonus) / @delay;
+ // val3 is the heal value without the vitality bonus
+ @val3 = .@rand_heal_val / @delay;
+ @val1 = (.@rand_heal_val + .@vitality_bonus) / @delay;
- if (@val1 <= 0) close;
+ if (@val3 <= 0) close;
@delay *= 1000; // Put the delay in ms