|
Joined: Nov 2006
Posts: 5
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
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.
|
|
|
|
Joined: Jan 2003
Posts: 53
Babel fish
|
Babel fish
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...
|
|
|
|
Joined: Oct 2006
Posts: 342
Fjord artisan
|
Fjord artisan
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
|
|
|
|
Joined: Nov 2006
Posts: 5
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Nov 2006
Posts: 5 |
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
|
|
|
|
Joined: Jan 2003
Posts: 53
Babel fish
|
Babel fish
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
|
|
|
|
Joined: Nov 2006
Posts: 5
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
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.
|
|
|
|
Joined: Oct 2006
Posts: 166
Vogon poet
|
Vogon poet
Joined: Oct 2006
Posts: 166 |
double post.
Last edited by b1ink; 08/11/06 04:31 AM.
Kind Regards, blink
|
|
|
|
Joined: Oct 2006
Posts: 166
Vogon poet
|
Vogon poet
Joined: Oct 2006
Posts: 166 |
jaytea's regsubex trick:
alias rnick $regsubex($str(.,$$1),/(.)/g,$iif($r(1,0),$r(a,z),$r(A,Z)))
$rnick(len)
Kind Regards, blink
|
|
|
|
|