Jump to content

[Strange]Character delete


Recommended Posts

  • Premium

Hello !

I've found today a strange bug on a metin2 server.

I had a character where I was guild leader.

I've deleted the character and created a new one (isn't important if had same name or not).

When I've tried to create again same guild name, surprise: guild name wasn't removed same time with owner character.

Is it normal ? (to be guild without leader).

Thanks !

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Premium
9 minutes ago, FlorinMarian said:

Hello !

I've found today a strange bug on a metin2 server.

I had a character where I was guild leader.

I've deleted the character and created a new one (isn't important if had same name or not).

When I've tried to create again same guild name, surprise: guild name wasn't removed same time with owner character.

Is it normal ? (to be guild without leader).

Thanks !

Of course it is, The database string on guild remains, and it' still linked to its owner even tho he doesn't exist anymore.

You should link the guild deletion to the char deletion from its guild, and the guild itself if hes the leader.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Premium
Chiar acum, Syreldar a spus:

Of course it is, The database string on guild remains, and it' still linked to its owner even tho he doesn't exist anymore.

You should link the guild deletion to the char deletion from its guild, and the guild itself if hes the leader.

Can you help me doing this please ? :)

I just know basically functions in C#, i'm not a developer.

Link to comment
Share on other sites

2 hours ago, FlorinMarian said:

Can you help me doing this please ? :)

I just know basically functions in C#, i'm not a developer.

Then do not make server anymore, unless you have the will to learn.

 

//ClientManagerPlayer.cpp
//Search
		snprintf(queryStr, sizeof(queryStr), "DELETE FROM guild_member WHERE pid=%d", pi->player_id);
		CDBManager::instance().AsyncQuery(queryStr);
// Add above
		snprintf(queryStr, sizeof(queryStr), "DELETE FROM guild WHERE id=%d", pi->player_id);
		CDBManager::instance().AsyncQuery(queryStr);

Not tested

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.