Thread: script help?
View Single Post
  #1  
Old 01-23-2014, 11:31 AM
kimura
Hill Giant
 
Join Date: Oct 2011
Posts: 132
Default script help?

im trying to make a boss at 35% become unattackable and change it's name temporarily when it spawns some adds...here is part of the script that isn't working and I cant figure out what to use...

the commented out part is the part not working...

Code:
if($hpevent == 35)
 {
  #$npc->SetTargetable(false);
  #$npc->Tempname("custom name here");
  quest::shout("blah blah");
  quest::spawn2(1241,0,0,($x + 20),$y,$z,$h);
  quest::spawn2(1241,0,0,$x,($y + 20),$z,$h);
  quest::spawn2(1241,0,0,($x + 20),($y + 20),$z,$h);
  quest::spawn2(1241,0,0,($x + -20),$y,$z,$h);
  quest::spawn2(1241,0,0,$x,($y + -20),$z,$h);
  quest::spawn2(1241,0,0,($x + -20),($y + -20),$z,$h);     
 }
I have a signal from the adds to make the boss go back to normal....obviously not working either...

Code:
sub EVENT_SIGNAL
{
 if($signal == 1234)
 {
  #$npc->SetTargetable(true);
  #$npc->Tempname();
    
 }
}
any suggestions would be greatly appreciated!

Thanks,

Kimura
Reply With Quote