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 

Need a nick design script

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
CuteBangla
Halfop


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

PostPosted: Sun Apr 16, 2006 1:25 pm    Post subject: Need a nick design script Reply with quote

hello there
sorry for desturbin again & again

is there any script what will work like

Quote:
<SuMiT>hello Niharika
<Niharika> ^S-u-M-i-T^ hi there {Niharika is the BOT}


ya there is manny script like this but i want to see the nick designed

as like as i paste here
Quote:
^S-u-M-i-T^


will any1 help me?
_________________
SuMiT
iRC.CuteBangla.Com
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 16, 2006 4:02 pm    Post subject: Reply with quote

This will design the nick as you wished:
Code:
proc design n {
 set out ""
 foreach token [split $n ""] {
  append out $token-
 }
 set out \002^[string trim $out -]^\002
}

Usage: set nick [design $nick]
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Sun Apr 16, 2006 6:39 pm    Post subject: Reply with quote

I think it would be just as good to just use

Code:
proc design n {
  return \002^[join [split $n ""] -]^\002
}


A simpler code which does the exact same
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 16, 2006 7:50 pm    Post subject: Reply with quote

MeTroiD wrote:
I think it would be just as good to just use

Code:
proc design n {
  return \002^[join [split $n ""] -]^\002
}


A simpler code which does the exact same

Yes Wink simpler and faster.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
CuteBangla
Halfop


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

PostPosted: Mon Apr 17, 2006 5:11 am    Post subject: Reply with quote

but i m looking for insert sign after evry singel word of his nick
is it possible?

like

Quote:
<SuMiT> hello bot
<BOT> is it ^S_u_M_i_T^


MeTroiD wrote:
I think it would be just as good to just use

Code:
proc design n {
  return \002^[join [split $n ""] -]^\002
}


A simpler code which does the exact same

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


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

PostPosted: Mon Apr 17, 2006 5:14 am    Post subject: Reply with quote

i have a mirc script what work like that
_________________
SuMiT
iRC.CuteBangla.Com
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Apr 17, 2006 11:18 am    Post subject: Reply with quote

What're you talking about? you got an answer for what you requested. If you want to insert the sign you want, then use:
Code:
proc design {n s} {
  return \002^[join [split $n ""] $s]^\002
}

for example:
Code:
set nick [design $nick _]

'_' is the sign.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
CuteBangla
Halfop


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

PostPosted: Mon Apr 17, 2006 11:27 am    Post subject: Reply with quote

well Sir_Fz
main actually i need like


Quote:
<^RSA_NZ> 1.4 Martin to Gibbs, no run
<BOT> RSA Vs NZ :- 1.4 Martin to Gibbs, No run.


when 1 bot is relaying somthin i want to replace ^RSA_NZ to
RSA Vs NZ

i am useing chanlink.tcl for relay
i want to add this nick re designe

is it immpossible?
_________________
SuMiT
iRC.CuteBangla.Com
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Apr 17, 2006 11:44 am    Post subject: Reply with quote

Code:
proc vs n {
 set n [string trimleft $n ^]
 foreach {n1 n2} [split $n _] {break}
 set n "$n1 Vs $n2"
}

Usage: vs $nick
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
CuteBangla
Halfop


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

PostPosted: Mon Apr 17, 2006 11:50 am    Post subject: Reply with quote

it worked
thankssssssssssssssssssssssss
Very Happy
_________________
SuMiT
iRC.CuteBangla.Com
Back to top
View user's profile Send private message Visit poster's website
CuteBangla
Halfop


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

PostPosted: Mon Apr 17, 2006 4:46 pm    Post subject: Reply with quote

it doesnt work in my relay script



Sad
what eva

thanks for ur help Sir_Fz
_________________
SuMiT
iRC.CuteBangla.Com
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Apr 17, 2006 5:10 pm    Post subject: Reply with quote

You've failed to use the code(s) you've been given and you've failed to discuss your problem. We're not psychic, we can't read your mind. You have to tell us your problem. Although I've replied to your private message (although I shouldn't have) and told you that you weren't using the code correctly, you still don't try to fix it.

This topic is locked.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Script Requests 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