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" --- db/re/item_db.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'db') diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 40f51c00..7dec6d2b 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -612,8 +612,18 @@ item_db: ( Trade: { nodrop: true noselltonpc: true + nogstorage: true + nomail: true } - Sprite: 0 + OnEquipScript: <" + if (gettimetick(2) < COOKIE_COOLDOWN) { + unequip(EQI_HEAD_MID); + //dispbottom l("You need to wait @@ more before equipping this again.", FuzzyTime(COOKIE_COOLDOWN)); + end; + } + COOKIE_COOLDOWN=gettimetick(2)+600; + addtimer 60000, "#DeliciousCookie::OnUnequip"; + "> }, { Id: 518 -- cgit v1.2.3-70-g09d2