summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-11-09 17:19:40 -0300
committerJesusaves <cpntb1@ymail.com>2019-11-09 17:19:40 -0300
commitda0d13ab2564d438875048ed8f5465a37bc64cca (patch)
treeaeaeb6951930d70e7f7d121effe14151a297fee0 /npc/functions
parent3f8a4f8270c388dd27ed0df257a12463ec5f2061 (diff)
downloadserverdata-da0d13ab2564d438875048ed8f5465a37bc64cca.tar.gz
serverdata-da0d13ab2564d438875048ed8f5465a37bc64cca.tar.bz2
serverdata-da0d13ab2564d438875048ed8f5465a37bc64cca.tar.xz
serverdata-da0d13ab2564d438875048ed8f5465a37bc64cca.zip
Status reset (all NPCs) and almost every crafter in LoF
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/refine.txt3
-rw-r--r--npc/functions/resetstatus.txt4
2 files changed, 5 insertions, 2 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) {
diff --git a/npc/functions/resetstatus.txt b/npc/functions/resetstatus.txt
index 6075749c8..343774dca 100644
--- a/npc/functions/resetstatus.txt
+++ b/npc/functions/resetstatus.txt
@@ -51,6 +51,8 @@ function script ConfirmStatusReset {
if (getarg(0,-1) >= 0)
.@plush_count=getarg(0,-1);
+ .@plush_count=POL_AdjustPrice(.@plush_count);
+
mesc l("WARNING: Permanent boosts will return to their fruit form."), 1;
switch (select(lg("Yes, I am sure."),
@@ -85,7 +87,7 @@ function script ConfirmStatusReset {
l("It seems that you have no status points to reset!"),
l("Come back when you will really need me.");
} else {
- Zeny-=.@plush_count;
+ POL_PlayerMoney(.@plush_count);
speech S_LAST_NEXT,
l("Let's see... @@ of your status points have just been reset!", StatusPoint - .@wasSP),
l("Spend it wisely this time."),