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.

Random number in bot name

Old posts that have not been replied to for several years.
Locked
s
space_cowboy

Random number in bot name

Post by space_cowboy »

Im trying to make a random number appear in the bots names.
like this:
botnick-xxxx
where xxxx is a random number.

Ive tried this
botnick-%random%

but with no success, any help is greatly appreciated.
p
puffi
Voice
Posts: 25
Joined: Tue Jun 01, 2004 10:09 am

Post by puffi »

Code: Select all

set nick "botnick-[rand 10][rand 10][rand 10][rand 10][rand 10]"
should help you out.
rand <limit>
Returns: a random integer between 0 and limit-1
Module: core
s
space_cowboy

;]

Post by space_cowboy »

thanks man, exactly right.
Locked