summaryrefslogtreecommitdiff
path: root/npc/craft
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-11-09 17:12:51 -0300
committerJesusaves <cpntb1@ymail.com>2019-11-09 17:12:51 -0300
commitf209136a0fceb83c8265e7394a43c4ddd6681442 (patch)
tree0998574730442b696703b39facadbce38aaaeaf0 /npc/craft
parent37bb67f41943c0c4f87005b8d3e9f9ca677f4f2a (diff)
downloadserverdata-f209136a0fceb83c8265e7394a43c4ddd6681442.tar.gz
serverdata-f209136a0fceb83c8265e7394a43c4ddd6681442.tar.bz2
serverdata-f209136a0fceb83c8265e7394a43c4ddd6681442.tar.xz
serverdata-f209136a0fceb83c8265e7394a43c4ddd6681442.zip
Nicholas will now follow the new rule, this also affects tweaks
Diffstat (limited to 'npc/craft')
-rw-r--r--npc/craft/tweak.txt5
1 files changed, 4 insertions, 1 deletions
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