Hi
I'm trying to make this idea works only on client side. So basically I want to give free "utevo lux" for premium acc and it can be visible only for the player himself.
I've tried this but nothing happens.. I'm using the Otclient V8 sources by the way
creature.cpp
I'm trying to make this idea works only on client side. So basically I want to give free "utevo lux" for premium acc and it can be visible only for the player himself.
I've tried this but nothing happens.. I'm using the Otclient V8 sources by the way
creature.cpp
C++:
// local player always have a minimum light in complete darkness
if (isLocalPlayer()) {
LocalPlayerPtr player = g_game.getLocalPlayer();
if (player->isPremium() == true)
{
light.intensity = std::max<uint8>(light.intensity, 6);
}
else {
light.intensity = std::max<uint8>(light.intensity, 2);
}
if (light.color == 0 || light.color > 215)
light.color = 215;
}