summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-10-17 13:51:26 -0300
committerJesusaves <cpntb1@ymail.com>2021-10-17 13:51:26 -0300
commit2fc8fda3e15468ed67295d3f4ba2a746c3514220 (patch)
treee3c3065c8a7e56be7d5940aced86add8dc9678e8 /npc/items
parent2a66f3059955e68d64479f21854a550da686c3df (diff)
downloadserverdata-2fc8fda3e15468ed67295d3f4ba2a746c3514220.tar.gz
serverdata-2fc8fda3e15468ed67295d3f4ba2a746c3514220.tar.bz2
serverdata-2fc8fda3e15468ed67295d3f4ba2a746c3514220.tar.xz
serverdata-2fc8fda3e15468ed67295d3f4ba2a746c3514220.zip
Acknowledge changes to clientdata. Add MPHeal() function.
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/rand_mp_heal.txt13
1 files changed, 10 insertions, 3 deletions
diff --git a/npc/items/rand_mp_heal.txt b/npc/items/rand_mp_heal.txt
index 918e02dc3..4b6a5ca11 100644
--- a/npc/items/rand_mp_heal.txt
+++ b/npc/items/rand_mp_heal.txt
@@ -8,10 +8,11 @@
// @max
// @delay
+function script MPHeal {
+ @delay = getarg(0);
+ @min = getarg(1);
+ @max = getarg(2);
-- script rand_mp_heal -1,{
-
-OnUse:
if (@delay <= 0) {
Exception("Invalid healing item, deleting without healing effect.");
end;
@@ -40,6 +41,12 @@ OnUse:
@delay=0;
@min=0;
@max=0;
+}
+
+- script rand_mp_heal -1,{
+
+OnUse:
+ MPHeal(@delay, @min, @max);
end;
// Script Heart