From cdcfdf581e2c106b2f5ccaff096d751fdc149d6e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 26 Jul 2019 21:39:21 -0300 Subject: Alcohol System miss some reset variables --- npc/items/alcohol.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'npc/items') diff --git a/npc/items/alcohol.txt b/npc/items/alcohol.txt index f1e9d4afb..3421bbe9e 100644 --- a/npc/items/alcohol.txt +++ b/npc/items/alcohol.txt @@ -79,8 +79,10 @@ OnUse: // Recalculate Alcohol Threshold and time ALC_THRESHOLD+=@Alcohol; - if (ALC_DELAYTIME < gettimetick(2)) + if (ALC_DELAYTIME < gettimetick(2)) { ALC_DELAYTIME=gettimetick(2); + ALC_THRESHOLD=@Alcohol; + } ALC_DELAYTIME+=@Alcohol*.@deltatime; // Debug comment if you need to check stuff @@ -94,3 +96,9 @@ OnUse: close; } +function script ALCReset { + if (ALC_DELAYTIME < gettimetick(2)) + ALC_THRESHOLD=0; + end; +} + -- cgit v1.2.3-70-g09d2