Adding new wearlocs similar to NECK and WRIST

Posted by Arathelle on Sun 22 Jan 2006 09:10 PM — 4 posts, 19,615 views.

#0
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.
USA #1
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.
USA #2
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
#3
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...