diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-10-17 13:51:26 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-10-17 13:51:26 -0300 |
commit | 2fc8fda3e15468ed67295d3f4ba2a746c3514220 (patch) | |
tree | e3c3065c8a7e56be7d5940aced86add8dc9678e8 /npc/items | |
parent | 2a66f3059955e68d64479f21854a550da686c3df (diff) | |
download | serverdata-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.txt | 13 |
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 |