Premium FlorinMarian 122 Posted June 16, 2017 Premium Share Posted June 16, 2017 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 ! Shared Hosting | Domain names | Dedicated Servers | VPS HAZI.ro Link to comment Share on other sites More sharing options...
Premium Syreldar 1875 Posted June 16, 2017 Premium Share Posted June 16, 2017 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 More sharing options...
Premium FlorinMarian 122 Posted June 16, 2017 Author Premium Share Posted June 16, 2017 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. Shared Hosting | Domain names | Dedicated Servers | VPS HAZI.ro Link to comment Share on other sites More sharing options...
Ashok.N 4 Posted June 16, 2017 Share Posted June 16, 2017 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 More sharing options...
MORTE 78 Posted June 16, 2017 Share Posted June 16, 2017 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now