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 ➜ Creating a new command

Creating a new command

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


Posted by Edgeofforever   (25 posts)  Bio
Date Fri 15 Oct 2004 04:14 AM (UTC)
Message
I've written a new command to be used, added it to the Commands.dat file and placed the code in act_info.c. However, when I attempt to use the command, even though it shows up in my command list, all I get is "huh?" what is wrong?

Any help would be appriciated.
Top

Posted by Nicklfire   (17 posts)  Bio
Date Reply #1 on Fri 15 Oct 2004 07:38 AM (UTC)
Message
Hmm... you added the 2 lines in tables.c and the declaration in mud.h for the command right? Also i've found that if you cedit the command in "cedit command create" it's alot more reliable incase you make a typo or something while editing commands.dat
Top

Posted by Edgeofforever   (25 posts)  Bio
Date Reply #2 on Fri 15 Oct 2004 10:46 AM (UTC)
Message
I rechecked and it was a typo. I'll used the cedit command from now on to initialized the commands. Thanks alot for the help!
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.


12,762 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.