Don't typically update custom NPCs, but this was a special request and should fix an exploit in the card remover.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12587 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
L0ne_W0lf 2008-04-14 06:12:36 +00:00
parent 28b95f451b
commit 0cf4f6a0fb
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,7 @@
Date Added
======
2008/04/14
* Rev. 12587 Fixed design flaw in card remover script. [L0ne_W0lf]
2008/04/10
* Rev. 12567 Fixed setcell range of first barricade in Juno Castle 2. [L0ne_W0lf]
2008/04/07

View File

@ -78,6 +78,18 @@ SLOT10:
CARDNUMCHECK:
if(getequipcardcnt(@part) == 0) goto DENYCARDCOUNT;
set @cardcount,getequipcardcnt(@part);
// Ensure there is room for the items.
if (!checkweight(1202,(@cardcount+1))) {
mes "^3355FFJust a minute!";
mes "I can't offer any of my";
mes "services to you because";
mes "you're carrying too much";
mes "stuff. Put your extra items in";
mes "Kafra Storage and come again~";
close;
}
if(@cardcount > 1) goto CARDNUMMULTIMSG;
mes "[Wise Old Woman]";
mes "This item has " + @cardcount + " card compounded on it. To perform my magic, I will need 225000 zeny, a ^0000FFStar Crumb^000000, and a ^0000FFYellow Gemstone^000000.";