mIRC Home    About    Download    Register    News    Help

Print Thread
#61941 26/11/03 08:33 PM
Joined: Nov 2003
Posts: 1
B
Mostly harmless
OP Offline
Mostly harmless
B
Joined: Nov 2003
Posts: 1
k im not the best with scripts so i need a lil help, i asked a friend and he said to see /help raw events but it didnt help at all.

when i whois ppl that have founder/sop status they are displayed as *#founder or ^#sop. i wanna change it to say on a whois ~#founder or &#sop. ~ replacing * as the founder symbol and & replacing ^. is there a way to do this, n if so how?

thx

#61942 26/11/03 09:21 PM
Joined: Nov 2003
Posts: 25
B
Ameglian cow
Offline
Ameglian cow
B
Joined: Nov 2003
Posts: 25
311 RPL_WHOISUSER
"<nick> <user> <host> * :<real name>"
312 RPL_WHOISSERVER
"<nick> <server> :<server info>"
313 RPL_WHOISOPERATOR
"<nick> :is an IRC operator"
317 RPL_WHOISIDLE
"<nick> <integer> :seconds idle"
318 RPL_ENDOFWHOIS
"<nick> :End of /WHOIS list"
319 RPL_WHOISCHANNELS
"<nick> :{[@|+]<channel><space>}"

See RFC 1459 for more info.
I have no ideas, about replacing symbols you want, but it is possible by using built-in debug feature on mIRC at versions 6.11 and greater.

#61943 27/11/03 04:11 AM
Joined: Nov 2003
Posts: 1
E
Mostly harmless
Offline
Mostly harmless
E
Joined: Nov 2003
Posts: 1
Well hi there brado wink
You could've asked me....

raw 319:*: {
echo -a $replace($2-,*,~,^,&)
halt
}

That'd do what you want smile
(and more that you probably don't want btw wink)

Last edited by Earendil; 27/11/03 05:04 AM.
#61944 27/11/03 06:56 AM
Joined: Nov 2003
Posts: 1
P
Mostly harmless
Offline
Mostly harmless
P
Joined: Nov 2003
Posts: 1
Here's one that will likely do it perfectly:)


raw 319:*: {
var %whoisreplaceincnum = 0
while ( $0 != %whoisreplaceincnum ) {
inc %whoisreplaceincnum
if ( $left( $gettok( $1- , %whoisreplaceincnum , 32 ) , 1) == ^ ) { tokenize 32 $puttok( $1- , & $+ $right( $gettok( $1- , %whoisreplaceincnum , 32 ) , -1) , %whoisreplaceincnum , 32 ) }
if ( $left( $gettok( $1- , %whoisreplaceincnum , 32 ) , 1) == * ) { tokenize 32 $puttok( $1- , ~ $+ $right( $gettok( $1- , %whoisreplaceincnum , 32 ) , -1) , %whoisreplaceincnum , 32 ) }
}
echo -a $2 on $3-
haltdef
}


A bit sloppy but seems to be working:)
MSG me if you spot any bugs in it or anything and I will be more then happy to help with it:)


#scripting on irc.evek.org

022!L;W9E('EO=2!487)O;@``

Link Copied to Clipboard