Jump to content

Recommended Posts

  • Active Member

You dont have to change it to PID. You can simply update the messenger_list by changing the last name with the new one both on account and companion rows.

Edited by Braxy

As long as I'll be a threat for you , i will always be your target :3

  • Forum Moderator
On 2/29/2020 at 12:56 PM, iFreakTime~.~ said:

And if i change my name directly from navicat? I think is better using pid instead of name

There's no reason to use pids instead of names, for doing that you've to re-code the whole structure of the system.

Ymir did when you change your name to delete all fields from table that match with the old name (account or companion).

So in this case, instead of deleting the whole list you can simply update it.

  • Srcs/Server/game/src/questlua_pc.cpp

 

This is the hidden content, please

Or:

		std::auto_ptr<SQLMsg> pUpdate(DBManager::instance().DirectQuery(
			"UPDATE messenger_list SET "
			"account = CASE WHEN account = '%s' THEN '%s' ELSE account END, "
			"companion = CASE WHEN companion = '%s' THEN '%s' ELSE companion END", 
				ch->GetName(), szName, ch->GetName(), szName);

 

Edited by VegaS™
  • Metin2 Dev 13
  • Love 9

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.