From 4df3fdd86e26090675d009640b753f926f4e8bec Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 22 Jul 2019 09:55:44 -0300 Subject: Scholarship Badge (ID 911) - Grants you a free skill learning and is used first. --- npc/functions/util.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'npc') diff --git a/npc/functions/util.txt b/npc/functions/util.txt index f41c343fc..835eae988 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -639,12 +639,15 @@ function script mlearn { next; if (askyesno() == ASK_NO) return true; - if (countitem(.@it) < .@am) + if (countitem(.@it) < .@am && !(countitem(ScholarshipBadge))) return false; if (!sk_canlvup(.@ap)) return false; - delitem .@it, .@am; + if (countitem(ScholarshipBadge)) + delitem ScholarshipBadge, 1; + else + delitem .@it, .@am; sk_lvup(.@sk, .@ap); return true; } -- cgit v1.2.3-60-g2f50