summaryrefslogtreecommitdiff
path: root/npc/functions/clientversion.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/clientversion.txt')
-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);
+
+ }
}