From fb3b066e0b99900b0dff319ef9ca8776d9d26a64 Mon Sep 17 00:00:00 2001 From: Jessica Tölke Date: Thu, 19 Jul 2012 09:30:06 +0200 Subject: Some fixes in Orum script. Set variable right after giving the reward. Check for weight and inventory before giving the reward. --- world/map/npc/009-4/orum.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/world/map/npc/009-4/orum.txt b/world/map/npc/009-4/orum.txt index 2cec52ca..43c129b5 100644 --- a/world/map/npc/009-4/orum.txt +++ b/world/map/npc/009-4/orum.txt @@ -567,9 +567,13 @@ L_Ready_Cavern: mes "[Orum]"; mes "\"Very good work you have done! Please take this for your efforts. It has helped me in a bind.\""; next; + getinventorylist; + if ((checkweight("CandleHelmet", 1) == 0) || (@inventory_count == 100)) + goto L_Inventory; getexp @EXP_BREAK_BARRIERS, 0; getitem "CandleHelmet", 1; - mes "You receive the Candle Helmet"; + set OrumQuest, 12; + mes "You receive the Candle Helmet."; next; mes "\"You've done enough here to help. I will go the rest of the way alone so that your life is not endangered.. You must promise me not to go any further!\""; next; @@ -578,7 +582,10 @@ L_Ready_Cavern: "I thought this would never be over!", -; mes "[Orum]"; mes "\"Well I guess this is farewell!\""; - set OrumQuest, 12; + close; + +L_Inventory: + mes "\"You're carrying too much. Come back to me after you got rid of some stuff. And hurry, I don't want to spent all day waiting on you.\""; close; L_Got_Reward: -- cgit v1.2.3-60-g2f50