summaryrefslogtreecommitdiff
path: root/npc/009-2_Hurnscald/kfahr.txt
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2008-12-23 17:16:49 +0000
committerJared Adams <jaxad0127@gmail.com>2008-12-23 17:18:37 +0000
commitb1ced66321ffed02cde1a9ccd39fa2c9ba004125 (patch)
tree87b2f8639b8e1b79125ebdd77f71d19305d0084c /npc/009-2_Hurnscald/kfahr.txt
parent2ac5f8a1dfa5482dc1fee2bbd41b5e0eb0928abd (diff)
downloadserverdata-b1ced66321ffed02cde1a9ccd39fa2c9ba004125.tar.gz
serverdata-b1ced66321ffed02cde1a9ccd39fa2c9ba004125.tar.bz2
serverdata-b1ced66321ffed02cde1a9ccd39fa2c9ba004125.tar.xz
serverdata-b1ced66321ffed02cde1a9ccd39fa2c9ba004125.zip
Fixeds to check for invy room before giving items
Diffstat (limited to 'npc/009-2_Hurnscald/kfahr.txt')
-rw-r--r--npc/009-2_Hurnscald/kfahr.txt40
1 files changed, 39 insertions, 1 deletions
diff --git a/npc/009-2_Hurnscald/kfahr.txt b/npc/009-2_Hurnscald/kfahr.txt
index cd5bc3b7..5d847ea0 100644
--- a/npc/009-2_Hurnscald/kfahr.txt
+++ b/npc/009-2_Hurnscald/kfahr.txt
@@ -810,12 +810,19 @@ L_knife_quest_completecheck:
mes "I had the nomads make me a few of them, and I hardly use them nowadays, so I think I can part with this one.";
next;
+ if (countitem(@BLACK_STINGER) < @BLACK_STINGERS_NR)
+ goto L_knife_quest_missing_stingers_2;
+
+ if (countitem(@MUSHROOM) < @MUSHROOMS_NR)
+ goto L_knife_quest_missing_mushrooms_2;
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_Knife_TooMany;
+
mes "[Kfahr the Warrior]";
mes "He hands you the knife.";
mes "\"Oh, and I think I'll keep those in return; I know someone who will trade them for antidote potions.\"";
mes "He pockets the stingers and mushrooms.";
mes "[" + @KNIFE_QUEST_XP + " experience points]";
- next;
set @Q_status, @QS_KNIFE_QUEST_DONE;
callsub L_Update_Var;
@@ -828,6 +835,11 @@ L_knife_quest_completecheck:
goto L_main_menu;
+L_Knife_TooMany:
+ mes "[Kfahr the Warrior]";
+ mes "\"You don't have room for this. Come back when you do.\"";
+ close;
+
L_knife_quest_missing_stingers:
mes "[Kfahr the Warrior]";
mes "\"No, no... I said " + @BLACK_STINGERS_NR + " black scorpion stingers.";
@@ -838,6 +850,16 @@ L_knife_quest_missing_stingers:
next;
close;
+L_knife_quest_missing_stingers_2:
+ mes "[Kfahr the Warrior]";
+ mes "\"You just had " + @BLACK_STINGERS_NR + " black scorpion stingers. What happened to them?";
+ if (countitem(@BLACK_STINGER))
+ mes "You will need " + (@BLACK_STINGERS_NR - (countitem (@BLACK_STINGER))) + " more of those.\"";
+ if (countitem(@BLACK_STINGER) == 0)
+ mes "You didn't bring even a single one!\"";
+ next;
+ close;
+
L_knife_quest_missing_mushrooms:
mes "[Kfahr the Warrior]";
mes "\"No, no... I said " + @MUSHROOMS_NR + " small mushrooms.";
@@ -848,6 +870,16 @@ L_knife_quest_missing_mushrooms:
next;
close;
+L_knife_quest_missing_mushrooms_2:
+ mes "[Kfahr the Warrior]";
+ mes "\"You just had " + @MUSHROOMS_NR + " small mushrooms. What happened to them?";
+ if (countitem(@MUSHROOM))
+ mes "You will need " + (@MUSHROOMS_NR - (countitem (@MUSHROOM))) + " more of those.\"";
+ if (countitem(@MUSHROOM) == 0)
+ mes "You didn't bring me even a single little mushroom!\"";
+ next;
+ close;
+
L_stinger_quest_check:
mes "[Kfahr the Warrior]";
mes "Kfahr grins at you.";
@@ -863,6 +895,8 @@ L_stinger_quest_check:
L_snakeskins_completecheck:
if (countitem(@SNAKE_SKIN) < @SNAKE_SKINS_NR)
goto L_snakeskins_missing;
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_SnakeSkins_TooMany;
delitem @SNAKE_SKIN, @SNAKE_SKINS_NR;
getitem @GOLDEN_STINGER, 1;
@@ -890,6 +924,10 @@ L_snakeskins_missing:
next;
close;
+L_SnakeSkins_TooMany:
+ mes "[Kfahr the Warrior]";
+ mes "\"YOu don't have room for this. Come back when you do.\"";
+ close;
L_give_beer:
if (countitem(@BEER) < 1)