• Our Minecraft servers are offline but we will keep this forum online for any community communication. Site permissions for posting could change at a later date but will remain online.

Better /Disguise Script.java [Coded in Python]

GamerChappy

Experienced
Joined
Apr 10, 2013
Messages
366
Reaction score
180
So, a lot of people recently have been complaining recently (or at least commenting) that the name generator to disguise people is too obvious. When you are looking through 24 people, it isn't too hard to spot a donor. Plus you can always double-check with the first few letters of their disguised name and then 'tab'. If it doesn't auto-complete the name, then that is a disguised player.

While I do not know how to stop the 'tab' issue, I would like to contribute a way of making a better random name generator. The name generator is coded in Python. While I helped with modifying some parts, a guy named 'PXYC' originally coded this for a different game.

The source code for the name generator used is below:

Code:
import time # Sleep
from random import choice, randint # Teaches Python about the ability to pick something randomly
from optparse import OptionParser

uppercase = [
    "A",
    "B",
    "C",
    "D",
    "E",
    "F",
    "G",
    "H",
    "I",
    "J",
    "K",
    "L",
    "M",
    "N",
    "O",
    "P",
    "H",
    "I",
    "J",
    "K",
    "L",
    "M",
    "N",
    "O",
    "P",
    "Q",
    "R",
    "S",
    "T",
    "U",
    "V",
    "W",
    "X",
    "Y",
    "Z"
    ]

syl1 = [
    "Da",
    "Di",
    "Do",
    "Er",
    "Et",
    "En",
    "Ev",
    "Da",
    "Mi",
    "Est",
    "Os",
    "Ta",
    "Mos",
    "Ye",
    "Yi",
    "Za",
    "Zo",
    "Te",
    "Yap",
    "Moz",
    "Yot",
    "Yit",
    "Stu",
    "Mor",
    "Dan",
    "Fas",
    "Dul",
    "Fan",
    "Ho",
    "Doy",
    "Far",
    "Kor",
    "Fad",
    "Dat",
    "Fis",
    "Art",
    "Ant",
    "Ara",
    "Aft",
    "Ana",
    "Asa"
    ]
syl2 = [
    "st",
    "ne",
    "re",
    "ta",
    "fa",
    "de",
    "ta",
    "do",
    "in",
    "ta",
    "ny",
    "st",
    "yo",
    "ak",
    "ey",
    "eh",
    "en",
    "et",
    "un",
    "ud",
    "us"
    ]
syl3 = [
    "a",
    "b",
    "c",
    "d",
    "e",
    "f",
    "g",
    "h",
    "i",
    "j",
    "k",
    "l",
    "m",
    "n",
    "o",
    "p",
    "r",
    "s",
    "t",
    "u",
    "v",
    "w",
    "x",
    "y",
    "z",
    "an",
    "ra",
    "ts",
    "fs",
    "ad",
    "st",
    "ra"
    ]

    syll1 = choice(syl1)
    syll2 = choice(syl2)
    syll3 = choice(syl3)
    syllist1 = list(syll1)
    syllist2 = list(syll2)
    syllist3 = list(syll3)
    if syllist1[len(syllist1) - 1] == syllist2[0] or syllist2[len(syllist2) - 1] == syllist3[0]: # This checks whether the name is awkward (e.g. Etttstat)
        generate() # Repeats the generating of a name.
    else:
        global name
        name = syll1 + syll2 + syll3
            name = name
This code explains that the script will select a starting capital letter, and 3 other syllables from 3 varied lists, rather than using full words. This adds more creativity and complexity to generated names. Of course, this could be varied. Syllables could include numbers, and not just letters. You could also add another syllable, or even change the selection of syllables to make them as or not as complex.

Note: Although this is programmed in 'Python' (a programming language), Minecraft uses the language 'Java' to code. This would not magically work if you were to rename the file, not to mention this script was meant to be run client-side. Something I cannot do is link this code up to MCGamer's database. This is meant to be a better way to make randomly generated names more complex and harder to find.

Please leave comments, constructive criticism, or anything else you want to say below! :)

GamerChappy.
 

BoostMeGaming

Diamond
Joined
Dec 14, 2013
Messages
1,574
Reaction score
455
Umm, what if it disguises to a name that has already been used by a REAL player, let's say like Blamph
 

Blamph

District 13
Joined
May 28, 2012
Messages
814
Reaction score
5,107
This is actually pretty good. I looked over the code and it's very clean. I say give it a whirl through private testing!
 

GamerChappy

Experienced
Joined
Apr 10, 2013
Messages
366
Reaction score
180
This is actually pretty good. I looked over the code and it's very clean. I say give it a whirl through private testing!
Someone would need to convert it into .java though. I find Python a lot easier to read, modify (and sort of code) because I don't need to tell the script what I'm doing. Python already knows the meaning of radiant, or subtract, unlike other codes where you need to teach the script everything from scratch.

Also, the script is meant to be very clean, because it was used in another game. :p
 

Members online

No members online now.

Forum statistics

Threads
242,192
Messages
2,449,550
Members
523,972
Latest member
Atasci