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(itemID, damage, range, attacker, effects, type, pos) {
if(!this.hit) {
this.hit = true;
x = 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!