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

Joined
Aug 12, 2007
Messages
38
Best answers
1
Likes
2
#1
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?
 
Joined
Aug 12, 2007
Messages
38
Best answers
1
Likes
2
#3
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.
 

elnelson

Lunaria World Dev
Joined
Jun 20, 2009
Messages
425
Best answers
2
Likes
21
Location
México
#4
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
 

BahamutxD

Jack of all trades, master of none
Joined
Jun 8, 2009
Messages
467
Best answers
10
Likes
130
Location
Spain
#5
Change on creature.cpp

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

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