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.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt
index dee5c36e0..220ee6de3 100644
--- a/npc/functions/refine.txt
+++ b/npc/functions/refine.txt
@@ -62,11 +62,11 @@ function script refineMaster {
// Savior items have different rules
.@savior = false;
- if (compare("savior", strtolower(getitemname(getarg(0)))))
+ if (compare("savior", strtolower(getitemname(.@item))))
.@savior = true;
// Legendary Weapons, this formula is hardcoded in C
- if (is_between(3600, 3610, getarg(0)))
+ if (is_between(3600, 3610, .@item))
.@savior = true;
// Max refining level: 10
@@ -78,6 +78,7 @@ function script refineMaster {
.@rlv=getequiprefinerycnt(.@it);
.@price=(.@rlv+1)*1000;
+ .@price-=min(.@price, getiteminfo(.@item, ITEMINFO_ELV) * 10);
.@price=POL_AdjustPrice(.@price);
.@amount=(.@rlv/2)+1;
// required item