ko4life-net / ko

Open source development of the game Knight Online. This is a reversed engineered old version of the game aiming to replicate the nostalgic experience we all once had <3
MIT License
52 stars 21 forks source link

Client Uptade Server ini Register Button Active #126

Closed KnightGuard-KO closed 1 year ago

KnightGuard-KO commented 1 year ago

GameProcLogin.cpp 120 - Add Codes

    char szRegistrationSite[_MAX_PATH];
    memset(szRegistrationSite, 0, sizeof(szRegistrationSite));

    GetPrivateProfileString("Join", "Registration site", "", szRegistrationSite, _MAX_PATH, szIniPath);
    m_szRegistrationSite = std::string(szRegistrationSite);

124 - Until Codes

GameProcLogin.h 19 - Add Codes

    std::string     m_szRegistrationSite;

UILogin.cpp 72 - Add Codes

else if (pSender == m_pBtn_Join)
        {
            if (!CGameProcedure::s_pProcLogIn->m_szRegistrationSite.empty())
            {
                ShellExecute(NULL, "open", CGameProcedure::s_pProcLogIn->m_szRegistrationSite.c_str(), NULL, NULL, SW_SHOWNORMAL);
            }

            return true;
        }

80 - Until Codes

Thanks Knight Online His Family

GiRx8 commented 1 year ago

From my understanding this is to add a link to the registration button on login menu via the server.ini in client? why did you submit this as an issue?

KnightGuard-KO commented 1 year ago

My Server.ini Example

[Join] Registration site=http://www.yourname.com/register.php

KnightGuard-KO commented 1 year ago

After Entering the Codes That I Have Given Properly Log in to the Game Click on the Register Button

GiRx8 commented 1 year ago

Yeah I get that, but why didn’t you submit the code instead of opening an issue?

GiRx8 commented 1 year ago

i'll test this and add it for you.

KnightGuard-KO commented 1 year ago

thanks man

I'm glad I could help