mIRC Home    About    Download    Register    News    Help

Print Thread
Random Nick #164111 07/11/06 11:43 PM
Joined: Nov 2006
Posts: 5
L
LudoTheGreat Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Nov 2006
Posts: 5
I'm currently writing a small custom script for reptilerooms.com's IRC channel. I am using remote scripts for logging onto the server and channel, but am looking for a way to use a random nick when they join. Something along the lines of RR-User***, the *** being the random part. Maybe numbers or something of the sort. Thanks in advance for any help.

Re: Random Nick #164112 07/11/06 11:49 PM
Joined: Jan 2003
Posts: 53
Z
Zonk Offline
Babel fish
Offline
Babel fish
Z
Joined: Jan 2003
Posts: 53
your looking for $r / $rand

$+(RR-User,$rand(a,z),$rand(0,9),$rand(a,z))

would give you a nick like RR-Userb3g or RR-Useri6k

hope thats what your looking for...

Re: Random Nick #164113 07/11/06 11:52 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
alias randomnick nick $+(RR-User,[,$r(A,z),$r(A,z),$r(A,z),$r(A,z),])

use the alias

Re: Random Nick #164114 08/11/06 12:14 AM
Joined: Nov 2006
Posts: 5
L
LudoTheGreat Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Nov 2006
Posts: 5
Quote:
your looking for $r / $rand

$+(RR-User,$rand(a,z),$rand(0,9),$rand(a,z))

would give you a nick like RR-Userb3g or RR-Useri6k

hope thats what your looking for...


That looks like what I'm looking for but to be honest I have no idea how to implement it

Re: Random Nick #164115 08/11/06 12:21 AM
Joined: Jan 2003
Posts: 53
Z
Zonk Offline
Babel fish
Offline
Babel fish
Z
Joined: Jan 2003
Posts: 53
whereever youre trying to give them a random name, inser $randRR
and place this in your remote also

alias randRR { return $+(RR-User,$rand(A,z),$rand(0,9),$rand(A,z)) }

i included the idea with varying between capital and non-capital letters

but as i said: whereever you need this random nick, just use $randRR

Re: Random Nick #164116 08/11/06 12:31 AM
Joined: Nov 2006
Posts: 5
L
LudoTheGreat Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Nov 2006
Posts: 5
Ty

I've actully suprised myself on this and was able to get this working before your post. This is what I got for it:

On *:Start: {
randomnick
connect2servers
}

alias randomnick {
nick $+(RR-User,$r(A,z),$r(0,9),$r(A,z))
}

alias connect2servers {
server irc.sorcery.net -j #reptilerooms
}


Thank you very much for your help.

Last edited by LudoTheGreat; 08/11/06 12:39 AM.
Re: Random Nick #164117 08/11/06 04:28 AM
Joined: Oct 2006
Posts: 166
B
b1ink Offline
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
double post.

Last edited by b1ink; 08/11/06 04:31 AM.

Kind Regards, blink
Re: Random Nick #164118 08/11/06 04:28 AM
Joined: Oct 2006
Posts: 166
B
b1ink Offline
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
jaytea's regsubex trick:
Code:
alias rnick $regsubex($str(.,$$1),/(.)/g,$iif($r(1,0),$r(a,z),$r(A,Z)))

$rnick(len)


Kind Regards, blink