mIRC Home    About    Download    Register    News    Help

Print Thread
#25264 20/05/03 09:51 PM
B
brad2
brad2
B
I need help. Trying to make a script for nick on Undernet..since there is no NickServ there...

When I join, I need a script that will change my name to Brad. And if Brad is not available, change it to Brad`. And if that is not available, change it to Brad``., etc.

I sort of figured it out, but the way I did it, it just kept changing my name...like if Brad was available, it would change it to Brad, but then it would change it to Brad`, then to Brad``.

HELP ME!

#25265 21/05/03 02:17 AM
Joined: Dec 2002
Posts: 416
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 416
Why don't you just set up your mian nick for Brad and your alterative nick to Brad``if one is in use then mirc will change it to the alterative nick. You can do this in mirc Options\Connect

#25266 21/05/03 03:26 AM
B
brad2
brad2
B
Well, I have different nicks on different servers for one thing...

I just don't like having a whole bunch of `s at the end of my nick, so i try for few as possible...

A lot of the time, Brad is taken, and Brad` is taken, and sometimes Brad` is taken.

#25267 21/05/03 03:44 AM
Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
Use some random numbers as a suffix for the alternate nick.

#25268 21/05/03 04:04 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
on 1:CONNECT: {
set %myname brad
}

raw 433:*: {
/set %myname $+(%myname,`)
if ($count(%myname, `) >= 5) /nick brad $+ $rand(1,999)
else /nick %myname
}

#25269 21/05/03 01:00 PM
Joined: Dec 2002
Posts: 334
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2002
Posts: 334
What you could also do to make your scripty better is to add an on unnotify event... and have the nick Brad in notify and when it goes offline you get it smile
would go something like this...

on *:UNNOTIFY:{ if ($nick == Brad) && ($me != Brad) { /Nick Brad }

#25270 21/05/03 02:06 PM
S
ScatMan
ScatMan
S
that's UNOTIFY not UNNOTIFY

#25271 21/05/03 06:07 PM
Joined: Dec 2002
Posts: 334
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2002
Posts: 334
Right... sorry typo... I'm getting old :P

#25272 22/05/03 03:34 PM
B
brad2
brad2
B
on 1:CONNECT: {
set %myname brad
}

raw 433:*: {
/set %myname $+(%myname,`)
if ($count(%myname, `) >= 5) /nick brad $+ $rand(1,999)
else /nick %myname
}


With that, it changes my nick to just `, or ``, or ```.

???

#25273 24/05/03 11:16 PM
B
brad2
brad2
B
???


Link Copied to Clipboard