diff options
Diffstat (limited to 'npc/017-5')
-rw-r--r-- | npc/017-5/nahrec.txt | 4 | ||||
-rw-r--r-- | npc/017-5/silversmith.txt | 4 |
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; |