Hi there, could any of you help me out? Im trying to give the spawned npc's an equiped weapon.. like when (example) Thrall spawns that he is carrying a weapon instead of standing there/fighting with his fists.
PHP Code:
function Guard_OnCombat (pUnit, Event)
pUnit:SendChatMessage(12, 0, "Intruders! Slay them all!")
pUnit:FullCastSpell(62614)
end
function Guard_OnLeaveCombat (pUnit, Event)
pUnit:RemoveEvents()
end
function Guard_OnDie (pUnit, Event)
pUnit:SpawnCreature(57799, 4506.593750, -2333.815186, 1138.054565, 1.403121, 989, 360000)
pUnit:SpawnCreature(57800, 4504.263184, -2235.091309, 1138.054321, 1.436895, 989, 360000)
pUnit:SpawnCreature(57801, 4508.484863, -2335.693848, 1138.064565, 1.429041, 989, 360000)
pUnit:RemoveEvents()
end
RegisterUnitEvent (57803, 1, "Guard_OnCombat")
RegisterUnitEvent (57803, 2, "Guard_OnLeave")
RegisterUnitEvent (57803, 3, "Guard_OnDie")
This is what I currently have, when an npc dies (in this case Eternal Chapion referred as "Guard) 3 other guys spawn in front of the boss to enounter it before the player's do, but when they spawn they are always bare handed.. any suggestions? 
Thanks alot in advance
EDIT: Now when the npc dies, the others wont spawn.. didnt edit anything and Ive been looking on the internet but cant find any kind of the same problems could anyone help me out here? :s