From d85c11ede83548d4f67ab574207caff686bb3349 Mon Sep 17 00:00:00 2001 From: Quillia Aeuda Date: Fri, 17 Jul 2020 03:52:29 +0000 Subject: Rubber Bat - Correctly duplicates Legacy functionality. --- npc/items/music_toys.txt | 18 ++++++++++++++++++ npc/scripts.conf | 1 + 2 files changed, 19 insertions(+) create mode 100644 npc/items/music_toys.txt (limited to 'npc') 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", -- cgit v1.2.3-70-g09d2