View Single Post
  #1  
Old 03-26-2007, 12:11 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Getting Player Images

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


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote