OSET new types.

Posted by Mozzy on Thu 23 Oct 2003 01:08 AM — 3 posts, 14,141 views.

#0
Hmm, sorry again to post with a prob. so soon, I thought I had this under control - it would appear not.

I am putting in some code that needs a new object type. It is, ITEM_ATTATCH. As far as I know, all you do is go to MUD.h, then change the ITEM_EMPTY1 to ITEM_ATTATCH. Then, you add it in db.c under the other ITEM_'s. Well, this is what all the other ITEM_'s have. Yet when I compile, and I type oset <item> type attatch, it says, 'type not found'. How do I get around this?
Also - for some reason, the attatch code that I did up doesnt seem to be working. It compiles fine, and I added it in Tables.c and MUD.h, and put the command in commands.dat, though when I make and compile, it doesn't seem to work. Command doesnt seem to be there Whats wrong?

- Mozz
USA #1
You also need to edit build.c and change the text value "empty1" to "attatch" or whatever it is your thing is. The code uses that array of strings to look up the value when you type it.

What exactly is "attatch" and what is the code supposed to do, and what doesn't work? Can you paste the relevant entries in commands.dat, tables.c and any output the MUD gives you?
#2
Okay, I did the adjustment to build.c, and its working nice now.

And dont worry, I found the problem. (Stupid error, I didnt put the name of command in commands.dat - lol)

Thanks for help. ^_^

- Mozz