Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.