Could do something like:
PHP Code:
function onPlayerChats(){
if(player.chat.starts("set")){
temp.tokens = player.chat.tokenize();
if(temp.tokens[1].starts("personal")){
switch(temp.tokens[0]){
case "setshield":
getShieldFile(temp.tokens[1].substring(8));
break;
}
}
}
}
function getShieldFile(temp.id){
player.shield = "Classic_personal_shield_"@player.account@"-"@id@".png";
}
Then all you'd have to type would be:
It's not a hard script. Why not have it this way instead of typing out a massive file name?