View Single Post
  #7  
Old 05-31-2007, 04:42 PM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Quote:
Originally Posted by xAndrewx View Post
PHP Code:
function onCreated()
{
  
this.showcharacter();
  
this.headImg = "head9.png";
  
temp.colorNames = { {{0}, "white"}, {1, 2, 3, 4}, "black"} };
  for (
temp.currentType: temp.colorNames)
  {
    for (
temp.currentIndex: temp.currentType[0])
    {
      
this.colors[temp.currentIndex] = temp.currentType[1];
    }
  }
  
this.nick = "Agent";
  
this.shieldimg = "no-shield.png";
  
this.ani = "walk";

  
this.onMove();  //Call it
}
function 
onPlayerTouchsMe()
{
  
this.chat = "FBI only!";
  
setlevel2(this.name, 26, 41);
  
player.chat = "Busted";
  
this.removeChat = 3;
}
function 
onMove()
{
  if (
playerscount <= 0)
  {
    return 
false;
  }
  if (
this.removeChat > 0)
  {
    
this.removeChat -= 0.05;
    if (
this.removeChat <= 0)
    {
      
this.chat = "";
    }
  }
  
this.x++;
  if (
this.x > 63)
  {
    
this.x = 0;
  }
  
schedulevent(0.05, "Move", "");
} 
xD nice conversion, but it dosen't work lol
__________________
**FLIP OUT**
Reply With Quote