summaryrefslogtreecommitdiff
path: root/world
diff options
context:
space:
mode:
authorHoraK-FDF <horak-fdf@web.de>2024-06-01 22:30:13 +0200
committerLed Mitz <smoothshifter@tuta.io>2024-06-06 19:46:45 +0000
commitdb180cfca543cddda1af5078f217e4deb913636a (patch)
treef26675012d23b37245a2201d0e95df139558aa83 /world
parentb01a7b0a96ff262fa8b6c19eb0ffef74a50fb0a7 (diff)
downloadserverdata-db180cfca543cddda1af5078f217e4deb913636a.tar.gz
serverdata-db180cfca543cddda1af5078f217e4deb913636a.tar.bz2
serverdata-db180cfca543cddda1af5078f217e4deb913636a.tar.xz
serverdata-db180cfca543cddda1af5078f217e4deb913636a.zip
use same sound timer
Diffstat (limited to 'world')
-rw-r--r--world/map/npc/items/rubber_bat.txt4
-rw-r--r--world/map/npc/items/rubber_duck.txt4
-rw-r--r--world/map/npc/items/silver_bell.txt4
3 files changed, 6 insertions, 6 deletions
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: