summaryrefslogtreecommitdiff
path: root/npc/items/cookie.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/items/cookie.txt')
-rw-r--r--npc/items/cookie.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/npc/items/cookie.txt b/npc/items/cookie.txt
new file mode 100644
index 00000000..e451e844
--- /dev/null
+++ b/npc/items/cookie.txt
@@ -0,0 +1,22 @@
+// Evol script.
+// Author:
+// Jesusalva
+// Reid (?)
+// Description:
+// Prevents cookie from being used for too long
+
+function script UnequipCookie {
+ if (getequipid(EQI_HEAD_MID) == DeliciousCookie)
+ unequip(EQI_HEAD_MID);
+ return;
+}
+
+- script #DeliciousCookie NPC_HIDDEN,{
+ end;
+
+OnUnequip:
+ UnequipCookie();
+ end;
+
+}
+