summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-11-09 17:21:10 -0300
committerJesusaves <cpntb1@ymail.com>2019-11-09 17:21:10 -0300
commita4adabbd2642e223acc64c6839af8ddda1d99015 (patch)
tree3f8b0ecc44cf0345ef4ba5bf32c768af6df386d8 /npc
parentda0d13ab2564d438875048ed8f5465a37bc64cca (diff)
downloadserverdata-a4adabbd2642e223acc64c6839af8ddda1d99015.tar.gz
serverdata-a4adabbd2642e223acc64c6839af8ddda1d99015.tar.bz2
serverdata-a4adabbd2642e223acc64c6839af8ddda1d99015.tar.xz
serverdata-a4adabbd2642e223acc64c6839af8ddda1d99015.zip
Bracco now uses the new formula. Everyone is now under this rule except Frostia
But Frostia is a backup town so...
Diffstat (limited to 'npc')
-rw-r--r--npc/020-5/bracco.txt12
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;