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

NPC color helper

Zoriath

New Member
Joined
Mar 26, 2008
Messages
1,496
Reaction score
4
I've seen some before, but can't find them anymore, so I made my own one ;)

here it is:
npchelp.png


And yes, I know, the colors aren't perfectly aligned, etc. But that doesn't matter right? :p

SORRY! NUMBER 88 ISN'T BLACK, IT'S BLUE!!! MY OUTFIT PANEL DIDN'T WORK VERY WELL, SO SORRY!


I hope it helps ;)

Feel free to add rep++ xD

Kind regards,

Zoriath
 
Last edited:
This is neither Lua nor XML. Not quite sure where this fit though, pretty busy atm. But will report it for further help.
 
Well didn't really know where to post, and it was for NPC's so posted it in that board.
 
This was made by Alreth @ OTFans, updated with JavaScript by me.

PHP:
<script language="javascript">
	function highLight(id, n) {
		var c = new Array("#000000", "#ffffff");
		id.style.background = c[n];
		id.style.color = c[1-n];
		id.style.borderColor = c[n];
	}
</script>

<table>
<?php
$values = array('00', '32', '65', '98', 'cb', 'fe'); 
$no = 0; 
print '<tr><th width="100px">Number</th><th width="100px">Color HEX</th><th colspan="2" width="100px">Color</th></tr>'; 
for ($r = 0; $r < 6; $r++) { 
    for ($g = 0; $g < 6; $g++) { 
        for ($b = 0; $b < 6; $b++) { 
            $color = "#".$values[$r].$values[$g].$values[$b]; 
            print '<tr id="'.$no.'" onMouseOver="highLight(this, 0);" onMouseOut="highLight(this, 1)"><td align="center">'.$no.'</td><td align="center">'.$color.'</td><td bgcolor="'.$color.'" style="border-size: 3px; border-style: solid;" width="100px">&nbsp;</td></tr>'; 
            $no++; 
        } 
    } 
}  
?>
</table>


Also yours isnt correct. At 132 you have brown, while e.g. this one is green: http://ot.rookira.se/www/doSendAnimatedText.php
 
Last edited:
This was made by Alreth @ OTFans, updated with JavaScript by me.

PHP:
<script language="javascript">
	function highLight(id, n) {
		var c = new Array("#000000", "#ffffff");
		id.style.background = c[n];
		id.style.color = c[1-n];
		id.style.borderColor = c[n];
	}
</script>

<table>
<?php
$values = array('00', '32', '65', '98', 'cb', 'fe'); 
$no = 0; 
print '<tr><th width="100px">Number</th><th width="100px">Color HEX</th><th colspan="2" width="100px">Color</th></tr>'; 
for ($r = 0; $r < 6; $r++) { 
    for ($g = 0; $g < 6; $g++) { 
        for ($b = 0; $b < 6; $b++) { 
            $color = "#".$values[$r].$values[$g].$values[$b]; 
            print '<tr id="'.$no.'" onMouseOver="highLight(this, 0);" onMouseOut="highLight(this, 1)"><td align="center">'.$no.'</td><td align="center">'.$color.'</td><td bgcolor="'.$color.'" style="border-size: 3px; border-style: solid;" width="100px">&nbsp;</td></tr>'; 
            $no++; 
        } 
    } 
}  
?>
</table>


Also yours isnt correct. At 132 you have brown, while e.g. this one is green: http://ot.rookira.se/www/doSendAnimatedText.php

132 is really brown, look at that site. Maybe it's outdated, idk but 0 isn't black either.

ooo I see, it's for doSendAnimatedText, not npc's, will update the title ^^
 
bampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbampbamp
 
Back
Top