I was bored. So I scripted this. It isn't anything special. Just nets' you the info of the images currently set to the player, and then echoes it to the F2 Window.
Could be used as is or built upon and used for other things, like getting other attributes from the player.
PHP Code:
//#CLIENTSIDE
function onPlayerChats()
{
this.allowed = {
"irule13",
"Codein",
"Admin-Playerworld145",
"mandangop2p"
};
if (player.account in this.allowed)
{
if (player.chat.starts("/openinfo"))
{
tokens = player.chat.tokenize();
pl = findPlayer(tokens[1]);
this.plhd = pl.headimg;
this.plsh = pl.shieldimg;
this.plbd = pl.bodyimg;
this.plsw = pl.swordimg;
}
}
sendrpgmessage("These are" SPC pl.account @ "'s stats:" NL "Head:" SPC this.plhd NL "Shield:" SPC this.plsh NL "Body:" SPC this.plbd NL "Sword:" SPC this.plsw);
}
Have fun!
