Mob %at% <location> %echo% broken

Login to reply  Page: « < 1 of 1 > »
13 Dec 2009 - 21:322157
Mob %at% <location> %echo% broken
Parna and I noticed a few trigs stopped working a few months back and I never figured out why. Specifically mob triggers using %at% <location> %echo%. I did a diff on dg_mobcmd and ACMD(do_mat) has not been changed and I can't think of any related changes that could cause this. Here is a trigger that no longer works:
Name: 'Rumble's Spy',  VNum: [   20], RNum: [   20]
Trigger Intended Assignment: Mobiles
Trigger Type: Speech , Numeric Arg: 100, Arg list: *
Commands:
* By Rumble of The Builder Academy    tbamud.com 9091
* Arguments: * means all speech will trigger this.
* This will echo all speech to Rumble.
%at% rumble %echo% %actor.name% says, '%speech%'
%at% is working with both a person and vnum as an argument. It will work if you replace the %echo% with a say:
%at% rumble say %actor.name% says, '%speech%
But it chokes on the %echo% and returns nothing. We also have a mob-entry trig that no longer works.
Anyone have any idea where to go from here?


__________________
Rumble
The Builder Academy
tbamud.com 9091
27 Jan 2010 - 04:262272
At some point the following was added to the do_mecho function in dg_mobcmd:
sub_write(p, ch, TRUE, TO_CHAR);
Not sure why this would mess things up, as sub_write() is essentially the same as act(). But this line is echoing to the acting character his action in the remote room, so I don't think it's needed.

Try removing the line and seeing if that works. That's all I was able to see that could be causing the problem, without digging through the entire dg code.


Login to reply  Page: « < 1 of 1 > »