summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorQuillia Aeuda <jonathan.h.seamon@gmail.com>2020-07-17 03:52:29 +0000
committerJesusaves <cpntb1@ymail.com>2020-07-17 03:52:29 +0000
commitd85c11ede83548d4f67ab574207caff686bb3349 (patch)
tree66ddcf725fe545aeb593e36abf226b4ab3366ddd /npc
parent80fd4fc47969a1a5564a6892b5adb577ba920a3c (diff)
downloadserverdata-d85c11ede83548d4f67ab574207caff686bb3349.tar.gz
serverdata-d85c11ede83548d4f67ab574207caff686bb3349.tar.bz2
serverdata-d85c11ede83548d4f67ab574207caff686bb3349.tar.xz
serverdata-d85c11ede83548d4f67ab574207caff686bb3349.zip
Rubber Bat - Correctly duplicates Legacy functionality.
Diffstat (limited to 'npc')
-rw-r--r--npc/items/music_toys.txt18
-rw-r--r--npc/scripts.conf1
2 files changed, 19 insertions, 0 deletions
diff --git a/npc/items/music_toys.txt b/npc/items/music_toys.txt
new file mode 100644
index 00000000..8583f65e
--- /dev/null
+++ b/npc/items/music_toys.txt
@@ -0,0 +1,18 @@
+// Evol scripts.
+// Authors:
+// Quillia
+// mekolat (legacy delay logic)
+// Description:
+// Allows the RubberBat to be squeezed.
+//
+
+- script RubberBat NPC_HIDDEN,{
+ close;
+
+OnUse:
+ if (gettimetick(2) - @lastbat < 2) close;
+ specialeffect(70, AREA, playerattached()); // effect 70 defined in client-data/effects.xml
+ @lastbat = gettimetick(2);
+
+ close;
+}
diff --git a/npc/scripts.conf b/npc/scripts.conf
index 4e144bf6..d15eaef7 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -122,6 +122,7 @@
"npc/items/rand_sc_heal.txt",
"npc/items/recipes.txt",
"npc/items/master_skillbook.txt",
+"npc/items/music_toys.txt",
// custom atcommands
"npc/commands/gm.txt",