13 Aug, 2012, tobiasbrognan wrote in the 1st comment:
Votes: 0
Trying to make it so a player see's all eq slots , Equipped and non equipped.

IE:

<worn on chest> Nothing
<worn on legs> some trippy mchammer pants
<worn on feet> some smelly socks
<wielded> Nothing

Any ideas?
13 Aug, 2012, Mudder wrote in the 2nd comment:
Votes: 0
I'm not sure where it is anymore, I would start with the do_equipment (or something) command and follow the logic. Figure out how it shows this and alter it so it shows the empty spots as well. Sorry, I wish I could be more specific but I'm at work and don't want to browse the code.
13 Aug, 2012, tobiasbrognan wrote in the 3rd comment:
Votes: 0
Got it thanks
15 Aug, 2012, JohnnyStarr wrote in the 4th comment:
Votes: 0
I made a quick change in the do_equipment() routine myself to do exactly what you are
wanting. The problem looks like this in Merc 2.2
if ( ( obj = get_eq_char( ch, iWear ) ) == NULL )            
continue;


The continue keyword is skipping that slot entirely. You can simply remove
the conditional statement all together if you want to show empty slots.

Hope this helps.
16 Aug, 2012, Davion wrote in the 5th comment:
Votes: 0
JohnnyStarr said:
The continue keyword is skipping that slot entirely. You can simply remove
the conditional statement all together if you want to show empty slots.

Hope this helps.


That conditional check ensures that eq is not null in the following statements. Removing that could be harmful. You may want to simple print "Nothing" or a blank line (ie. "\r\n") at the very least within that conditional check AND then still continue.
0.0/5