View Single Post
  #1  
Old 09-16-2010, 04:50 AM
iSlayer iSlayer is offline
Snk for manager
iSlayer's Avatar
Join Date: Feb 2010
Location: Room 7, Era Hotel, Era
Posts: 202
iSlayer will become famous soon enough
Adding exp once baddy killed

Well no matter how much I try I can't seem to get this script working! First the baddies join monster_base with their attributes set, then
PHP Code:
public function onNPCHit(itemIDdamagerangeattackereffectstypepos) {
  if(!
this.hit) {
    
this.hit true;

    
x// Stop movement

    
this.hp += damage;

    if(
this.hp <= 0) {
      
hide();
      
sleep(6);
      
show();
      
Respawn();
    }

    
this.hit false;
  }

  
ShowHP();

I've tried everything in this thread but have had no luck, can someone just post a simple script, not 3 or 4 scripts which will make my baddy work!
__________________
Snk for manager




Quote:
Originally Posted by Admins View Post
Snk for manager of Era
Reply With Quote