From da1a1038d8ad71358042d7d9311486d0c75bfc64 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 29 May 2020 19:46:54 -0300 Subject: Status Reset Potion - return fruits --- npc/functions/resetstatus.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'npc') diff --git a/npc/functions/resetstatus.txt b/npc/functions/resetstatus.txt index 71f724170..eb5d0cfc5 100644 --- a/npc/functions/resetstatus.txt +++ b/npc/functions/resetstatus.txt @@ -6,10 +6,16 @@ // Status Reset NPC utils // Reset status and return permanent bonuses -// StatusResetReinvest( - ) +// StatusResetReinvest( {script=True} ) function script StatusResetReinvest { // Compulsory check - inventoryplace NPCEyes, 6; + if (getarg(0, true)) { + inventoryplace NPCEyes, 6; + } else if (!checkweight2(NPCEyes, 6)) { + getitembound StatusResetPotion, 1, 4; + dispbottom l("You cannot carry the fruits."); + end; // Die + } // Permanent boosts were now lost, return the fruits if (STATUSUP_STR) { -- cgit v1.2.3-60-g2f50