diff options
author | Asheraf <acheraf1998@gmail.com> | 2016-12-12 19:24:32 +0000 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2016-12-12 19:24:32 +0000 |
commit | 591f8a5f8779fb5ecfd1406c668b16dcfff2ebba (patch) | |
tree | ace712b94004925cfbf0cd646f2ff00a508d460e /npc/quests | |
parent | 5420eb80caeedfc7cb26c9f4d9507d29f4b989a6 (diff) | |
download | hercules-591f8a5f8779fb5ecfd1406c668b16dcfff2ebba.tar.gz hercules-591f8a5f8779fb5ecfd1406c668b16dcfff2ebba.tar.bz2 hercules-591f8a5f8779fb5ecfd1406c668b16dcfff2ebba.tar.xz hercules-591f8a5f8779fb5ecfd1406c668b16dcfff2ebba.zip |
Add a custom weight check in ring of the wise king quest
Diffstat (limited to 'npc/quests')
-rw-r--r-- | npc/quests/quests_13_2.txt | 5 |
1 files changed, 5 insertions, 0 deletions
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 -"; |