diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2011-10-14 14:16:41 +0200 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2011-10-14 16:35:39 +0200 |
commit | f57f80f517033f2d245461b547a324100d6428a1 (patch) | |
tree | 836a8034870fc5d1d14f63df39127b2891c7832c /world/map/npc/009-2/alan.txt | |
parent | a5cc84660484054451ab8c912ec6fc4652eac1a0 (diff) | |
download | serverdata-f57f80f517033f2d245461b547a324100d6428a1.tar.gz serverdata-f57f80f517033f2d245461b547a324100d6428a1.tar.bz2 serverdata-f57f80f517033f2d245461b547a324100d6428a1.tar.xz serverdata-f57f80f517033f2d245461b547a324100d6428a1.zip |
Give small experience reward for fails in quests that need random amount of items.
Diffstat (limited to 'world/map/npc/009-2/alan.txt')
-rw-r--r-- | world/map/npc/009-2/alan.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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.\""; |