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); 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 didn't see "d_melee_texture#" listed in the wiki page reference..though, I didn't check the actual code.
Did you try WearChange(material_slot, texture, color)? Use values 7 & 8 for primary/secondary texture slots. |
That worked perfectly !!! Thanks Uleat !!
|
It was a lucky guess :P
|
Well... I doubt it was "lucky"
This was for a war event where lots of undead spawn and terrorize the zone. they weren't very terrifying with no weapons in hand. Thanks again. btw, I love your signature. Being sarcastic, I would add a line to it ;P The bug is not reproducible, so it is likely a hardware or OS problem, or the loose nut behind the keyboard. |
That signature is basically a crash message that we received one day from travis-ci after I pushed a commit.
I'm known for my lack of successful ports from windows to linux..so, it was only natural to assume that I crashed the service :D (It was likely an out of memory error..but, who can say for sure) |
All times are GMT -4. The time now is 10:56 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.