• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Light on character's just doesn't turn off.

Tadelho

New Member
Joined
Aug 12, 2007
Messages
38
Solutions
1
Reaction score
2
Hi, there. I've been facing a weird bug with the light around characters in my OTC. They just doesn't turn off.
I've tried it with a brand new compiled version and the problem persists. It seems like it's not a problem with the items configuration itself, since it works fine when they're not with the player. To illustrate my problem, I guess it would be good to show what I mean: (Obs: running a just compiled Otclient from the sources)


I've just logged a character in a dark dungeon, and everything looks fine:
tnc01.png

If I try to light a torch on the ground, on the wall, or any illuminating item separated from my character, it works perfectly:
tnc02.png

If I turn off the light of this mentioned item, it works perfectly aswell.

tnc03.png

But if the item illuminates a player himself, let's say, if I use a torch in my hand or in arrows slot, the light just doesn't turn off anymore (it's valid to any item, not torches only), as you can see in the following images:


tnc04.png
tnc05.png
Even if I drop it on the ground, the light of the item remains on my character.
In this example I've equipped a fire sword, and them dropped it to the ground, and as you can see, the red light is still around my character.

tnc06.png

The only thing that makes the light resets is relogging.

Has anyone noticed any bug like that? Any idea what can I do to solve this problem?
 
You can try to remove light option from the item in your tibia.dat
 
You can try to remove light option from the item in your tibia.dat
I don't want to remove the light effects at all. It wouldn't be a real solution. But hey, probably it's not the problem, since the same items are working properly when they're not enlightening the player.
 
I don't want to remove the light effects at all. It wouldn't be a real solution. But hey, probably it's not the problem, since the same items are working properly when they're not enlightening the player.
Try with lua, movement on dequip to force players have light lvl 1
 
Change on creature.cpp

light.intensity = std::max<uint8>(light.intensity, 3);

to
light.intensity = std::max<uint8>(light.intensity, 0);
 
Back
Top