Item Connection snippet and Coloring channels

Posted by Camulos on Sat 03 Dec 2005 08:37 AM — 4 posts, 15,347 views.

Canada #0
Ahoy...

I'm using an essentially stock SMAUG mud, and have had the item connection snippet up and running for quite a long time now. Unfortunately we've only just discovered a rather strange bug wherein the use of 'connect item1 item2' will remove ALL instances of both item1 and item2 from your inventory, instead of just one of each.

I'm not particularly proficient as a coder, I basically just install snippets and tweak minor things.

My second problem is that I can't for the life of me figure out how to allow the use of ANSI color in channels, object descriptions, etc...

I've tried changing all the send_to_char's into send_to_char_color, but it hasn't made any noticable impact.

Any assistance with either issue would be much appreciated.
USA #1
You just need to add the line:
separate( obj );

Before the item extracts in the code. You'll need to do that code for both the connect items.

If you follow the doc that explains how to do that, it'll work fine. I've done it in the past.

Although, why not use FUSS?
Canada #2
That worked, and we've switched to FUSS and installed the snippet again, heh.

Thanks for the help.
USA #3
You probably realized this already, but I meant separate_obj.