diff options
author | Ibrahem Hossam <ibrahem.h.basyone@gmail.com> | 2016-12-13 00:35:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-13 00:35:09 +0200 |
commit | 9795505a14327d5d2603a1d756633485e7e2ba94 (patch) | |
tree | ace712b94004925cfbf0cd646f2ff00a508d460e /npc | |
parent | 5420eb80caeedfc7cb26c9f4d9507d29f4b989a6 (diff) | |
parent | 591f8a5f8779fb5ecfd1406c668b16dcfff2ebba (diff) | |
download | hercules-9795505a14327d5d2603a1d756633485e7e2ba94.tar.gz hercules-9795505a14327d5d2603a1d756633485e7e2ba94.tar.bz2 hercules-9795505a14327d5d2603a1d756633485e7e2ba94.tar.xz hercules-9795505a14327d5d2603a1d756633485e7e2ba94.zip |
Merge pull request #1529 from Asheraf/quest13
Add a custom weight check in ring of the wise king quest
Diffstat (limited to 'npc')
-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 -"; |