From 62a866fb025efa73994ce11fa0638125953f224d Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Sat, 1 Jun 2024 11:20:10 +0200 Subject: KeepAfterUse + DontUseAmmo --- world/map/npc/items/rubber_duck.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'world/map/npc/items/rubber_duck.txt') diff --git a/world/map/npc/items/rubber_duck.txt b/world/map/npc/items/rubber_duck.txt index 3f591c15..3dba2368 100644 --- a/world/map/npc/items/rubber_duck.txt +++ b/world/map/npc/items/rubber_duck.txt @@ -1,11 +1,10 @@ function|script|rubberDuck { - if (gettimetick(2) - @lastbat < 2) goto L_Return; + if (gettimetick(2) - @lastduck < 3) goto L_Return; misceffect 406; - set @lastbat, gettimetick(2); + set @lastduck, gettimetick(2); goto L_Return; L_Return: - getitem "RubberDucky", 1; return; } -- cgit v1.2.3-70-g09d2 From db180cfca543cddda1af5078f217e4deb913636a Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Sat, 1 Jun 2024 22:30:13 +0200 Subject: use same sound timer --- world/map/npc/items/rubber_bat.txt | 4 ++-- world/map/npc/items/rubber_duck.txt | 4 ++-- world/map/npc/items/silver_bell.txt | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'world/map/npc/items/rubber_duck.txt') diff --git a/world/map/npc/items/rubber_bat.txt b/world/map/npc/items/rubber_bat.txt index a849b40d..ea569a22 100644 --- a/world/map/npc/items/rubber_bat.txt +++ b/world/map/npc/items/rubber_bat.txt @@ -1,8 +1,8 @@ function|script|rubberBat { - if (gettimetick(2) - @lastbat < 2) goto L_Return; + if (gettimetick(2) - @lastsound < 2) goto L_Return; misceffect 403; - set @lastbat, gettimetick(2); + set @lastsound, gettimetick(2); goto L_Return; L_Return: diff --git a/world/map/npc/items/rubber_duck.txt b/world/map/npc/items/rubber_duck.txt index 3dba2368..8a822752 100644 --- a/world/map/npc/items/rubber_duck.txt +++ b/world/map/npc/items/rubber_duck.txt @@ -1,8 +1,8 @@ function|script|rubberDuck { - if (gettimetick(2) - @lastduck < 3) goto L_Return; + if (gettimetick(2) - @lastsound < 2) goto L_Return; misceffect 406; - set @lastduck, gettimetick(2); + set @lastsound, gettimetick(2); goto L_Return; L_Return: diff --git a/world/map/npc/items/silver_bell.txt b/world/map/npc/items/silver_bell.txt index c1ea2e50..07623426 100644 --- a/world/map/npc/items/silver_bell.txt +++ b/world/map/npc/items/silver_bell.txt @@ -1,8 +1,8 @@ function|script|SilverBellSound { - if (gettimetick(2) - @lastsilverbell < 3) goto L_Return; + if (gettimetick(2) - @lastsound < 2) goto L_Return; misceffect 404; - set @lastsilverbell, gettimetick(2); + set @lastsound, gettimetick(2); goto L_Return; L_Return: -- cgit v1.2.3-70-g09d2