Welcome to Metin2Resources

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Level Announcement System

carpiciyim

Member
Joined
Jul 21, 2025
Messages
109
Reaction score
32
Points
28
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
 

Latest posts

355Threads
755Messages
157Members
ggamerLatest member
Back
Top