summaryrefslogtreecommitdiff
path: root/world/map/npc/027-2/golbenez.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2011-10-14 14:16:41 +0200
committerJessica Tölke <jtoelke@mail.upb.de>2011-10-14 16:35:39 +0200
commitf57f80f517033f2d245461b547a324100d6428a1 (patch)
tree836a8034870fc5d1d14f63df39127b2891c7832c /world/map/npc/027-2/golbenez.txt
parenta5cc84660484054451ab8c912ec6fc4652eac1a0 (diff)
downloadserverdata-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/027-2/golbenez.txt')
-rw-r--r--world/map/npc/027-2/golbenez.txt5
1 files changed, 4 insertions, 1 deletions
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;