This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Need a nick design script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Locked
C
CuteBangla
Halfop
Posts: 58
Joined: Mon Feb 27, 2006 10:47 pm
Location: Dhaka, Bangladesh
Contact:

Need a nick design script

Post by CuteBangla »

hello there
sorry for desturbin again & again

is there any script what will work like
<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
^S-u-M-i-T^
will any1 help me?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

This will design the nick as you wished:

Code: Select all

proc design n {
 set out ""
 foreach token [split $n ""] {
  append out $token-
 }
 set out \002^[string trim $out -]^\002
}
Usage: set nick [design $nick]
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

I think it would be just as good to just use

Code: Select all

proc design n {
  return \002^[join [split $n ""] -]^\002
}
A simpler code which does the exact same
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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

Code: Select all

proc design n {
  return \002^[join [split $n ""] -]^\002
}
A simpler code which does the exact same
Yes :wink: simpler and faster.
C
CuteBangla
Halfop
Posts: 58
Joined: Mon Feb 27, 2006 10:47 pm
Location: Dhaka, Bangladesh
Contact:

Post by CuteBangla »

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

like
<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: Select all

proc design n {
  return \002^[join [split $n ""] -]^\002
}
A simpler code which does the exact same
C
CuteBangla
Halfop
Posts: 58
Joined: Mon Feb 27, 2006 10:47 pm
Location: Dhaka, Bangladesh
Contact:

Post by CuteBangla »

i have a mirc script what work like that
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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: Select all

proc design {n s} {
  return \002^[join [split $n ""] $s]^\002
}
for example:

Code: Select all

set nick [design $nick _]
'_' is the sign.
C
CuteBangla
Halfop
Posts: 58
Joined: Mon Feb 27, 2006 10:47 pm
Location: Dhaka, Bangladesh
Contact:

Post by CuteBangla »

well Sir_Fz
main actually i need like

<^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?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

proc vs n {
 set n [string trimleft $n ^]
 foreach {n1 n2} [split $n _] {break}
 set n "$n1 Vs $n2"
}
Usage: vs $nick
C
CuteBangla
Halfop
Posts: 58
Joined: Mon Feb 27, 2006 10:47 pm
Location: Dhaka, Bangladesh
Contact:

Post by CuteBangla »

it worked
thankssssssssssssssssssssssss
:D
C
CuteBangla
Halfop
Posts: 58
Joined: Mon Feb 27, 2006 10:47 pm
Location: Dhaka, Bangladesh
Contact:

Post by CuteBangla »

it doesnt work in my relay script



:-(
what eva

thanks for ur help Sir_Fz
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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.
Locked