EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   Trying to add light to a zone (https://www.eqemulator.org/forums/showthread.php?t=40952)

superemu 10-08-2016 06:20 AM

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.

Uleat 10-08-2016 07:14 PM

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.

superemu 10-09-2016 08:56 AM

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. :)

superemu 10-09-2016 09:56 AM

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!


All times are GMT -4. The time now is 03:59 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.