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/027-2/golbenez.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'world/map/npc/027-2') diff --git a/world/map/npc/027-2/golbenez.txt b/world/map/npc/027-2/golbenez.txt index f23a6f71..95f1c459 100644 --- a/world/map/npc/027-2/golbenez.txt +++ b/world/map/npc/027-2/golbenez.txt @@ -6,7 +6,7 @@ // state 3: shows hamonds memory if the player brings @UNDEADEAR_AMOUNT undead ears and a chocolate cake // state 4: shows savarics memory if the player brings @UNDEADEYE_AMOUNT undead eyes and an apple cake // state 5: shows all memories again if asked for them. if @lover == 6, player can ask for savarics soul -// state 6: wants jackOsouls, random chance of 1/50 to success +// state 6: wants jackOsouls, random chance of 1/50 to success, small amount of exp for fail // state 7: done 027-2.gat,39,91,0|script|Golbenez|307,{ @@ -37,6 +37,7 @@ set @UNDEADEAR_EXP, 150000; set @UNDEADEYE_AMOUNT, 20; set @UNDEADEYE_EXP, 150000; + set @JACKOSOUL_EXP, 1000; if (@state >= 7) goto L_Done; if (@state == 6) goto L_Soul; @@ -287,6 +288,7 @@ L_Soul_Try: goto L_Soul_Success; mes "[Golbenez]"; mes "\"No, this one isn't as powerful as the mage. Bring me another one of them.\""; + getexp @JACKOSOUL_EXP, 0; goto L_Soul_Try; L_Soul_Success: @@ -368,6 +370,7 @@ L_Close: set @UNDEADEAR_EXP, 0; set @UNDEADEYE_AMOUNT, 0; set @UNDEADEYE_EXP, 0; + set @JACKOSOUL_EXP, 0; set @soul, 0; close; -- cgit v1.2.3-60-g2f50