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 01-20-2015, 09:56 PM
Hateborne
Hill Giant
 
Join Date: May 2010
Posts: 125
Question Allow NPC to Emit Light?

Evening ladies/gents/trolls,

I understand that this is a stupid question and has probably been asked before, but I could not find it on a brief search 'n' skim. Is there any way to make an NPC emit light similar to a player? I'm looking to equip sentry NPCs with a torch that emits light (similar to what a torch actually does ), yet the torch equipped NPCs are still pretty much walking shadows.

Any advice/suggestions?

-Hate
Reply With Quote
  #2  
Old 01-20-2015, 11:43 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,594
Default

There is a 'light' column in the npc_types table, I'm not sure if it's implemented or not. From what I see in the source, it doesn't do anything yet. So in the future you may be able to do this (if you can't already).
Reply With Quote
  #3  
Old 01-21-2015, 12:45 AM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

spawn packet: https://github.com/EQEmu/Server/blob...e/mob.cpp#L901

load npc type(?): https://github.com/EQEmu/Server/blob...nedb.cpp#L1735


Not sure if that's the function we use to load npc types..but, it doesn't appear to load the `light` field data.


EDIT: I changed the code to load the field data and it's still not showing. I'll look at this a little more when I get home tonight.
__________________
Uleat of Bertoxxulous

Compilin' Dirty

Last edited by Uleat; 01-21-2015 at 01:28 AM..
Reply With Quote
  #4  
Old 01-21-2015, 02:21 PM
Hateborne
Hill Giant
 
Join Date: May 2010
Posts: 125
Default

Thank you both for the input!

-Hate
Reply With Quote
  #5  
Old 01-21-2015, 07:41 PM
Bohbo
Hill Giant
 
Join Date: Dec 2012
Posts: 116
Default

If you set torch in mainhand and edit the torch's item light features wouldn't that work?
Reply With Quote
  #6  
Old 01-21-2015, 09:10 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

I just pushed an activation of the light field in the npc_types loading code.

This will give any npc type an innate light source..so, use it carefully and sparingly.


I am working on enabling 'by instance' light sources based on equipment and/or other criteria - try not to get carried away with using the
innate light level.


All six clients tested positive for functionality and there is a 'primer' sql script that adds light levels to wisps and fire beetles in the optional
sql files folder (not sure where to get the live data from for all mobs...)


EDIT: Apparently, the server should update all equipment-based light changes..except for non-loading client light source change events.
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #7  
Old 01-23-2015, 11:21 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

I was able to add equipment light functionality to npcs and bots. As soon as I finish out the rest of the mob derived classes that need
special handlers, I'll push the change.


If anyone knows of a source of, or has access to, mob data that contains any innate light values..it would be greatly appreciated!
(I don't even know if mobs can have a non-equipment/-spell based light source..but, our system is setup to allow it.)
__________________
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 02:12 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