
Code: Select all
$r.max.s = read text: page=7700 id=999 // get current range of names from textfile as a string
$r.max.i = string $r.max.s to integer // get the integer from the string above
$rname.val = random value from 20 to $r.max.i - 1 // get a random number for a random username in the textfile
$rn2 = sprintf: pageid=7700 textid=$rname.val, null, null, null, null, null // this will load the name
$ship -> set pilot name to $rname //set the pilots name, you can also use it to rename ships or use it for messages
