From 591f8a5f8779fb5ecfd1406c668b16dcfff2ebba Mon Sep 17 00:00:00 2001 From: Asheraf Date: Mon, 12 Dec 2016 19:24:32 +0000 Subject: Add a custom weight check in ring of the wise king quest --- npc/quests/quests_13_2.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'npc/quests') diff --git a/npc/quests/quests_13_2.txt b/npc/quests/quests_13_2.txt index 85b60e7fb..0dfd16d23 100644 --- a/npc/quests/quests_13_2.txt +++ b/npc/quests/quests_13_2.txt @@ -4467,6 +4467,11 @@ function script jewel_13_2 { mes "...What the heck am I doing now..."; close; } + if (checkweight(Knife, 1) == 0) { // Custom check + mes "- It looks like you're carrying too many things. -"; + mes "- Why not put some of your items in storage and come back? -"; + close; + } if (rand(1,4) == 2) { mes "- You dug up a pile of earth -"; mes "- and pulled out the "+getarg(0)+" Gem -"; -- cgit v1.2.3-60-g2f50