Jump to content

Recommended Posts

  • Premium

When some one trie to login one account and if that acount is ON, online player will get this msg "´Ù¸¥ ÄÄÇ»ÅÍ¿¡¼­ ·Î±×ÀÎ ÇÏ¿© Á¢¼ÓÀ» Á¾·á ÇÕ´Ï´Ù" from desc.cpp
and then he will be disconect.

Is there any way to make some quest function to when DelayedDisconnect  begin?

 

Free Hugs for all

 

if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Premium

desc.cpp

 

 


 

void DESC::DisconnectOfSameLogin()
{
    if (GetCharacter())
    {
        if (m_pkDisconnectEvent)
            return;

        GetCharacter()->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("´Ù¸¥ ÄÄÇ»ÅÍ¿¡¼­ ·Î±×ÀÎ ÇÏ¿© Á¢¼ÓÀ» Á¾·á ÇÕ´Ï´Ù."));
        DelayedDisconnect(5);
        //in here
    }
    else
    {
        SetPhase(PHASE_CLOSE);
    }
}

 

 

 

 

How can i add one flag //in here with account ID?  like this -> SetEventFlag("AccoundID",1)

The ideia is, b4 player get kick, server create one flag with is account ID. 

 

Then i can use in quest:

 

When login with game.get_event_flag("account_id") == xxxxx begin

if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

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.