From 700f027d7eeaec81f09527fe89704541a065f1f8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 28 Apr 2019 17:30:29 +0000 Subject: Prevent Cookies from being used for "too long" --- npc/items/cookie.txt | 18 ++++++++++++++++++ npc/scripts.conf | 1 + 2 files changed, 19 insertions(+) create mode 100644 npc/items/cookie.txt (limited to 'npc') diff --git a/npc/items/cookie.txt b/npc/items/cookie.txt new file mode 100644 index 00000000..80ff591e --- /dev/null +++ b/npc/items/cookie.txt @@ -0,0 +1,18 @@ +// Evol script. +// Author: +// Jesusalva +// Reid (?) +// Description: +// Prevents cookie from being used for too long + +- script #DeliciousCookie NPC_HIDDEN,{ + end; + +OnPCLogoutEvent: +OnUnequip: + if (getequipid(EQI_HEAD_MID) == DeliciousCookie) + unequip(EQI_HEAD_MID); + end; + +} + diff --git a/npc/scripts.conf b/npc/scripts.conf index 1b7e85e6..f593cade 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -98,6 +98,7 @@ "npc/functions/quest-debug/042-General_Brotherhood.txt", // Item functions +"npc/items/cookie.txt", "npc/items/croconut.txt", "npc/items/shovel.txt", "npc/items/rand_sc_heal.txt", -- cgit v1.2.3-70-g09d2