A more efficient way to write a taylor script might be like:
PHP Code:
function onCreated() {
// Don't know the order of the partnames in the colors[] array
// You'll have to find this bit out for yourself.
this.partslist = { "skin", "coat", "sleeves", "shoes", "belt" };
}
function onPlayerChars() {
if(player.chat.starts("/set")) {
temp.tokens = player.chat.substring(4,-1).tokenize();
if(this.partslist.index(temp.tokens[0]) >= 0) {
player.colors[this.partslist.index(temp.tokens[0])] = temp.tokens[1];
} else {
player.chat = "Invalid Body Part";
}
}
}