summaryrefslogtreecommitdiff
path: root/world/map/npc
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-01-15 23:59:00 -0500
committermekolat <mekolat@users.noreply.github.com>2016-01-15 23:59:00 -0500
commitd8963f20f870102068b39c7fd31cabc410208dc3 (patch)
tree6b5d5af3ca94eef767e7c25767298a73e1544d81 /world/map/npc
parentf31063b9c032d248fd6a326b2591c294c6d2cbb7 (diff)
parent580598d709ff37353ff0ce87e7366058afc7d117 (diff)
downloadserverdata-d8963f20f870102068b39c7fd31cabc410208dc3.tar.gz
serverdata-d8963f20f870102068b39c7fd31cabc410208dc3.tar.bz2
serverdata-d8963f20f870102068b39c7fd31cabc410208dc3.tar.xz
serverdata-d8963f20f870102068b39c7fd31cabc410208dc3.zip
Merge pull request #441 from themanaworld/rubber
add 2s delay to rubber bat
Diffstat (limited to 'world/map/npc')
-rw-r--r--world/map/npc/items/rubber_bat.txt11
-rw-r--r--world/map/npc/scripts.conf1
2 files changed, 12 insertions, 0 deletions
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