summaryrefslogtreecommitdiff
path: root/npc/012-4/wyara.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-27 15:37:21 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-27 15:37:21 -0300
commit6771b56de8226c6bf5ca1f38f31c2a45822b75b3 (patch)
treed4e367a42bc15c23fe7f2f09efd6801457ee3207 /npc/012-4/wyara.txt
parent52994f358e174770902560225e767e6ce11b5848 (diff)
downloadserverdata-6771b56de8226c6bf5ca1f38f31c2a45822b75b3.tar.gz
serverdata-6771b56de8226c6bf5ca1f38f31c2a45822b75b3.tar.bz2
serverdata-6771b56de8226c6bf5ca1f38f31c2a45822b75b3.tar.xz
serverdata-6771b56de8226c6bf5ca1f38f31c2a45822b75b3.zip
Fixes on Wyara, make more potions depending on reputation
Diffstat (limited to 'npc/012-4/wyara.txt')
-rw-r--r--npc/012-4/wyara.txt27
1 files changed, 14 insertions, 13 deletions
diff --git a/npc/012-4/wyara.txt b/npc/012-4/wyara.txt
index 6d884c7ff..ba8813bd6 100644
--- a/npc/012-4/wyara.txt
+++ b/npc/012-4/wyara.txt
@@ -106,11 +106,12 @@ L_Uncurse:
L_ReturnPot:
.@price=7000-(reputation("Hurns")*20);
.@craft=2001-(reputation("Hurns")*20);
+ .@ammon=5+(reputation("Hurns")/30);
mesn;
mesq l("I understand. Rakinorf told me to stuff you with them if needed.");
next;
mesn;
- mesq l("Be aware I can only bake batches of 5 potions.");
+ mesq l("Be aware I can only bake batches of @@ potions.", .@ammon);
next;
mesn;
mesq l("So, it is @@ GP each one up-front. Or I can brew with your materials:", .@price);
@@ -136,9 +137,9 @@ L_ReturnPot:
input .@c, 0, (Zeny/.@price);
.@payment=.@price*.@c;
if (Zeny >= .@payment) {
- inventoryplace ReturnPotion, .@c*5;
+ inventoryplace ReturnPotion, .@c*.@ammon;
Zeny-=.@payment;
- getitem ReturnPotion, .@c*5;
+ getitem ReturnPotion, .@c*.@ammon;
mesn;
mesq l("There you go!");
} else {
@@ -148,22 +149,22 @@ L_ReturnPot:
case 3:
mesc l("How many?");
input .@c, 0, 100;
- inventoryplace ReturnPotion, .@c*5;
+ inventoryplace ReturnPotion, .@c*.@ammon;
if (
- countitem(MauveHerb) < 100*.@c ||
- countitem(MushroomSpores) < 20*.@c ||
- countitem(Potatoz) < 10*.@c ||
- countitem(Coral) < 10*.@c ||
+ countitem(MauveHerb) < 80*.@c ||
+ countitem(MushroomSpores) < 15*.@c ||
+ countitem(Potatoz) < 7*.@c ||
+ countitem(Coral) < 5*.@c ||
countitem(EverburnPowder) < 1*.@c ||
Zeny < .@craft*.@c
) Exception("You don't have that much material.", RB_ISFATAL|RB_SPEECH);
- delitem MauveHerb, 100*.@c;
- delitem MushroomSpores, 20*.@c;
- delitem Potatoz, 10*.@c;
- delitem Coral, 10*.@c;
+ delitem MauveHerb, 80*.@c;
+ delitem MushroomSpores, 15*.@c;
+ delitem Potatoz, 7*.@c;
+ delitem Coral, 5*.@c;
delitem EverburnPowder, 1*.@c;
Zeny-=.@craft*.@c;
- getitem ReturnPotion, .@c*5;
+ getitem ReturnPotion, .@c*.@ammon;
mesn;
mesq l("There you go!");
break;