From df6bcf475ae1b6abd1d15469176c3d1d918a48fb Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 5 Jun 2022 23:53:31 -0300 Subject: Maybe this fix the bug --- npc/functions/util.txt | 4 ++-- npc/items/legacy_heal.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/npc/functions/util.txt b/npc/functions/util.txt index bc76b5361..ac864a125 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -71,9 +71,9 @@ function script DelChrRegFromEveryPlayer { .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC); for (.@i = 0; .@i < .@c; .@i++) { if (compare(getarg(0), "$")) - setd(getarg(0), ""); + setd(str(getarg(0)), ""); else - setd(getarg(0), 0); + setd(str(getarg(0)), 0); } return; } diff --git a/npc/items/legacy_heal.txt b/npc/items/legacy_heal.txt index 2f3484080..2beb820d3 100644 --- a/npc/items/legacy_heal.txt +++ b/npc/items/legacy_heal.txt @@ -35,7 +35,7 @@ function script ItHeal { // Obtain the real healing @val1 = rand2(.@min, .@max) / .@delay; - debugmes "Heal %d-%d/%d = %d", .@min, .@max, .@delay, @val1; + //debugmes "Heal %d-%d/%d = %d", .@min, .@max, .@delay, @val1; .@delay *= 1000; // Put the delay in ms -- cgit v1.2.3-60-g2f50