From f57f80f517033f2d245461b547a324100d6428a1 Mon Sep 17 00:00:00 2001 From: Jessica Tölke Date: Fri, 14 Oct 2011 14:16:41 +0200 Subject: Give small experience reward for fails in quests that need random amount of items. --- world/map/npc/009-2/alan.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'world/map/npc/009-2') diff --git a/world/map/npc/009-2/alan.txt b/world/map/npc/009-2/alan.txt index 1eeb51f0..0e9da6fd 100644 --- a/world/map/npc/009-2/alan.txt +++ b/world/map/npc/009-2/alan.txt @@ -14,6 +14,8 @@ set @Q_status, ((QUEST_Forestbow_state) & @Q_MASK) >> @Q_SHIFT; + set @BROKENLOG_EXP, 15; + if (@Q_status == 1) goto L_State_1; if (@Q_status == 2) goto L_State_2; if (@Q_status == 3) goto L_State_3; @@ -136,6 +138,7 @@ L_State_3_try: set @Temp1, rand(20); if (@Temp1 == 0) goto L_State_3_success; mes "The log breaks with a loud crack."; + getexp @BROKENLOG_EXP, 0; next; mes "[Alan]"; mes "\"Sorry, this log was too weak for one of my forest bows. Now it is junk. Give me another.\""; -- cgit v1.2.3-60-g2f50