View Single Post
  #1  
Old 07-01-2015, 02:18 PM
JimB_1958
Sarnak
 
Join Date: Mar 2013
Location: Springfield MO
Posts: 66
Default Mobs with random wpn and shields

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)

Code:
$rhand = quest::ChooseRandom(11709,11149,300,10622,11682,11709,10704);
$NPC->ModifyNPCStat("d_melee_texture1", $rhand);
$lhand = quest::ChooseRandom(1493,10771,110,10873,10515,11682,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?
__________________
"We are all on the same team, and I think not enough people realize this."
- Leetsauce
Reply With Quote