mIRC Home    About    Download    Register    News    Help

Print Thread
#81435 01/05/04 01:25 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Another Raw Problem, I'm not good with Raws, and need some help... I want to make my raw with colors, but want it to be nearly the same as the default one... Can someone make me a custom whois that shows::
Mew is ~Danielle@Creative-324AAC2D.snbrca.adelphia.net * (Renegade 1.5:: By Mew)
Mew is a registered nick
Mew on #GCN #megaman #ppt *#irchat #fire ^#Ghost ^#mp3 %#pig +#dbzbattles ^#mp3central *#SyNiX *#Broken
Mew using synaptic.CreativeIRC.net Creative IRC SynapticShells Leaf Server
Mew has been idle 2mins 35secs, signed on Fri Apr 30 06:57:57
Mew End of /WHOIS list.
and i'll add the colors. smile


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
#81436 01/05/04 11:07 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
raw number:*: echo -a whatever-you-want-goes-here | halt

Just repeat that line for every numeric involved.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#81437 01/05/04 11:31 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
raw 311:*:echo -sc whois $2 is $3 $+ @ $+ $4- | halt
raw 319:*:echo -sc whois $2 on $3- | halt
raw 307:*:echo -sc whois $2 is a registered nick | halt
raw 312:*:echo -sc whois $2 using $3- | halt
raw 317:*:echo -sc whois $2 has been idle $duration($3), signed on $asctime($4) | halt
raw 318:*:echo -sc whois $2- | halt

There is likely others, depending on the IRCd. If so, you can grab their numbers and and formats from /debug -p @debug.

#81438 01/05/04 11:37 AM
Joined: Dec 2002
Posts: 191
N
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
I think you might be missing a few { brakets there lori.

#81439 01/05/04 11:40 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
LOL yep mighta been, if I'd actually meant to use any. blush Thanks. smile

#81440 01/05/04 12:07 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hi,

I'm using this custom whois reply:

Code:
 
alias aecho { echo 04 -a 12[*] $replace($1-,,11,,04) }
 [color:red]  [/color] 
#whois on
raw 311:*:{
  haltdef 
  linesep $active
  aecho $str($chr(35),4) [Whois] $str($chr(35),4) 
  aecho Nick: $2 
  aecho Host: $+($3,@,$4) 
  aecho Real name: $6-
}
raw 301:*:{ haltdef | aecho Away msg: $3- }
raw 307:*:{ haltdef | aecho $2- }
raw 310:*:{ haltdef | aecho Using modes: $6 }
raw 312:*:{ haltdef | aecho Server: $3- }
raw 313:*:{ haltdef | aecho $2- }
raw 317:*:{ haltdef | aecho Idle: $duration($3) $+ , signed on $asctime($4) }
raw 318:*:{ haltdef | linesep $active }
raw 319:*:{ haltdef | aecho Channels: $3- }
raw 320:*:{ haltdef | aecho Hostmask: $4- }
raw 401:*:{ haltdef | aecho $2- }
#whois end

As others have stated (e.g. Iori) there might be some differences depending on what network, however these raw's already cover quite a few.

Btw, you see that the "whois script" is grouped by #whois on and #whois end. If you ever want to see your normal reply again, then simply change the on to off. (#whois off). In case you did not know that.

Also note that I'm using the following alias:
Code:
  
alias aecho { echo 04 -a 12[*] $replace($1-,,11,,04) }

The alias does the following: put the color red as first color hence the echo 04 ... Then it will replace a double ctrl+k with the light blue color, and the double ctrl+r with the color red again. (of course whether these colors are red and light blue really depends on what you have set the colors to, but well in a fresh new mirc client, that is what colors those color codes represent)

As an example:
Putting "aecho this part is red because of the echo 04,
this part is blue cuz of the double ctrl+k,this part is red again cuz of the double ctrl+r"

will have as output:
Code:

[color:blue][*][/color][color:red] this part is red because of the echo 04,[/color][color:blue]this part is blue cuz of the double ctrl+k,[/color]
[color:red]this part is red again cuz of the double ctrl+r[/color]  

Note that you could expand this alias so that it also replaces the ctrl+o, or ctrl+u with some other colors to your likings. You see this is a handy trick as if you ever want to change your colors, you will simply have to change them once in the alias aecho, and not worry about changing the raws, as they will change along with the alias.

Then finally, if you want to see a good overview for all the different raw events, then I suggest downloading Jeepster's Numeric Helpfile (right click, save target as)

Hope this was somewhat helpful for you,

Greetz


Gone.
#81441 01/05/04 12:31 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Just an added note, you can use the following code in your Remotes, then /whois yourself/someone else to see the RAWs that are used in the /whois for your network. Quick and easy detection for which ones you'll need smile

raw *:*:{ echo -s $numeric $2- }

The RAW number is the number that precedes each line in your Status window.

Regards,


Mentality/Chris
#81442 01/05/04 12:34 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
As a small addition to Mentality's post (and because it wasnt mentioned in above posts), $1 is YOU as in whatever nickname you're using at the time. This is why the whois output scripts shown on here usually start with $2 instead of $1


Those who fail history are doomed to repeat it
#81443 01/05/04 12:36 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hehe,

I know that, lol smile

Just that Iori already mentioned:

There is likely others, depending on the IRCd. If so, you can grab their numbers and and formats from /debug -p @debug.

But it's good advice for Kriminal,

Thanks for adding it,

Greetz

Btw: Hello Mentality, landonsandor, we meet again grin


Gone.
#81444 01/05/04 05:36 PM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Mew is 09~00Danielle0909@0000Creative09-00324AAC2D09.00snbrca09.00adelphia09.00net 09*00 09(00Renegade 109.00509:0009:00 By Mew09)00
Mew is a registered nick
Mew on: 09+00#ppt 09*00#Diablo #fire 09^00#Ghost 09^00#mp3 09%00#pig 09+00#dbzbattles 09^00#mp3central 09*00#SyNiX 09*00#Broken 09*00#irchat
Mew using synaptic09.00CreativeIRC09.00net Creative IRC SynapticShells Leaf Server
Mew
Mew End of /WHOIS list.
Alright And I whois'd myself and it works except for it showing "Mew" on that line above, by itself, Why does it do that?
raw 311:*:echo -sc whois $2 is $colors2($3 $+ @ $+ $4-) | halt
raw 378:*:echo -sc whois $2 is $colors2($4-) | halt
raw 319:*:echo -sc whois $2 on: $colors2($3-) | halt
raw 307:*:echo -sc whois $2 is a registered nick | halt
raw 312:*:echo -sc whois $2 using $colors2($3-) | halt
raw 317:*:echo -sc whois $2 $colors(has been idle $duration($3), signed on $asctime($4)) | halt
raw 301:*:echo -sc whois Away msg: $3- | halt
raw 318:*:echo -sc whois $2- | halt


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
#81445 01/05/04 05:45 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
raw 317:*:echo -sc whois $2 $colors2(has been idle $duration($3), signed on $asctime($4)) | halt
Maybe? wink

#81446 02/05/04 05:47 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Yep, I checked line by line and found it, but thanks anyway. :tongue:


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -

Link Copied to Clipboard