Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Safebox password problem


xGetHigh

Question

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 xGetHigh (see edit history)
Link to post

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.