From 2473c5d1036b1b994f42fc7cbc1a83296ef6f5e3 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 30 Aug 2019 16:22:49 -0300 Subject: Client updater - Julie --- npc/functions/clientversion.txt | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'npc/functions') 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); + + } } -- cgit v1.2.3-70-g09d2