| View previous topic :: View next topic |
| Author |
Message |
Dogar Voice
Joined: 29 Oct 2004 Posts: 7
|
Posted: Wed Dec 29, 2004 7:41 am Post subject: relay and add colours to relayed message |
|
|
Hi ,
I seen afew relay scripts in the archive and i wanted to know if its possible to add colours to a relayed message?what im looking todo is echo the nforce bot and then add colours for diffrent items etc. i would greatly apprecaite youre assistance.thanks in advance  |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Wed Dec 29, 2004 1:22 pm Post subject: |
|
|
| Sure, It's possible. |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed Dec 29, 2004 1:43 pm Post subject: |
|
|
to add mIRC colors, simply embed mIRC color codes (I presume you are familiar with mIRC's color scheme) in your message:
| Code: |
putserv "privmsg $chan :this is \0034,8red on yellow\003"
|
here, \003 is mIRC's color code escape character (ASCII 3, Ctrl-C) |
|
| Back to top |
|
 |
Dogar Voice
Joined: 29 Oct 2004 Posts: 7
|
Posted: Wed Dec 29, 2004 2:58 pm Post subject: ty |
|
|
Thanks alot i will give it a try.  |
|
| Back to top |
|
 |
Ofloo Owner
Joined: 13 May 2003 Posts: 953 Location: Belguim
|
Posted: Wed Dec 29, 2004 4:17 pm Post subject: |
|
|
don't wana be an ass but its beter to do this for red \00304 = cause if now a digit folows the color code won't be messed up while..
\00340 will mess up the code if the msg starts with a digit of course its a small detail but .. id take it in consideration  _________________ XplaiN but think of me as stupid |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Wed Dec 29, 2004 8:44 pm Post subject: |
|
|
Good thing now with tcl 8.2 or higher. You can directly add mIRC control codes into your .txt .tcl .conf whatever files and they will do the same. You don't need to convert them into hex or html codes.
Meaning just add them in your files as you use them on IRC. Add the square box, which represents a specific control code in mIRC, followed by its number sequence (which color) if it is a color, and you can do the same for, bold, reverse and all vice versa. I use the same method and it works for me, so there is no need to bother and convert it into hex and add slashes infront of it. _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
Ofloo Owner
Joined: 13 May 2003 Posts: 953 Location: Belguim
|
Posted: Wed Dec 29, 2004 8:56 pm Post subject: |
|
|
hmm i prefer to use decimals .. instead of control codes like u describe it.. _________________ XplaiN but think of me as stupid |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed Dec 29, 2004 9:03 pm Post subject: |
|
|
| awyeah wrote: | | Add the square box, which represents a specific control code in mIRC |
a "square box"? LOL |
|
| Back to top |
|
 |
Ofloo Owner
Joined: 13 May 2003 Posts: 953 Location: Belguim
|
Posted: Wed Dec 29, 2004 9:26 pm Post subject: |
|
|
he means the resolved mirc color codes or beter yet the resolved decimals i don't like it like that at all if you work on it afterwards you have no clue of what you did .., neither can anyother scripter it is gone take a few mins to figur out what is what if its a small script .. _________________ XplaiN but think of me as stupid |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Thu Dec 30, 2004 12:31 am Post subject: |
|
|
| demond wrote: | | awyeah wrote: | | Add the square box, which represents a specific control code in mIRC |
a "square box"? LOL |
Well if you are using mIRC with say Arial font which most of us do, say 9 or 10pt. Then if you press CTRL+C you will get a character representing a square or rectangular box and that character would be a color code. So add the integers infront of it to display the colors. The same goes for bold, reverse, underline and plain and you will get the same square box character.
I don't think I can paste it here, because this html forum wouldn't support it. Let me see hmmmm.
| Code: |
putserv "KICK $chan [join $list {,}] :0,1 Excessive Clone/Botnet Kick 12,0 - 12Detected 2*3 or more* 12clients with the 2host $cloneban 12joining in here, in 2less than 4 secs. 2Excessive Clones 12and 2Botnets 12are 2not allowed 12to 2enter this channel, 12if done so further more 2your host 12will be 2banned permanently.2 - (Kick #$totalkicks)"
|
This is a kick message with colors, and this is what I was trying to say the control code characters are represented as boxes. _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
^DooM^ Owner

Joined: 26 Aug 2003 Posts: 772 Location: IronForge
|
Posted: Thu Dec 30, 2004 4:50 am Post subject: |
|
|
I knew what you meant awyeah..  _________________ The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born |
|
| Back to top |
|
 |
Dogar Voice
Joined: 29 Oct 2004 Posts: 7
|
Posted: Sun Jan 02, 2005 10:20 am Post subject: thanks |
|
|
what can i say , thanks guys for the help very much apprecaited.Happy new year! |
|
| Back to top |
|
 |
CuteBangla Halfop
Joined: 27 Feb 2006 Posts: 58 Location: Dhaka, Bangladesh
|
Posted: Wed Aug 02, 2006 6:49 am Post subject: |
|
|
And if i want to just replace a word when its relaying throw botnet like
_________________ SuMiT
iRC.CuteBangla.Com |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Thu Aug 03, 2006 8:56 pm Post subject: |
|
|
Try searching (for once) the Tcl FAQ. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
|