Jump to content

Recommended Posts

Hi soo I am tring compile the game but i have this errors.

char.cpp: In member function 'void CHARACTER::PointsPacket()':
char.cpp:1612:14: error: 'POINT_PRESTIGE_LEVEL' was not declared in this scope
  pack.points[POINT_PRESTIGE_LEVEL] = GetPrestigeLevel();
              ^

So i go to mi char.cpp and I have this

void CHARACTER::PointsPacket()
{
    if (!GetDesc())
        return;
    
    TPacketGCPoints pack;
    pack.header    = HEADER_GC_CHARACTER_POINTS;
    pack.points[POINT_LEVEL] = GetLevel();
    pack.points[POINT_PRESTIGE_LEVEL] = GetPrestigeLevel();
    pack.points[POINT_EXP] = GetExp();
    pack.points[POINT_NEXT_EXP] = GetNextExp();
    pack.points[POINT_HP] = GetHP();
    pack.points[POINT_MAX_HP] = GetMaxHP();
    pack.points[POINT_SP] = GetSP();
    pack.points[POINT_MAX_SP] = GetMaxSP();
    pack.points[POINT_GOLD] = GetGold();
    pack.points[POINT_STAMINA] = GetStamina();
    pack.points[POINT_MAX_STAMINA] = GetMaxStamina();
    for (int i = POINT_ST; i < POINT_MAX_NUM; ++i)
        pack.points = GetPoint(i);
    
    GetDesc()->Packet(&pack, sizeof(TPacketGCPoints));
    
    if (!IsAcceOpen())
    {
        LPITEM item;
        for (int j = 0; j < INVENTORY_AND_EQUIP_SLOT_MAX; ++j)
        {
            if ((item = GetInventoryItem(j)))
                if (item->GetType() == ITEM_COSTUME && item->GetSubType() == COSTUME_ACCE && item->GetSocket(0) == 1)
                    item->SetSocket(0, 0);
        }
    }

What is wrong? 

Link to comment
https://metin2.dev/topic/8530-source-questions/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.