Originally posted by [b]Jasseh[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2020
CODE
S_SellManual:
if (Zeny < getarg(1)) {
mes "[Gever Al Sharp]";
mes "You don't";
mes "have enough zeny.";
mes "Check how much zeny";
mes "you have first.";
close;
}
mes "[Gever Al Sharp]";
mes ""+getitemname(getarg(0))+"?";
mes "That'll be "+getarg(1)+" zeny.";
next;
switch(select("Purchase.:Quit.")) {
set zeny,zeny-getarg(1);
getitem getarg(0),1;
mes "[Gever Al Sharp]";
mes "Thank you for";
mes "your patronage.";
close;
}
mes "[Gever Al Sharp]";
mes "Come again";
mes "next time.";
close;
}
Should be
CODE
S_SellManual:
if (Zeny < getarg(1)) {
mes "[Gever Al Sharp]";
mes "You don't";
mes "have enough zeny.";
mes "Check how much zeny";
mes "you have first.";
close;
}
mes "[Gever Al Sharp]";
mes ""+getitemname(getarg(0))+"?";
mes "That'll be "+getarg(1)+" zeny.";
next;
switch(select("Purchase.:Quit.")) {
case 1:
set zeny,zeny-getarg(1);
getitem getarg(0),1;
mes "[Gever Al Sharp]";
mes "Thank you for";
mes "your patronage.";
close;
case 2:
mes "[Gever Al Sharp]";
mes "Come again";
mes "next time.";
close;
}
}
It currently goes through with buying the book even if you choose the option to quit.
EDIT: found in npc/merchants/alchemist.txt
This post has been edited by Jasseh: Aug 8 2008, 04:33 PM