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 ➜ Adding new wearlocs similar to NECK and WRIST

Adding new wearlocs similar to NECK and WRIST

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


Posted by Arathelle   (13 posts)  Bio
Date Sun 22 Jan 2006 09:10 PM (UTC)
Message
Hello. I have attempted to add a new wearloc that functions similar to the neck and wrist.

The code compiles fine, and the fReplace part of the code (the part that replaces a worn object with something else) works fine. But the problem is when I 'look' at myself when wearing objects with this wearloc the mud crashes.

I've added the WhereName to the race file, and the const where_name at the beginning of act_info.c. However.
When these items are worn they do not show up when the 'equipment' command is used.

Also, when I 'look' at myself the mud will not crash if I am wearing only ONE of the items that go into this wearloc. But when I wear another (the wearlock is to work similar to neck/wrist in which you can wear more than one) and look at myself the mud crashes.

If anyone can tell me what code I need to paste in here so they can look at it that would be nice. Thank you.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Sun 22 Jan 2006 09:31 PM (UTC)
Message
Take a look at the enhanced archery code snippet:
http://www.afkmud.com/downloads.php?cat=multi

I believe it adds new wearlocs, so you can follow the examples.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Dralnu   USA  (277 posts)  Bio
Date Reply #2 on Mon 23 Jan 2006 02:03 AM (UTC)
Message
grep WEAR_HEAD and all that kind of crap and copy what is in another wearloc (preferably head or something simple).

Its a simple process, just remeber to put the entries into build.c so you can use the new locations
Top

Posted by Arathelle   (13 posts)  Bio
Date Reply #3 on Mon 23 Jan 2006 08:15 PM (UTC)
Message
Thank you for the responses but I find the problem on my own!

It turns out all was corrected by a simple make clean and recompile...
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.


18,337 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.