Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 07-01-2015, 02:31 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

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.
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #3  
Old 07-01-2015, 02:41 PM
JimB_1958
Sarnak
 
Join Date: Mar 2013
Location: Springfield MO
Posts: 66
Default

That worked perfectly !!! Thanks Uleat !!
__________________
"We are all on the same team, and I think not enough people realize this."
- Leetsauce
Reply With Quote
  #4  
Old 07-01-2015, 05:47 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

It was a lucky guess :P
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #5  
Old 07-03-2015, 03:35 PM
JimB_1958
Sarnak
 
Join Date: Mar 2013
Location: Springfield MO
Posts: 66
Default

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.
__________________
"We are all on the same team, and I think not enough people realize this."
- Leetsauce
Reply With Quote
  #6  
Old 07-03-2015, 04:10 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

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

(It was likely an out of memory error..but, who can say for sure)
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:48 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3