summaryrefslogtreecommitdiff
path: root/npc/xmas/2010/golbanez.txt
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2010-12-16 01:39:13 +0100
committerStefan Beller <stefanbeller@googlemail.com>2010-12-16 01:39:13 +0100
commit3e8ffc076157ebc3cb5e325fba8f387171abc4b8 (patch)
tree596b9972b5dab5c8b273167e879527a54d4581c5 /npc/xmas/2010/golbanez.txt
parent48f60eedfa2087c58ca27b90599fc8cd7e102f84 (diff)
downloadserverdata-3e8ffc076157ebc3cb5e325fba8f387171abc4b8.tar.gz
serverdata-3e8ffc076157ebc3cb5e325fba8f387171abc4b8.tar.bz2
serverdata-3e8ffc076157ebc3cb5e325fba8f387171abc4b8.tar.xz
serverdata-3e8ffc076157ebc3cb5e325fba8f387171abc4b8.zip
golbanez fix
Diffstat (limited to 'npc/xmas/2010/golbanez.txt')
-rwxr-xr-xnpc/xmas/2010/golbanez.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/xmas/2010/golbanez.txt b/npc/xmas/2010/golbanez.txt
index 3c14a2e1..665f1b2e 100755
--- a/npc/xmas/2010/golbanez.txt
+++ b/npc/xmas/2010/golbanez.txt
@@ -57,6 +57,7 @@
if (countitem(@menuitem[@menu]) < @count ) goto Glb_noitems;
delitem @menuitem[@menu], @count;
set @Give, (@count * @menuvalue[@menu]);
+ mes ""+@Give+"";
set @Gave_Presents, 1;
goto Glb_checkGlAn;
@@ -69,9 +70,10 @@ Glb_money:
if (zeny < @Give) goto Glb_Inn_NotEnoughZeny;
Glb_checkGlAn:
-
+ // if a player gave boxes, at least 20 yellows are needed, or lots of others.
+ if(@Gave_Presents == 1 && @Give<2000000 )goto Golbenez_pay;
// if the @Give amount is below 30% of the players money, just let him pay
- if( @Give<100000 || ( 100 * @Give / zeny )<30 ) goto Golbenez_pay;
+ if( @Give<100000 || ( 100 * @Give / (zeny+1) )<30 ) goto Golbenez_pay;
set @glob_an$ , "Golbenez: " + strcharinfo(0) + " accounted to free santa";