diff options
-rw-r--r-- | npc/020-5/bracco.txt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/npc/020-5/bracco.txt b/npc/020-5/bracco.txt index 9a84cbfc9..1c9ed9bd0 100644 --- a/npc/020-5/bracco.txt +++ b/npc/020-5/bracco.txt @@ -20,6 +20,8 @@ .@index=getarg(0); .@price=getarg(1); + .@price=POL_AdjustPrice(.@price); + // Confirmation mesn; mesc l("Really melt down your @@? It'll cost you @@ GP. This action cannot be undone!", getinvindexlink(.@index), .@price), 1; @@ -32,7 +34,7 @@ // Effective: delete item and GP delitemidx .@index, 1; - Zeny-=.@price; + POL_PlayerMoney(.@price); // TODO: Inventoryplace. // Add Items (if inventory is full, your fault and not mine) @@ -59,6 +61,8 @@ .@id=getarg(0); .@price=getarg(1); + .@price=POL_AdjustPrice(.@price); + // Skip Confirmation mesn; mesc l("Really melt down all your @@? It'll cost you @@ GP each. This action cannot be undone!", getitemlink(.@id), .@price), 1; @@ -73,7 +77,7 @@ .@x=@inventorylist_id[.@index]; if (.@x == getarg(0) && Zeny >= .@price) { delitemidx .@index, 1; - Zeny-=.@price; + POL_PlayerMoney(.@price); // Report it was done mesc l("@@ melt down your @@...", .name$, getitemlink(.@x)); @@ -99,6 +103,8 @@ .@prize=getarg(4); .@price=getarg(5); + .@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)); @@ -118,7 +124,7 @@ inventoryplace .@prize, 1; delitem .@base1, .@amon1; delitem .@base2, .@amon2; - Zeny = Zeny - .@price; + POL_PlayerMoney(.@price); getitem .@prize, 1; .@xp=getiteminfo(.@base1, ITEMINFO_SELLPRICE)*.@amon1+getiteminfo(.@base2, ITEMINFO_SELLPRICE)*.@amon2; .@xp=.@xp*2/3; |