Jump to content

Onde criar a conta ?


F-Caneiras
 Share

Recommended Posts

Boas estive a instalar um mysql de umas serverfiles 

para começar usei este toturial 

depois deter criado o mysql e ter entrado no navicate adicionei as pastas 

image.png

 

depois de tudo criado ao ir criar uma conta para teste deparei-me com isto 

 

image.png

dentro dos outros locais está assim 

image.png

image.png

o unico que encontrei com o account foi aqui 

image.png

mas au tentar abrir dá este erro 

image.png

 

o mysql que usei para testar foi este 

 

 

Edited by Caneiras
Link to comment
Share on other sites

Vai abrindo e procura um que tenha os campos "login", "password", "social_id"

Provavelmente será o admin_account

Caso não encontres mesmo e tenhas a source, vai a game/input_auth.cpp

Procura por:

DBManager::instance().ReturnQuery(QID_AUTH_LOGIN

Terás algo deste género:

DBManager::instance().ReturnQuery(QID_AUTH_LOGIN, dwKey, p,
				"SELECT '%s',password,securitycode,social_id,id,status,availDt - NOW() > 0,"
				"UNIX_TIMESTAMP(silver_expire),"
				"UNIX_TIMESTAMP(gold_expire),"
				"UNIX_TIMESTAMP(safebox_expire),"
				"UNIX_TIMESTAMP(autoloot_expire),"
				"UNIX_TIMESTAMP(fish_mind_expire),"
				"UNIX_TIMESTAMP(marriage_fast_expire),"
				"UNIX_TIMESTAMP(money_drop_rate_expire),"
				"UNIX_TIMESTAMP(create_time)"
				" FROM account WHERE login='%s'",

				szPasswd, szLogin);

Sendo que o que está entre FROM e WHERE é o nome da tabela, neste caso account

Link to comment
Share on other sites

Ok vou ver na surce 

esse que falaste as cima acho que não também não aprece nenhum com esses caminho 

image.png

 

na  surce está assim 

 

  

	// CHANNEL_SERVICE_LOGIN
	if (Login_IsInChannelService(szLogin))
	{
		sys_log(0, "ChannelServiceLogin [%s]", szLogin);

		DBManager::instance().ReturnQuery(QID_AUTH_LOGIN, dwKey, p,
				"SELECT '%s',password,securitycode,social_id,id,status,availDt - NOW() > 0,"
				"UNIX_TIMESTAMP(silver_expire),"
				"UNIX_TIMESTAMP(gold_expire),"
				"UNIX_TIMESTAMP(safebox_expire),"
				"UNIX_TIMESTAMP(autoloot_expire),"
				"UNIX_TIMESTAMP(fish_mind_expire),"
				"UNIX_TIMESTAMP(marriage_fast_expire),"
				"UNIX_TIMESTAMP(money_drop_rate_expire),"
				"UNIX_TIMESTAMP(create_time)"
				" FROM account WHERE login='%s'",

				szPasswd, szLogin);
	}
	// END_OF_CHANNEL_SERVICE_LOGIN

 

Edited by Caneiras
Link to comment
Share on other sites

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
 Share

×
×
  • Create New...