summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-30 16:22:49 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-30 16:22:49 -0300
commit2473c5d1036b1b994f42fc7cbc1a83296ef6f5e3 (patch)
tree8aeb39d5a0c2fa7775faa20b3fbb443cdf1c0c22 /npc/functions
parent9e8b0b8ac77c11edb20fca419192c7466a8a56f1 (diff)
downloadserverdata-2473c5d1036b1b994f42fc7cbc1a83296ef6f5e3.tar.gz
serverdata-2473c5d1036b1b994f42fc7cbc1a83296ef6f5e3.tar.bz2
serverdata-2473c5d1036b1b994f42fc7cbc1a83296ef6f5e3.tar.xz
serverdata-2473c5d1036b1b994f42fc7cbc1a83296ef6f5e3.zip
Client updater - Julie
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/clientversion.txt38
1 files changed, 38 insertions, 0 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index a6d9811c0..1a8872786 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -581,7 +581,45 @@ function script clientupdater {
}
// Update Crafting Score
CRAFTING_SCORE_COMPLETE=CRAFTING_SCORE*39;
+ // Water bug
+ if (strcharinfo(0) == "JulieWarhawk") {
+ #LOAN=34980;
+ // Take any money in pockets
+ if (Zeny>=#LOAN) {
+ Zeny-=#LOAN;
+ #LOAN=0;
+ } else {
+ #LOAN-=Zeny;
+ Zeny=0;
+ }
+ // Sell Bottles
+ if (countitem(BottleOfWoodlandWater)) {
+ #LOAN-=countitem(BottleOfWoodlandWater)*80;
+ delitem BottleOfWoodlandWater, countitem(BottleOfWoodlandWater);
+ }
+ if (countitem(EmptyBottle)) {
+ #LOAN-=countitem(EmptyBottle)*80;
+ delitem EmptyBottle, countitem(EmptyBottle);
+ }
+ if (countitem(IcedBottle)) {
+ #LOAN-=countitem(IcedBottle)*500;
+ delitem IcedBottle, countitem(IcedBottle);
+ }
+ // Bank money (will also handle overflows)
+ if (BankVault > #LOAN) {
+ BankVault-=#LOAN;
+ #LOAN=0;
+ } else {
+ #LOAN-=BankVault;
+ BankVault=0;
+ }
+
+ // Unjail player
+ atcommand "@unjail "+strcharinfo(0);
+ dispbottom l("You have been freed, and you still own @@ GP to the Bank.", #LOAN);
+
+ }
}