A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Nemesis bulletin boards: LPC bulletin board, note 10

Howto add default items to a standard shop? (Berny, Dec 23 2001, 30)
I have the need to add some default items to my shop, which is based
on /obj/shop.c, so that 
a) from the first reset some of my own items can be bought in the shop
b) optionally each reset cycle one or more of those items can be re-stocked

Is there a way? It looks for me to access the "storage" object from
my shop-code, but I didn't found a solution.

Thanks for any help!

Berny

Here you can discuss LPC issues like how to code this and that,
who has coded something like this or how that works etc.
As there are no real "secrets" on this board it is now
available via https://nemesis.de/lpc/board/10/ , too.
The board contains 23 notes:
  1. forcing and removing files (Shadowfax, Jul 29 1993, 29)
  2. Re: Has someone coded chairs already? (Ping, Oct 23 1993, 30)
  3. How does under_water work? (Jhudsui, Oct 28 1993, 28)
  4. Request for "query_action()" in living.c (Kilroy, Oct 29 1993, 25)
  5. /obj/chest.c (Quicksilver, Nov 11 1993, 24)
  6. Amulet of Blinding ? (Mambres, Nov 11 1993, 22)
  7. Re: Amulet of Blinding ? (Poe, Nov 20 1993, 48)
  8. P_DESTRUCT_WHEN_SOLD (Mambres, Dec 4 1993, 22)
  9. set_items(({ "sky"... (Mambres, Jan 12 1994, 24)
  10. Howto add default items to a standard shop? (Berny, Dec 23 2001, 30)
  11. Use of this_player()->more(...) (Teddy, May 11 2002, 29)
  12. Re: Howto add default items to a standard shop? (Teddy, May 13 2002, 29)
  13. Re: Use of this_player()->more(...) (Kiri, May 22 2016, 62)
  14. Re: missing string efuns... (Kiri, Aug 15 2016, 62)
  15. Re: Request for "query_action()" in living.c (Kiri, Aug 15 2016, 62)
  16. Re: How does under_water work? (Kiri, Aug 15 2016, 62)
  17. Re: /obj/chest.c (Kiri, Aug 15 2016, 62)
  18. Re: Has someone coded chairs already? (Kiri, Aug 15 2016, 62)
  19. Re: P_DESTRUCT_WHEN_SOLD (Kiri, Aug 16 2016, 62)
  20. Re: forcing and removing files (Kiri, Aug 17 2016, 62)
  21. New support for feelings with monsters (Teddy, Jan 28 2017, 50)
  22. Re: set_items(({ "sky"... (Kiri, Nov 17 2017, 62)
  23. P_AREA property (Teddy, Nov 26 2017, 50)

This page was generated in LPC

Imprint / Impressum