Jump to content

Safebox password problem


Recommended Posts

Hello!
I haven't been able to solve a problem for a few days, which is a big deal.
When I want to change the password at the warehouse it tells me "the added password is wrong".

 

I noticed that even when I manually changed the data in the safebox after the refresh they became null.

spacer.png
I replaced "safebox" from "db/mysql/player/" and I have the same error.

 

error

syslog db

Dec 25 05:09:08 :: QUERY_RESULT: HEADER_GD_SAFEBOX_LOAD
Dec 25 05:09:13 :: [      350] return 0/0/0 async 0/0/0
Dec 25 05:09:18 :: [      400] return 0/0/0 async 0/0/0
Dec 25 05:09:21 :: QUERY_RESULT: HEADER_GD_SAFEBOX_CHANGE_PASSWORD 0x2aff7580

cmd_general.cpp

Spoiler

ACMD(do_safebox_change_password)
{
	char arg1[256];
	char arg2[256];

	two_arguments(argument, arg1, sizeof(arg1), arg2, sizeof(arg2));

	if (!*arg1 || strlen(arg1)>6)
	{
		ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<창고> 잘못된 암호를 입력하셨습니다."));
		return;
	}

	if (!*arg2 || strlen(arg2)>6)
	{
		ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<창고> 잘못된 암호를 입력하셨습니다."));
		return;
	}

	TSafeboxChangePasswordPacket p;

	p.dwID = ch->GetDesc()->GetAccountTable().id;
	strlcpy(p.szOldPassword, arg1, sizeof(p.szOldPassword));
	strlcpy(p.szNewPassword, arg2, sizeof(p.szNewPassword));

	db_clientdesc->DBPacket(HEADER_GD_SAFEBOX_CHANGE_PASSWORD, ch->GetDesc()->GetHandle(), &p, sizeof(p));
}

 

 

ClientManager.cpp 

https://paste.ubuntu.com/p/YxJWn5h2YT/

 

Thanks a lot!

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
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



  • Similar Content

  • Activity

    1. 13

      Metin2 Closed Beta Content (2003-2004)

    2. 0

      PRESENTATION PAGE [OLDGODSMT2 RELEASE]

    3. 25

      [SRC] Metin2 on LINUX - The Old Metin2 Project

    4. 2

      United/Club/Midgard serverfiles?

    5. 13

      Metin2 Closed Beta Content (2003-2004)

    6. 13

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.