mIRC Homepage
Posted By: LudoTheGreat Random Nick - 07/11/06 11:43 PM
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.
Posted By: Zonk Re: Random Nick - 07/11/06 11:49 PM
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...
Posted By: learn3r Re: Random Nick - 07/11/06 11:52 PM
alias randomnick nick $+(RR-User,[,$r(A,z),$r(A,z),$r(A,z),$r(A,z),])

use the alias
Posted By: LudoTheGreat Re: Random Nick - 08/11/06 12:14 AM
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
Posted By: Zonk Re: Random Nick - 08/11/06 12:21 AM
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
Posted By: LudoTheGreat Re: Random Nick - 08/11/06 12:31 AM
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.
Posted By: b1ink Re: Random Nick - 08/11/06 04:28 AM
double post.
Posted By: b1ink Re: Random Nick - 08/11/06 04:28 AM
jaytea's regsubex trick:
Code:
alias rnick $regsubex($str(.,$$1),/(.)/g,$iif($r(1,0),$r(a,z),$r(A,Z)))

$rnick(len)
© mIRC Discussion Forums