Ok so I applied the changes you suggested joligario and am having the same issue just a little different. Will try and explain a little better this time.
I am attempting to have King Gragnar in The Warrens spawn "a fallen adventurer" to draw power from as he is a Shadowknight. Here is what happens when I engage him:
Mob 1 spawns and is standing
Mob 2 spawns and causes Mob 1 to FD while Mob 2 remains standing
Mob 3 spawns and causes Mob 2 to FD while Mob 3 remains standing
Mob 4 spawns and causes Mob 3 to FD while Mob 4 remains standing
This is where it gets weird
Mob 5 spawns and DOES NOT cause Mob 4 to FD while Mob 5 remains standing.
Subsequent mobs do not cause the previous mob to FD and do not FD themselves.
Here is the code:
Code:
sub EVENT_SPAWN {
my $random_race = quest::ChooseRandom(1,4,6,7,);
my $random_texture = quest::ChooseRandom(1,2);
my $random_weapon = quest::ChooseRandom(1,2,3,7,8,14);
my $random_gender = int(rand(2));
quest::pause(3);
quest::npcgender($random_gender);
quest::npcrace($random_race);
quest::npctexture($random_texture);
quest::wearchange(7, $random_weapon);
quest::setanim(101140, 3);
}
sub EVENT_SIGNAL {
if($signal == 1) { #signal from boss to increase damage if players have not killed corpses
quest::signalwith(101109,2,int(rand(5)))
}
}
sub EVENT_DEATH {
quest::signalwith(101109,3,int(rand(5))) #were signaling back that this corpse has been killed and it will reduce boss damage
}
I am trying to have them FD upon spawn without the need for another mob to "trigger" them FD'ing. Pretty stumped here :/