summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
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",