Alex Mann wrote:
>
> Hi
>
> This is my problem: the shoplfit stuff seems to work fine, but rather then
> getting jsut one of the items you specify, you egt everysingle one until the
> point where you can't carry any more, where it stops. it seems I have
> removed something which controls the number of the itesm you are buying. I
> have not been able to work out from buy, which bit it is!
>
> Here is the code for my shoplift, can someone take a look and see what it's
> missing:
>
<snip>
You left out this part...
if ((buynum = transaction_amt(arg)) < 0) {
sprintf(buf, "%s A negative amount? Try selling me something.",
GET_NAME(ch));
do_tell(keeper, buf, cmd_tell, 0);
return;
}
Regards, Peter
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/11/01 PDT