http://darkoth.kyndig.com/docs.html
Has what you want and a lot more. |\ _,,,---,,_ /,`.-'`' -. ;-;;,_ |,4- ) )-,_..;\ ( `'-' '---''(_/--' `-'\_) BluSky is often lurking at Afterlife MUD: [EMAIL PROTECTED] * http://www.afterlife.mudservices.com ------------------> telnet://afterlife.mudservices.com:5000 ROM FAQ ----------> http://www.hypercube.org/tess/rom/ ROMList Archive --> http://the-infinite.org/lists/romlist/ ----- Original Message ----- From: "Jesse Boulianne" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, 20 October 2003 21:36 Subject: Adding Wear Locations > Hrm... > > I've looked all over the place for a how-to for adding new ear locations, > but have come up empty-handed everywhere. Even at Russ' site, where the > "official FAQ" resides, there's no answer. > > I think I've done everything that I had to do for adding in the new > location, but even after a clean compile I end up with the location not > existing. > > This is what I've done so far: > > In merc.h in the section used by #OBJECTS. > #define ITEM_WEAR_NEW (R) > > in the section used by #RESETS: > #define WEAR_NEW 19 > #define MAX_WEAR 20 > > > In act_info.c in const where_name: > "<floating nearby> ", > "<new location> ", > }; > > In handler.c in *wear_bit_name: > > if (wear_flags & ITEM_WEAR_NEW ) strcat(buf, " new"); > > In apply_ac: > > case WEAR_NEW: return obj->value[type]; > > IN olc_act.c in struct wear_type wear_table[] > > { WEAR_NEW, ITEM_WEAR_NEW }, > > IN tables.c in struct flag_type wear_flags[]: > > { "new", ITEM_WEAR_NEW, TRUE }, > > in flag_type wear_loc_strings[]: > > { "as a new spot", WEAR_NEW, TRUE }, > { NULL, 0, 0 } > }; > > in struct flag_type wear_loc_flags[]: > > { "new", WEAR_NEW, TRUE }, > { NULL, 0, 0 } > }; > > > > I've made sure that in every table, the new wear location has been inserted > in accordance to it's position in the defines of merc.h. The new position > comes after floating, and so it was placed into each struct, after floating. > > I must have missed something here. Can someone help me out please? I've > tried everything I can think of to get it to work. Heck, I even thought I'd > forgotten to increase MAX_WEAR (which I hadn't). > > Thanks in advance. > > Jesse

