• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Namn] RPG för Server

Status
Not open for further replies.

krille09

Belden
Joined
Aug 15, 2007
Messages
4,892
Reaction score
55
Location
Stockholm, Sweden
tjeena :p


joo, som jag nu behöver ett rpg namn för min server...

typ som alvaria, elstera... etc (JAG Avänder inte mina gamla, lawl)

aja, haar någon en aning vart jag kan hitta ett program, eller sida eller kan NI komma på namn :eek:?

jag har väldigt svårt att hitta på >: (
 
Vizonic
Niborzland
Robin's Empire
Stronghold of Niborz



etc etc

























































































image.php
 
Name generator (ger sjuka namn ibland, men leta på):
PHP:
NAMES = {
	AMOUNT = 20, -- names to display?
	SIZE = {minimum=5, maximum=7} -- size of names?!
}

do
	math.randomseed(os.time())
	local function c(t)
		return t[math.random(1, #t)]
	end
	local ch = {
		{"a", "e", "i", "o", "u"},
		{"b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "z", "y"}
	}
	function makeName(len)
		local add = math.random(0,1) == 0 and "a" or "ia"
		local x = ""
		
		local start = math.random(1,2)
		
		for i=start, ((len or 5)-(add:len()+1))+start do
			x = x .. c(ch[i%2+1])
		end
		return x..add
	end
end

for i=1, NAMES.AMOUNT do
	print(makeName(math.random(NAMES.SIZE.minimum, NAMES.SIZE.maximum)))
end
 
Last edited:
Jag hade valt någon av dessa:
Neriona
Haziela
Piaela
Roktia
 
Name generator (ger sjuka namn ibland, men leta på):
PHP:
local NAMES = {
	AMOUNT = 20, -- names to display?
	SIZE = {minimum=5, maximum=7} -- size of names?!
}

do
	local function c(t)
		return t[math.random(1, #t)]
	end
	local ch = {
		{"a", "e", "i", "o", "u"},
		{"b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "z", "y"}
	}
	function makeName(len)
		local add = math.random(0,1) == 0 and "a" or "ia"
		local x = ""
		for i=1, (len or 5)-add:len() do
			x = x .. c(ch[i%2+1])
		end
		return x..add
	end
end

for i=1, NAMES.AMOUNT do
	print(makeName(math.random(NAMES.SIZE.minimum, NAMES.SIZE.maximum)))
end


ska jag lägga de i en name.php sen i xmapp/htdocs? :eek:
 
Yes .......

edit:
är ju rätt så likt Lua också , jag vet inte
 
Last edited:
Haha, de där va Lua, men här får ni min i PHP:
PHP:
<?php 
/*
Script made 100% by Colandus!

Remember: Names with length 4 - 8 gets best result!
It is very hard to find good names at length between 10 - 12, but I have found few!
*/
 
########## <CONFIG> ##########
//If you don't want random name lengths then write the same number on minimum and maximum.
$lengthMin = 5; //How many letter shall the word have as minimun? 2+
$lengthMax = 5; //How many letters shall the word have as maximum? 2+

$spChance = 0; //How much will the chance in percent be to get the character ' into the name? 0 - 100
$ucChance = 50; //How much will the chance in percent be to get a uppercase letter after the character ' into the name? 0 - 100
$bwChance = 0; //How much will the chance in percent be to get a name in reverse (backward) order? 0 - 100
$multiNames = 0; //How much will the chance in percent be to get a multiply name? 0 - 100

$displayNames = 1000; //How many names will be displayed at once? 1 - 10 000
$nameSize = 12; //How big shall the font size of the names be in pixels?
$showNum = true; //Should there be a number (list)  before each name? true/false
########## </CONFIG> ##########

// Error messages.
if ($lengthMin < 3)
	$errors[] = "Value of variable <b>\$lengthMin</b> is too low";
if ($lengthMin > 12)
	$errors[] = "Value of varialbe <b>\$lengthMin</b> is too high";
if ($lengthMax > 12)
	$errors[] = "Value of variable <b>\$lengthMax</b> is too high";
if ($lengthMax < $lengthMin)
	$errors[] = "Value of variable <b>\$lengthMax</b> cannot be lower than value of variable \$lengthMin";
if (!$lengthMin)
	$errors[] = "Missing variable <b>\$lengthMin</b>";
if (!$lengthMax)
	$errors[] = "Missing variable <b>\$lengthMax</b>";
if ($nameSize < 8)
	$errors[] = "Value of variable <b>\$nameSize</b> is too low";
if (!$nameSize)
	$errors[] = "Missing variable <b>\$nameSize</b>";
if (!$showNum)
	$errors[] = "Missing variable <b>\$showNum</b>";
if (!$displayNames)
	$errors[] = "Missing variable <b>\$displayNames</b>";

if (!$errors) {
	//Sets all consonats in a array.
	$consonants = array("b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "y", "z");
	//Sets all vowels in a array.
	$vowels = array("a", "e", "i", "o", "u");

	//Makes a random consonant.
	function randomCons() {
		global $consonants;
		$consSize = sizeof($consonants) - 1;
		$randCons = rand(0, $consSize);
		$consonant = strtolower($consonants[$randCons]);
		return $consonant;
	}

	//Makes a random vowel.
	function randomVowe() {
		global $vowels;
		$voweSize = sizeof($vowels) - 1;
		$randVowe = rand(0, $voweSize);
		$vowel = strtolower($vowels[$randVowe]);
		return $vowel;
	}

	function addChar($specOrder) {
		global $bwChance;
		if ($specOrder < $bwChance) {
			$char = randomVowe() . randomCons();
		} else {
			$char = randomCons() . randomVowe();
		}
		return $char;
	}
	
	//Makes a random name.
	function randomName($lengthMin, $lengthMax) {
		global $spChance, $bwChance, $ucChance, $multiNames, $searchName;
		$letters = rand($lengthMin, $lengthMax);
		//Adds a position to the special character ' in the name.
		$specCharRand = rand(0, 99);
		if ($specCharRand < $spChance) {
			if ($letters == 4 || $letters == 5) {
				$charPos = 2;
			} elseif ($letters == 6) {
				$charPos = rand(2, 3);
			} elseif ($letters >= 7) {
				$charPos = rand(2, 4);
			}
		}
		
		//Makes names throughout consonants and vowels.
		$specOrder = rand(0, 99);
		$start = 0;
		for ($i=0;$i<floor($letters/2);$i++) {
			$name .= addChar($specOrder);
		}
		if ($letters%2 == $start) {
			if ($specOrder < $bwChance) {
				$name .= randomVowe();
			} else {
				$name .= randomCons();
			}
		}
		//Adds a special character into the name.
		if ($charPos) {
			$upperCaseRand = rand(0, 99);
			if ($upperCaseRand < $ucChance) {
				$afterChar = ucfirst(substr($name, $charPos));
			} else {
				$afterChar = substr($name, $charPos);
			}
			$name = substr($name, 0, $charPos) . "'" . $afterChar;
		}
		return ucfirst($name);
	}

	$names = array();
	function makeName($lengthMin, $lengthMax) {
		global $names;
		$name = randomName($lengthMin, $lengthMax);
		if (in_array($name, $names)) {
			$name = makeName($lengthMin, $lengthMax);
		}
		$names[] = $name;
		return $name;
	}

	if ($displayNames < 1) {
		echo "<b>Warning:</b> Atleast one name has to be shown!";
	}
	echo "<table cellspacing='0' cellpadding='1' border='0'>";
	$name = array();
	for ($i=1; $i <= $displayNames; $i++) {
		$name[$i] = makeName($lengthMin, $lengthMax);
		$multiNameRand = rand(1, 100);
		##echo $i . ". " . $multiNameRand . " " . $multiNames . "<br>";
		if ($multiNameRand <= $multiNames) {
			$name[$i] .= " " . makeName($lengthMin, $lengthMax);
		}
	}

	foreach ($name as $id => $tname) {
		echo "<tr>";
		if ($showNum == true && $displayNames >= 1) {
			echo "<td style='font-size: " . $nameSize . "px;' valign='bottom'>$id. ";
			echo "<td style='font: bold " . $nameSize . "px verdana;'>" . $tname;
			echo "<br />";
		}
	}
	echo "</table>";
} else {
	foreach ($errors as $key => $error) {
		echo "$error!<br />";
	}
}
?>
 
Jag hittade några andra i .PHP
Tiwe OT
Malobitov OT
Portalworld
Don Casa (Eget)
Lasaca OT

Skriv vilken av de här jag ska ha, annars letar efter fler.
 
Om du använder mitt script så kan jag garantera dig att det finns mycket bättre än så! Har hittat fleeera förut :D
 
Ok, gjorde ett world name generator fort (PHP):
PHP:
<?php
function random_value($arr) {
	return $arr[rand(0, sizeof($arr)-1)];
}

function del_mult_chars($str) {
	return preg_replace('/(\w)\1+/', "$1", $str);
}

function world_name() {
	$chars = array(
		array("a", "e", "i", "o", "u"),
		array("b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "z", "y")
	);
	$end_letters = rand(1, 2) == 1 ? "a" : "ia";
	$start_value = rand(0, 1);

	for ($i=0+$start_value; $i <= rand(3, 4); $i++) {
		$world_name .= random_value($chars[$i%2]);
	}

	$world_name = del_mult_chars($world_name.$end_letters);
	return ucwords($world_name);
}

for ($i=1; $i<=20; $i++) {
	echo world_name()."<br />";
}
?>

kthxbye
 
Last edited:
Ok, gjorde ett world name generator fort (PHP):
PHP:
<?php
function random_value($arr) {
	return $arr[rand(0, sizeof($arr)-1)];
}

function del_mult_chars($str) {
	for ($i=1; $i <= strlen($str); $i++) {
		if ($str{$i} == $str{$i-1}) {
			$str = substr($str, 0, $i-1) . substr($str, $i);
		}
	}
	return $str;
}

function world_name() {
	$chars = array(
		array("a", "e", "i", "o", "u"),
		array("b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "z", "y")
	);
	$end_letters = rand(1, 2) == 1 ? "a" : "ia";
	$start_value = rand(0, 1);

	for ($i=0+$start_value; $i <= rand(3, 4); $i++) {
		$world_name .= random_value($chars[$i%2]);
	}

	$world_name = del_mult_chars($world_name.$end_letters);
	return ucwords($world_name);
}

for ($i=1; $i<=20; $i++) {
	echo world_name();
}
?>

kthxbye
Rizz Sida var mkt bättre :p, Rizz...
Kan du realese ditt php script? skulle vara fint :)
 
Nej min äger ju! :eek:

Varför är hans bättre? Min är typ 100% random ;)
 
Ehh, jag menar den senaste jag skicka >.< Den du quotade, den gör inte såna namn som "aizux" >.>

#15 i denna thread!
 
Scara
Exura
Citera

;d
 
Last edited:
Status
Not open for further replies.
Back
Top