Jump to content

Just start patcher


Recommended Posts

  • Replies 16
  • Created
  • Last Reply

Top Posters In This Topic

42 minutes ago, Dobrescu Sebastian said:

I already gave you the topic for argument start, use your brain.

don't speak about brain when you are brain dead

ON:

search in userinterface.cpp

int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{

add under

	if (strstr(lpCmdLine, "anything_you_want") == 0)
		return 0;

just like in that tutorial

and in your autopatcher you might have something like this

Start("metin2client.exe");

change it to

Start("metin2client.exe", "anything_you_want");

 

Link to comment
Share on other sites

  • Premium

The same answer i gave to him. Who is brain dead now ?

xDiiZeRx 

After you finish the source part you go to webhost > metin2torrent.config.xml, search cur_patcher_path="game.bin" and there you put your launcher, -argument .

 

+ go to input.cpp

void CInputProcessor::Version(LPCHARACTER ch, const char* c_pData)

and Replace with : 

void CInputProcessor::Version(LPCHARACTER ch, const char* c_pData)
{
   if (!ch)
      return;

   TPacketCGClientVersion * p = (TPacketCGClientVersion *) c_pData;

        if (strcmp(p->filename, "game.bin") && ch->GetGMLevel() !=GM_IMPLEMENTOR)

        {
   DBManager::instance().Query("INSERT INTO log.wait_hack SET login='%s', nickname='%s'",
        ch->GetDesc()->GetAccountTable().login, ch->GetName());
          return;
 
       }
       sys_log(0, "VERSION: %s %s %s", ch->GetName(), p->timestamp, p->filename);
       ch->GetDesc()->SetClientVersion(p->timestamp); 
}

Go to log and execute :

DROP TABLE IF EXISTS `wait_hack`;
CREATE TABLE `wait_hack` (
  `login` varchar(50) COLLATE big5_bin DEFAULT NULL,
  `nickname` varchar(50) COLLATE big5_bin DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_bin;

 

And you will get the player name who tried to enter without patcher.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.