Login
User Name:

Password:



Register

Forgot your password?
Hi - Clean SmaugFuss map/description issue..
Dec 15, 2024 7:29 pm
By Samson
AFKMud 2.2.4
Dec 10, 2024 4:09 pm
By Samson
I3 and IMC
Dec 8, 2024 6:35 pm
By Remcon
Ubuntu 22.04.5 LTS
Dec 5, 2024 5:10 pm
By Remcon
SmaugFUSS 1.8/1.9
Nov 29, 2024 11:46 am
By Remcon
SWFOTEFUSS 1.5.1
Author: Various
Submitted by: Samson
SWRFUSS 1.4.1
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.5
Author: Various
Submitted by: Samson
AFKMud 2.2.4
Author: AFKMud Team
Submitted by: Samson
LOP 1.5
Author: Remcon
Submitted by: Remcon
Users Online
AhrefsBot, DotBot, Google

Members: 0
Guests: 49
Stats
Files
Topics
Posts
Members
Newest Member
494
3,808
19,707
588
Mortrex

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » Codebases » SWFOTE FUSS » Spying on clan talk?
Forum Rules | Mark all | Recent Posts

Spying on clan talk?
< Newer Topic :: Older Topic > I know, more noobish questions!!!

Pages:<< prev 1 next >>
Post is unread #1 Oct 24, 2011 8:57 pm   
Go to the top of the page
Go to the bottom of the page

ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008

 
Ok, here's what I'd like to do: Be able to snoop in on clan talk from the person your spying on.
Currently if your spy on say frequency 111.111, so you see all tells too and from that person but you don't see any channel usage.
In do_tell and do_reply it calls show_spys( ch, victim, argument ); however they don't go though the channel system.

Which the main function of show_spys look like this:
void show_spys( CHAR_DATA * ch, CHAR_DATA * victim, const char *tell )
{
        CHAR_DATA *och;

        if( IS_NPC( ch ) || IS_NPC( victim ) || IS_IMMORTAL( ch ) || IS_IMMORTAL( victim ) )
                return;

        for( och = first_char; och; och = och->next )
        {
                if( IS_NPC( och ) || !och->comfreq )
                        continue;

                if( !str_cmp( och->pcdata->tell_snoop, ch->comfreq ) || !str_cmp( och->pcdata->tell_snoop, victim->comfreq ) )
                        ch_printf( och, "&B[&cINTERCEPTED MESSAGE&b]\r\n&B(&YSent: &G&W%s&B) (&Yto: &G&W%s&B) (&Ymessage&B) &G&W %s\r\n",
                                        ch->comfreq, victim->comfreq, tell );

        }
}


I'm at a bit of a loss since clan_talk is managed though channels, would I have to rip clantalk out of the channel system and treat it differently, or might there be an easier way to snoop on in?

Thanks,
ayuri

Post is unread #2 Oct 25, 2011 7:29 am   
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

 
Take a look at "tell" and see what that's doing. You'll probably have to make a copy of the guts of that and change things a bit to work for channel. Then add another ifcheck within the for loop calling the channel. Don't have SWFOTE, so not sure what all would be involved.

Post is unread #3 Oct 25, 2011 1:13 pm   
Go to the top of the page
Go to the bottom of the page

ayuri
Magician
GroupMembers
Posts239
JoinedJun 13, 2008

 
Yeah,
That is kind of what I was afraid of. I might put that on my 'to-do once I learn more' page. Heck, at this point in time I'm not even sure how the channels fully work in figuring out who gets to see what message. Then again, I've not slept in oh, 27+ hours or so....(hooray peoplesoft!)

ayuri

Pages:<< prev 1 next >>