Thread: baddie
View Single Post
  #10  
Old 05-12-2009, 12:02 PM
greggiles greggiles is offline
Registered User
greggiles's Avatar
Join Date: Sep 2007
Posts: 149
greggiles has a spectacular aura about
still a bug :/

I have done a bunch a tweaks and stuff to get this baddie to do what i want it to do. but for some reason, when the baddie attacks me, i cant get the clientr.stats_HP to go down

PHP Code:
function damagePlayer()
{
  
temp.randomize intrandom0101 ) );
  
temp.plyr findPlayerthis.plyr );
  if ( 
plyr.hearts )
  {
    if ( 
randomize in 092 | )
    {
      
setCharAni"natrius_ironsword_swing2"NULL );
      
plyr.stats_HP -= intrandom0.5) );    // <------------
    
}
  }
  else if ( 
randomize in 99101 | )
  {
    if ( 
this.health] < this.health] )
    {
      if ( ( 
this.health] + ) < this.health] )
      {
        
healBaddyintrandom0) ) );
      }
      else if ( ( 
this.health] + ) >= this.health] )
      {
        
healBaddythis.health] );
      }
    }
  } 

Last edited by Tigairius; 05-12-2009 at 07:39 PM.. Reason: Please wrap your code in code or php tags so it's easier to read.
Reply With Quote