Pages:<< prev 1 next >>
#1 Oct 24, 2011 8:57 pm
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:
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
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
#2 Oct 25, 2011 7:29 am
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.
#3 Oct 25, 2011 1:13 pm
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
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 >>