User Name:


Forgot your password?
Vote for Us!
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Users Online

Members: 0
Guests: 20
Newest Member
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Building » objects in area file
Forum Rules | Mark all | Recent Posts

objects in area file
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Nov 17, 2004, 6:48 pm
Go to the top of the page
Go to the bottom of the page


JoinedNov 17, 2004

Let me know if I don't make sense here. And this may be a topic for a different forum. Not sure.

On a mud I used to work on, we had item templates defined globally in external files. So, there was a longsword.item file, shortsword.item file and so on. If a player wanted a stock longsword, they simply requested it "load longsword" and so forth.

Currently, if I want a longsword in my area I guess I have to define it in the the area file and give it a local vnum.

However, do you think this setup might work:

1. Create an area that contains no rooms, just a list of objects to serve as global templates. Sort of a template.are.

2. Reference that from another area, such as myarea.are in the resets? So, the vnum for longsword in template.are may be 1001 and then I'd simply reference it in myarea.are resets list?

I looked at the area loading and OLC code (specifically get_obj_index) and it appears this would work. Just wondering if anyone had tried it before?

- Gwareth
Post is unread #2 Nov 17, 2004, 7:56 pm
Go to the top of the page
Go to the bottom of the page

Black Hand
JoinedJan 1, 2002

I'm sure someone must have done something like this somewhere. It's very possible to do this, and I beleive the Smaug 1.4a package originally handled deity items in a similar manner. In AFKMud, the void.are file would be best suited for this. A range of about 1000 vnums set aside for things like this. It contains all of the items and mobs required by the stock spells and skills, as well as the initial recall romms and the like. There is more than enough room in this file to add generic item profiles. The original limbo.are file performed this same function but was only 100 vnums and didn't seem like enough.
Pages:<< prev 1 next >>