summaryrefslogtreecommitdiff
path: root/npc/017-4
diff options
context:
space:
mode:
Diffstat (limited to 'npc/017-4')
-rw-r--r--npc/017-4/pihro.txt6
-rw-r--r--npc/017-4/pyndragon.txt4
2 files changed, 7 insertions, 3 deletions
diff --git a/npc/017-4/pihro.txt b/npc/017-4/pihro.txt
index b64ceb625..91103c61b 100644
--- a/npc/017-4/pihro.txt
+++ b/npc/017-4/pihro.txt
@@ -25,6 +25,8 @@
.@base3=getarg(5,0);
.@amon3=getarg(6,0);
+ .@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));
@@ -52,8 +54,8 @@
delitem .@base2, .@amon2;
if (.@base3 > 0)
delitem .@base3, .@amon3;
- Zeny = Zeny - .@price;
- getitem .@prize, rand(100,220);
+ POL_PlayerMoney(.@price);
+ getitem .@prize, rand2(180,220);
mes "";
mesn;
diff --git a/npc/017-4/pyndragon.txt b/npc/017-4/pyndragon.txt
index 2a896cf6c..efcaaf93e 100644
--- a/npc/017-4/pyndragon.txt
+++ b/npc/017-4/pyndragon.txt
@@ -16,6 +16,8 @@
.@prize=getarg(6);
.@price=getarg(7);
+ .@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));
@@ -39,7 +41,7 @@
delitem .@base1, .@amon1;
delitem .@base2, .@amon2;
delitem .@base3, .@amon3;
- Zeny = Zeny - .@price;
+ POL_PlayerMoney(.@price);
//getitem .@prize, 1;
CsysNpcCraft(.@prize, IOPT_CRITDMG, 30, IOPT_DOUBLEATTACK, rand2(0, 15));