Re: Shops are not Loading

From: Sam Moggach (micken69@hotmail.com)
Date: 01/29/02


>Here's my shop code
>
>/*
>      sprintascii(buf1, S_BITVECTOR(shop));
>      sprintascii(buf2, S_NOTRADE(shop));
>*/
>      /*
>       * Save messages'n'stuff.
>       * Added some small'n'silly defaults as sanity checks.
>       */
>      fprintf(shop_file,
>              "%s~\n%s~\n%s~\n%s~\n%s~\n%s~\n%s~\n"
>              "%d\n%s\n%d\n%s\n",
>              S_NOITEM1(shop) ? S_NOITEM1(shop) : "%s Ke?!",
>              S_NOITEM2(shop) ? S_NOITEM2(shop) : "%s Ke?!",
>              S_NOBUY(shop) ? S_NOBUY(shop) : "%s Ke?!",
>              S_NOCASH1(shop) ? S_NOCASH1(shop) : "%s Ke?!",
>              S_NOCASH2(shop) ? S_NOCASH2(shop) : "%s Ke?!",
>              S_BUY(shop) ? S_BUY(shop) : "%s Ke?! %d?",
>              S_SELL(shop) ? S_SELL(shop) : "%s Ke?! %d?",
>              S_BROKE_TEMPER(shop),
>              S_BITVECTOR(shop),
>              mob_index[S_KEEPER(shop)].vnum,
>              S_NOTRADE(shop)
>              );
>

Then, my friend, the problem is not in your shop code.
It is in the code where the mud loads your shop. most olc editors have their
own function, like load_rooms, load_mobs and that sort of thing. you're
going to have to look for one for shops and make it load things from the
file in the proper order.


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com

--
   +---------------------------------------------------------------+
   | 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