• 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!

Show outfit on characters.php (How i make it shows colors too?)

Xeikh

詠春 ☯
Joined
Oct 23, 2009
Messages
724
Reaction score
17
Hello, im using this at characters.php
But it only shows outfit with the normal colors, theres a way to it shows colors too?

Please someone help me:3

PHP:
if($config['site']['showStatistic'])
			{
				$listaddon = array('75','128','129','130','131','132','133','134','135','136','137','138','139','140','141','142','143','144','145','146','147','148','149','150','151','152','153','154','155','156','158','159','251','252','266','268','269','270','273','278','279','288','289','302','324','325', '328', '329', '335','336', '366', '367');
				$lookadd = array('0','1','2','3');
				foreach ($listaddon as $pid => $name)
				{
					foreach ($lookadd as $addo => $name) 
					{
						$addon1 = $SQL->query('SELECT * FROM players WHERE id = '.$player->getId().' AND looktype = '.$listaddon[$pid].' AND lookaddons = '.$lookadd[$addo].';')->fetch();
						if($addon1[looktype] == true )
						{
							$finaddon = $addon1[looktype] + $addon1[lookaddons] * 300;
							$playerOutfit .= '<img src="http://otland.net/images/addons/'.$finaddon.'.gif"/>';
						}
					}
				}
 
First of all add pictures with all color combinations possible :)

LOL???

As i know that not necesary and that would be like 528 x 22 (11616) x 2 (23232)

U think im noob?...

Is a easy way something that get the looktype "head", "body", etc..
 
Back
Top