summaryrefslogtreecommitdiff
path: root/npc/017-5
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-11-09 17:19:40 -0300
committerJesusaves <cpntb1@ymail.com>2019-11-09 17:19:40 -0300
commitda0d13ab2564d438875048ed8f5465a37bc64cca (patch)
treeaeaeb6951930d70e7f7d121effe14151a297fee0 /npc/017-5
parent3f8a4f8270c388dd27ed0df257a12463ec5f2061 (diff)
downloadserverdata-da0d13ab2564d438875048ed8f5465a37bc64cca.tar.gz
serverdata-da0d13ab2564d438875048ed8f5465a37bc64cca.tar.bz2
serverdata-da0d13ab2564d438875048ed8f5465a37bc64cca.tar.xz
serverdata-da0d13ab2564d438875048ed8f5465a37bc64cca.zip
Status reset (all NPCs) and almost every crafter in LoF
Diffstat (limited to 'npc/017-5')
-rw-r--r--npc/017-5/nahrec.txt4
-rw-r--r--npc/017-5/silversmith.txt4
2 files changed, 6 insertions, 2 deletions
diff --git a/npc/017-5/nahrec.txt b/npc/017-5/nahrec.txt
index ddab8bd5d..84cb51334 100644
--- a/npc/017-5/nahrec.txt
+++ b/npc/017-5/nahrec.txt
@@ -128,6 +128,8 @@ function blacksmith_create {
.@prize=getarg(4);
.@price=getarg(5);
+ .@price=POL_AdjustPrice(.@price);
+
mesn;
mesq l("Do you want to craft @@? For that I will need @@ @@, @@ @@ and @@ gp.",
getitemlink(.@prize), .@amon1, getitemlink(.@base1), .@amon2, getitemlink(.@base2), .@price);
@@ -145,7 +147,7 @@ function blacksmith_create {
inventoryplace .@prize, 1;
delitem .@base1, .@amon1;
delitem .@base2, .@amon2;
- Zeny = Zeny - .@price;
+ POL_PlayerMoney(.@price);
getitem .@prize, 1;
mes "";
diff --git a/npc/017-5/silversmith.txt b/npc/017-5/silversmith.txt
index c4b12e6ac..6255ee666 100644
--- a/npc/017-5/silversmith.txt
+++ b/npc/017-5/silversmith.txt
@@ -18,6 +18,8 @@
.@prize=getarg(4);
.@price=getarg(5);
+ .@price=POL_AdjustPrice(.@price);
+
mesn;
mesq l("Do you want to craft @@? For that I will need:", getitemlink(.@prize));
mesc l("@@/@@ @@", countitem(.@base1), .@amon1, getitemlink(.@base1));
@@ -37,7 +39,7 @@
inventoryplace .@prize, 1;
delitem .@base1, .@amon1;
delitem .@base2, .@amon2;
- Zeny = Zeny - .@price;
+ POL_PlayerMoney(.@price);
getitem .@prize, 1;
.@xp=getiteminfo(.@base1, ITEMINFO_SELLPRICE)*.@amon1+getiteminfo(.@base2, ITEMINFO_SELLPRICE)*.@amon2;
.@xp=.@xp*2/3;