egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

relay and add colours to relayed message

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Dogar
Voice


Joined: 29 Oct 2004
Posts: 7

PostPosted: Wed Dec 29, 2004 7:41 am    Post subject: relay and add colours to relayed message Reply with quote

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 Smile
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Wed Dec 29, 2004 1:22 pm    Post subject: Reply with quote

Sure, It's possible.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Dec 29, 2004 1:43 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Dogar
Voice


Joined: 29 Oct 2004
Posts: 7

PostPosted: Wed Dec 29, 2004 2:58 pm    Post subject: ty Reply with quote

Thanks alot i will give it a try. Smile
Back to top
View user's profile Send private message
Ofloo
Owner


Joined: 13 May 2003
Posts: 953
Location: Belguim

PostPosted: Wed Dec 29, 2004 4:17 pm    Post subject: Reply with quote

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 Wink
_________________
XplaiN but think of me as stupid
Back to top
View user's profile Send private message Visit poster's website
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Wed Dec 29, 2004 8:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Ofloo
Owner


Joined: 13 May 2003
Posts: 953
Location: Belguim

PostPosted: Wed Dec 29, 2004 8:56 pm    Post subject: Reply with quote

hmm i prefer to use decimals .. instead of control codes like u describe it..
_________________
XplaiN but think of me as stupid
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Dec 29, 2004 9:03 pm    Post subject: Reply with quote

awyeah wrote:
Add the square box, which represents a specific control code in mIRC


a "square box"? LOL
Back to top
View user's profile Send private message Visit poster's website
Ofloo
Owner


Joined: 13 May 2003
Posts: 953
Location: Belguim

PostPosted: Wed Dec 29, 2004 9:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Thu Dec 30, 2004 12:31 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
^DooM^
Owner


Joined: 26 Aug 2003
Posts: 772
Location: IronForge

PostPosted: Thu Dec 30, 2004 4:50 am    Post subject: Reply with quote

I knew what you meant awyeah.. Wink
_________________
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
View user's profile Send private message Visit poster's website
Dogar
Voice


Joined: 29 Oct 2004
Posts: 7

PostPosted: Sun Jan 02, 2005 10:20 am    Post subject: thanks Reply with quote

what can i say , thanks guys for the help very much apprecaited.Happy new year!Smile
Back to top
View user's profile Send private message
CuteBangla
Halfop


Joined: 27 Feb 2006
Posts: 58
Location: Dhaka, Bangladesh

PostPosted: Wed Aug 02, 2006 6:49 am    Post subject: Reply with quote

And if i want to just replace a word when its relaying throw botnet like

Quote:
Orginal <SuMiT> sign in Yahoo
Bot Relay <CuteBangla> sign in http://www.yahoo.com

_________________
SuMiT
iRC.CuteBangla.Com
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Aug 03, 2006 8:56 pm    Post subject: Reply with quote

Try searching (for once) the Tcl FAQ.
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber