summaryrefslogtreecommitdiff
path: root/npc/functions/refine.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/refine.txt')
-rw-r--r--npc/functions/refine.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt
index 55d39c497..1498e130c 100644
--- a/npc/functions/refine.txt
+++ b/npc/functions/refine.txt
@@ -69,6 +69,7 @@ function script refineMaster {
.@rlv=getequiprefinerycnt(.@it);
.@price=(.@rlv+1)*1000;
+ .@price=POL_AdjustPrice(.@price);
.@amount=(.@rlv/2)+1;
// required item
switch (.@rlv) {
@@ -137,7 +138,7 @@ function script refineMaster {
mesq l("It's time to show this shiny @@ who is the boss! HAHAHAHAHAHAHAH!", getitemlink(.@item));
next;
// If you cheat somewhere along the way, the script will explode
- Zeny=Zeny-.@price;
+ POL_PlayerMoney(.@price);
delitem .@rg, .@amount;
// Cheater should be locked for eternity.
if (getequiprefinerycnt(.@it) != .@rlv || getequipid(.@it) != .@item || getequipisequiped(.@it) == 0) {