summaryrefslogtreecommitdiff
path: root/npc/items/alcohol.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-07-26 21:39:21 -0300
committerJesusaves <cpntb1@ymail.com>2019-07-26 21:39:21 -0300
commitcdcfdf581e2c106b2f5ccaff096d751fdc149d6e (patch)
tree44a5c9ff831c8ce8988ed1a70cbd2a9fe2c74c57 /npc/items/alcohol.txt
parent8aa49725f5d65f97e6a9a51032a49232000f72d6 (diff)
downloadserverdata-cdcfdf581e2c106b2f5ccaff096d751fdc149d6e.tar.gz
serverdata-cdcfdf581e2c106b2f5ccaff096d751fdc149d6e.tar.bz2
serverdata-cdcfdf581e2c106b2f5ccaff096d751fdc149d6e.tar.xz
serverdata-cdcfdf581e2c106b2f5ccaff096d751fdc149d6e.zip
Alcohol System miss some reset variables
Diffstat (limited to 'npc/items/alcohol.txt')
-rw-r--r--npc/items/alcohol.txt10
1 files changed, 9 insertions, 1 deletions
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;
+}
+