diff options
-rw-r--r-- | npc/012-5/nicholas.txt | 5 | ||||
-rw-r--r-- | npc/craft/tweak.txt | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/npc/012-5/nicholas.txt b/npc/012-5/nicholas.txt index 5fce87e66..aa11bc919 100644 --- a/npc/012-5/nicholas.txt +++ b/npc/012-5/nicholas.txt @@ -39,6 +39,9 @@ .@prize=getarg(4); .@price=getarg(5); + // Adjust price + .@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)); @@ -58,7 +61,7 @@ inventoryplace .@prize, 1; delitem .@base1, .@amon1; delitem .@base2, .@amon2; - Zeny = Zeny - .@price; + POL_PlayerMoney(.@price); // craft the item with +30% crit dmg (weapons) or +1 random stat (etc) if (array_find(.WeaponCraft, .@prize) >= 0) diff --git a/npc/craft/tweak.txt b/npc/craft/tweak.txt index fe9d661da..237fabbc1 100644 --- a/npc/craft/tweak.txt +++ b/npc/craft/tweak.txt @@ -30,6 +30,9 @@ function script SmithTweakReset { function script SmithTweakSystem { .@price=getarg(0, 600); + // Adjust price + .@price=POL_AdjustPrice(.@price); + // How many times more can you tweak? // You get 1 action, capped to 6 .@left=gettimeparam(GETTIME_HOUR)-SMITH_TWEAKS; @@ -69,7 +72,7 @@ function script SmithTweakSystem { } // Take the money and AP away - Zeny-=.@price; + POL_PlayerMoney(.@price); SMITH_TWEAKS+=1; // Check if you fail |