• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling [C++] TFS 0.3.6 - 8.60 I would like a casting system like the one at baiak-ilusion.com.br that gives 25% experience to players who start a casting.

Hiho!

Code:
https://github.com/mattyx14/otxserver/blob/4679e55ae498df394e615a6b123fa7570d958c6c/config.lua#L34C1-L34C10
Code:
https://github.com/mattyx14/otxserver/blob/4679e55ae498df394e615a6b123fa7570d958c6c/config.lua#L35
Code:
https://github.com/mattyx14/otxserver/blob/4679e55ae498df394e615a6b123fa7570d958c6c/sources/configmanager.cpp#L125
Code:
https://github.com/mattyx14/otxserver/blob/4679e55ae498df394e615a6b123fa7570d958c6c/sources/configmanager.cpp#L126
Code:
https://github.com/mattyx14/otxserver/blob/4679e55ae498df394e615a6b123fa7570d958c6c/sources/configmanager.h#L367
Code:
https://github.com/mattyx14/otxserver/blob/4679e55ae498df394e615a6b123fa7570d958c6c/sources/configmanager.h#L187
Code:
https://github.com/mattyx14/otxserver/blob/4679e55ae498df394e615a6b123fa7570d958c6c/sources/player.cpp#L4417

C++:
    if(g_config.getBool(ConfigManager::CAST_EXP_ENABLED))
    {
        if(client->isBroadcasting() && client->getPassword().empty())
        {
            uint32_t extraExpCast = g_config.getNumber(ConfigManager::CAST_EXP_PERCENT);
            gainExp *= 1 + ((extraExpCast && extraExpCast > 0) ? (extraExpCast/100.0) : 0);   
        }
    }
 
Back
Top