Blizzard Sector
Random room name code - Printable Version

+- Blizzard Sector (https://www.blizzsector.co)
+-- Forum: Diablo II (https://www.blizzsector.co/forum-4.html)
+--- Forum: Hacks Bots and Editors (https://www.blizzsector.co/forum-16.html)
+--- Thread: Random room name code (/thread-47012.html)



Random room name code - ImBr - 01-30-2011

I found this script:
Code:
function getRandomString(_length)
{
    _retString = "";
    _charSet = "0123456789abcdefghijklmnopqrstuvwxyz";

    while(_length--)
    {
        _retString += _charSet.charAt(Random(0, _charSet.length-1));
        Delay(1);
    }

    return _retString;
}
At NTBot

But apparently the manager don't use this script to generate the room name, I've tried this:

Code:
function getRandomString(_length)
{

        _retString = "meme" + (Random(0, 30);
        Delay(1);
    }

    return _retString;
}
Some idea how I can select my own room name sufixes?

I need it to create rooms like nameNN
where NN = numbers...

More details:
http://www.blizzsector.co/f16/d2nt-any-idea-57543.html#post487865

Thanks