Jump to content
Maintenance ×
×
×
  • Create New...
  • 0

[Strange]Character delete


FlorinMarian

Question

  • 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

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0
  • 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

  • 0
  • 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

  • 0
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

  • 0

I tested here, I was guild leader, deleted it and deleted everything, I believe there must be some bug in your source.

Use:

Source Cliente Novaline

Source DB/Game Mainline

Att

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
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 4

      problem Dargon Soul Changre Attribute

    2. 41

      Global Chat

    3. 4

      problem Dargon Soul Changre Attribute

    4. 2

      Startup Loading Window Library

    5. 28

      Ludus2: metin2 fan project

    6. 44

      Inbuild GR2 Animation

    7. 6

      Minimap Mob proto

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.