Re: [CODE] Patch Update to Shop.c for bp21

From: Kras Kresh (kras_kresh@hotmail.com)
Date: 09/20/02


>From: Justin Adler <spam@WORLD-DOMINATION.COM.AU>
>Reply-To: Circle Discussion List <CIRCLE@post.queensu.ca>
>To: CIRCLE@post.queensu.ca
>Subject: [CIRCLE] [CODE] Patch Update to Shop.c for bp21
>Date: Sat, 27 Jul 2002 05:36:50 -0400
>
>While trying to update my shop.c from bp11 to 21 (eeks!), i noticed both
>versions (and therefore all versions?) do not display the item being SOLD
>properly.
>
>in shop.c, line 616 (bp21), i've added this line in
>
><< MAILER CODE >>
>...
>if (!IS_GOD(ch))
>     GET_GOLD(keeper) += goldamt;
>
>+ strlcpy (name, obj->short_description, sizeof(name));
>
>   strlcpy(tempstr, times_message(ch->carrying, 0, bought), sizeof
>(tempstr));
>
>   snprintf(tempbuf, sizeof(tempbuf), "$n buys %s.", tempstr);
>   act(tempbuf, FALSE, ch, obj, 0, TO_ROOM);
>...
>
>if u don't add that line, then the text displayed is the keyword the
>SELLER has entered.
>
>eg.
>The Keeper now has

Oh did you know that the person may buy more than 1 item but both may have
the same alias? This will display only one of the 2 different items. I've
done a sort of hack for the fix, but do what you will.

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT