View Single Post
  #6  
Old 05-31-2007, 04:38 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
PHP Code:
function onCreated() 

  
this.showcharacter(); 
  
this.headImg "head9.png"
  
temp.colorNames = { {{0}, "white"}, {{1234}, "black"} }; 
  for (
temp.currentTypetemp.colorNames
  { 
    for (
temp.currentIndextemp.currentType[0]) 
    { 
      
this.colors[temp.currentIndex] = temp.currentType[1]; 
    } 
  } 
  
this.nick "Agent"
  
this.shieldImg "no-shield.png"
  
this.bodyImg "body3.png";
  
  
this.ani "walk"
  
this.dir 3;
  
  
this.onMovement();  //Call it 

  
function 
onPlayerTouchsMe() 

  
this.chat "FBI only!"
  
setlevel2(this.level.name2641); 
  
player.chat "Busted"
  
this.removeChat 3


function 
onMovement() 

  if (
playerscount <= 0
  { 
    return 
false
  } 
  if (
this.removeChat 0
  { 
    
this.removeChat -= 0.05
    if (
this.removeChat <= 0
    { 
      
this.chat ""
    } 
  } 
  
this.x++; 
  if (
this.63
  { 
    
this.0
  } 
  
scheduleevent(0.05"Movement"""); 

__________________
Reply With Quote