From 3e8ffc076157ebc3cb5e325fba8f387171abc4b8 Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Thu, 16 Dec 2010 01:39:13 +0100 Subject: golbanez fix --- npc/xmas/2010/golbanez.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'npc/xmas') 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"; -- cgit v1.2.3-70-g09d2