Right. In the for loop in act() there should be a check in there like
if(ch == wch) continue;
If there isn't that in there, put it in... thats the only thing I can think
of atm.
Davion.
From: "Matt Johnson" <[EMAIL PROTECTED]>
To: [email protected]
Subject: TO_ROOM bug
Date: Sun, 20 Apr 2003 22:24:59 +0000
Rom coders -
Thanks for everyone's help with the last bit about colour not working
properly. Since then I've done a bunch of work with adding olc and the bug
fixes posted around the net. For some odd reason any command that should
go to more then one character is only going to one. Example:
:Zytemis' screen:
Zytemis utters the words, 'sanctuary'.
:Respite's screen:
Respite is surrounded by a white aura.
You are surrounded by a white aura.
also
:Zytemis' screen:
Zytemis says 'test'
You say 'test'
:Respite's screen:
(No output displayed)
act_comm.c / do_say function-<SNIPPET>
act( "$n says '$T'", ch, NULL, argument, TO_ROOM );
act( "You say '$T'", ch, NULL, argument, TO_CHAR );
I haven't changed anything around from the stock rom code in this section.
I have added OLC and Colour to the stock rom 24b6 code. I believe the
TO_ROOM function is somehow messed up. It seems unlikely that the order
above, "ch, null, argument, to_room" would be out of order b/c stock rom's
say/tell worked fine and neither of those patches edits those. It is
possible the "template" for the inclusion/exclusion of where the message is
sent has been changed somehow. If someone knows where that is I would like
to know so I can check / compare. Other than that I do not know why
messages get printed to the wrong targets. I am not yet familiar enough
with the definition of sprintf or send_to_char to know which players those
functions get sent to.
One other minor problem I have noticed is that in Rom24/data/socials
nothing is in that file and so of course none of the socials work in the
mud. I did grep smile *.c and *.h and there is no list of these socials, I
would like to restore those back to the mud. Let me know if you know what
happened here and possibly where I can find the complete socials file (most
likely in stock rom). Thanks for your help everyone and more importantly
your patience.
- Zytemis
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail