JimB_1958
07-01-2015, 02:18 PM
I been trying something kind of odd. I can't seem to get it to work. Thought maybe there was an easier way.
I want to spawn a mob, then give it random items in both hands.
I tried this: (both in spawn event and in a timer)
$rhand = quest::ChooseRandom(11709,11149,300,10622,11682,11 709,10704);
$NPC->ModifyNPCStat("d_melee_texture1", $rhand);
$lhand = quest::ChooseRandom(1493,10771,110,10873,10515,116 82,11709);
$NPC->ModifyNPCStat("d_melee_texture2", $lhand);
Didnt work.
I don't want to use $npc->AddItem(10100, 1); because I dont want the NPC to actually have anything to loot.
Any ideas?
I want to spawn a mob, then give it random items in both hands.
I tried this: (both in spawn event and in a timer)
$rhand = quest::ChooseRandom(11709,11149,300,10622,11682,11 709,10704);
$NPC->ModifyNPCStat("d_melee_texture1", $rhand);
$lhand = quest::ChooseRandom(1493,10771,110,10873,10515,116 82,11709);
$NPC->ModifyNPCStat("d_melee_texture2", $lhand);
Didnt work.
I don't want to use $npc->AddItem(10100, 1); because I dont want the NPC to actually have anything to loot.
Any ideas?