What's new

New messages New topics Systems Serverfiles 3D Models Web Scripting

Level Announcement System

carpiciyim

Member
Joined
Jul 21, 2025
Messages
109
Reaction
114
Points
0
1753093345832.png

Search
Code:
        case POINT_LEVEL:
            if ((GetLevel() + amount) > gPlayerMaxLevel)
                return;

            SetLevel(GetLevel() + amount);
            val = GetLevel();

            sys_log(0, "LEVELUP: %s %d NEXT EXP %d", GetName(), GetLevel(), GetNextExp());

            PointChange(POINT_NEXT_EXP,    GetNextExp(), false);

add below
Code:
#ifdef LEVEL_DUYURU_SISTEMI
std::set<int> notifyLevels = {15, 30, 55, 75, 99};
if (notifyLevels.count(val))
{
    char levelduyuru[QUERY_MAX_LEN];
    snprintf(levelduyuru, sizeof(levelduyuru), "<Bilgi>: %s isimli oyuncumuz %u seviye olmuştur, tebrikler!", GetName(), GetLevel());
    BroadcastNotice(levelduyuru);
}
#endif
 
shape1
shape2
shape3
shape4
shape5
shape6
Top