summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";