Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ OSET new types.

OSET new types.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Mozzy   (19 posts)  Bio
Date Thu 23 Oct 2003 01:08 AM (UTC)
Message
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Thu 23 Oct 2003 01:15 AM (UTC)
Message
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?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Mozzy   (19 posts)  Bio
Date Reply #2 on Thu 23 Oct 2003 03:20 AM (UTC)
Message
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
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


13,427 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.