Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 10-08-2016, 06:20 AM
superemu
Sarnak
 
Join Date: May 2014
Posts: 79
Default Trying to add light to a zone

I want to add some light to a dark part of one of the zones. I tried adding an invisible npc with light field set to 1 and carrying a gloomingdeep lantern. The npc doesn't seem to light up the area as my character does. If I make the npc visible again, I can see that his body is lit like he has a lantern, but the landscape around him is still dark. Am I doing something wrong?

Is there another way to add lighting to a zone? I can't seem to find any guides on this.
Reply With Quote
  #2  
Old 10-08-2016, 07:14 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

The field in the database is a "Light Type" and is not a proportional ratio to its brightness.


These are the values that you want to go into that field: https://github.com/EQEmu/Server/blob...t_source.h#L37

And those correlate these values: https://github.com/EQEmu/Server/blob...t_source.h#L57

..using these comparisons: https://github.com/EQEmu/Server/blob...source.cpp#L25


I have traded 'light' items to roaming mobs before and it does affect a change.
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #3  
Old 10-09-2016, 08:56 AM
superemu
Sarnak
 
Join Date: May 2014
Posts: 79
Default

Thank you for your response. I'll mess around with those values. I also just saw an orc walking with a torch and he was definitely lighting up the landscape. So, now I have something more to work with.
Reply With Quote
  #4  
Old 10-09-2016, 09:56 AM
superemu
Sarnak
 
Join Date: May 2014
Posts: 79
Default

Thank you, thank you, Uleat! Setting the light field to 6 gave me exactly what I want without any item equipped! You are the best!
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 06:19 PM.


 

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