From 580598d709ff37353ff0ce87e7366058afc7d117 Mon Sep 17 00:00:00 2001 From: mekolat Date: Mon, 30 Nov 2015 08:49:28 -0500 Subject: add 2s delay to rubber bat --- world/map/npc/items/rubber_bat.txt | 11 +++++++++++ world/map/npc/scripts.conf | 1 + 2 files changed, 12 insertions(+) create mode 100644 world/map/npc/items/rubber_bat.txt (limited to 'world/map/npc') diff --git a/world/map/npc/items/rubber_bat.txt b/world/map/npc/items/rubber_bat.txt new file mode 100644 index 00000000..edf12416 --- /dev/null +++ b/world/map/npc/items/rubber_bat.txt @@ -0,0 +1,11 @@ +function|script|rubberBat +{ + if (gettimetick(2) - @lastbat < 2) goto L_Return; + misceffect 403; + set @lastbat, gettimetick(2); + goto L_Return; + +L_Return: + getitem "RubberBat", 1; + return; +} diff --git a/world/map/npc/scripts.conf b/world/map/npc/scripts.conf index e2603c8e..f9251214 100644 --- a/world/map/npc/scripts.conf +++ b/world/map/npc/scripts.conf @@ -46,6 +46,7 @@ npc: npc/items/unequipcb.txt npc: npc/items/launcher_ammo.txt npc: npc/items/check_wand.txt npc: npc/items/mirror.txt +npc: npc/items/rubber_bat.txt import: npc/_import.txt // GM Events -- cgit v1.2.3-60-g2f50