• 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!

OTClient Automatic light for Premium Accounts

Jordan422

New Member
Joined
Mar 12, 2013
Messages
4
Reaction score
2
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
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;
    }
 
Back
Top