Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » 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, 6: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, 5: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, 11:13 am
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 >>