TrinityCore icon indicating copy to clipboard operation
TrinityCore copied to clipboard

Realm First! Grand Crusader Achievement, achieved multiple times.

Open shlomi1515 opened this issue 15 years ago • 14 comments

Hello

This achievemt seems to be working to good Today 2 guilds got that achievment + title and it should be only the first guild

any fix? So I can remove to the second guild the achieve+title Because if I do it without a fix they can get it again

Hash:e3f4cca534752851775f5174901fb8a43460cdbb db: 335.11.41+

shlomi1515 avatar Sep 09 '11 22:09 shlomi1515

confirm . same hash

Authority-zz avatar Sep 09 '11 23:09 Authority-zz

yep i remember the Realm First in EOE was the same. don't remember if its fixed or not.

Bezo avatar Sep 09 '11 23:09 Bezo

same with sathardion realm first, but if i remeber it well, at my server i had no problems with naxxramas realms 1st

misterwook avatar Sep 09 '11 23:09 misterwook

misterwook, you right Realm First! Conqueror of Naxxramas and Realm First! Obsidian Slayer didn't had that problem.

shlomi1515 avatar Sep 09 '11 23:09 shlomi1515

nono, naxxramas was fine at my server, obsidian slayer was bugged, when it opened i had about 12 guilds getting it

misterwook avatar Sep 10 '11 00:09 misterwook

oh well in the server I play these achieves were fine, we got that problem with EOE and now Grand Crusader... I hope there is a fix for that cuz if not it will ruin the value of the achievement..

shlomi1515 avatar Sep 10 '11 00:09 shlomi1515

I also have a patch for this problem https://github.com/darkman1983/TrinityCore/commit/cffbd51e35bcca8c75e7316ac794e930b1d966a9

BroodWyrm avatar Sep 10 '11 07:09 BroodWyrm

Would it be possible to make a core-side edit? Thanks in advance.

Edinaka avatar Sep 18 '11 20:09 Edinaka

Why is this issue closed ?

durrrr avatar May 19 '12 08:05 durrrr

havent had this happen

Star-lion avatar May 22 '12 13:05 Star-lion

Look how many confirmed...

durrrr avatar May 23 '12 07:05 durrrr

yea and the last post was 8 months ago. i havent been able to reproduce this

Star-lion avatar May 23 '12 12:05 Star-lion

Actaully this happened on our server multiple times, with EOE realm first (3 guilds had it) and Grand Crusader (2 guilds had it), also the same issue with Algalon (Two months after realm first, another guild got it).

rev 7e62c34

EnteringCombat avatar May 23 '12 18:05 EnteringCombat

Well this is not a fix this is to remove the titles from players who dont have have achievements but first you have to remove the achievements from all players except for the true realm first groups to do this you need to find the unix time stamp of the true realm firsts and then delete achievements which dont have that same timestamp in date field then run the below (preferably when servers offline otherwise titles get resaved on logout if players are online when run this however will reset currently selected title for all players also.

    -- Magic Seeker
    UPDATE `characters` SET knownTitles = CONCAT(SUBSTRING_INDEX(knownTitles,' ',2),' ',CAST(CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(knownTitles,' ',3),' ',-1) AS UNSIGNED)|16777216 AS CHAR),' ',SUBSTRING_INDEX(knownTitles,' ',-4)) WHERE guid IN (SELECT guid FROM character_achievement WHERE achievement=1400);
    UPDATE `characters` SET knownTitles = CONCAT(SUBSTRING_INDEX(knownTitles,' ',2),' ',CAST(CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(knownTitles,' ',3),' ',-1) AS UNSIGNED)&~16777216 AS CHAR),' ',SUBSTRING_INDEX(knownTitles,' ',-4)),ChosenTitle=0 WHERE guid NOT IN (SELECT guid FROM character_achievement WHERE achievement=1400);

    -- Conqueror of Naxxramas
    UPDATE `characters` SET knownTitles = CONCAT(SUBSTRING_INDEX(knownTitles,' ',2),' ',CAST(CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(knownTitles,' ',3),' ',-1) AS UNSIGNED)|67108864 AS CHAR),' ',SUBSTRING_INDEX(knownTitles,' ',-4)) WHERE guid IN (SELECT guid FROM character_achievement WHERE achievement=1402);
    UPDATE `characters` SET knownTitles = CONCAT(SUBSTRING_INDEX(knownTitles,' ',2),' ',CAST(CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(knownTitles,' ',3),' ',-1) AS UNSIGNED)&~67108864 AS CHAR),' ',SUBSTRING_INDEX(knownTitles,' ',-4)),ChosenTitle=0 WHERE guid NOT IN (SELECT guid FROM character_achievement WHERE achievement=1402);

    -- Obsidian Slayer
    UPDATE `characters` SET knownTitles = CONCAT(SUBSTRING_INDEX(knownTitles,' ',3),' ',CAST(CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(knownTitles,' ',4),' ',-1) AS UNSIGNED)|1024 AS CHAR),' ',SUBSTRING_INDEX(knownTitles,' ',-3)) WHERE guid IN (SELECT guid FROM character_achievement WHERE achievement=456);
    UPDATE `characters` SET knownTitles = CONCAT(SUBSTRING_INDEX(knownTitles,' ',3),' ',CAST(CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(knownTitles,' ',4),' ',-1) AS UNSIGNED)&~1024 AS CHAR),' ',SUBSTRING_INDEX(knownTitles,' ',-3)),ChosenTitle=0 WHERE guid NOT IN (SELECT guid FROM character_achievement WHERE achievement=456);

    -- Grand Crusader
    UPDATE `characters` SET knownTitles = CONCAT(SUBSTRING_INDEX(knownTitles,' ',4),' ',CAST(CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(knownTitles,' ',5),' ',-1) AS UNSIGNED)|128 AS CHAR),' ',SUBSTRING_INDEX(knownTitles,' ',-2)) WHERE guid IN (SELECT guid FROM character_achievement WHERE achievement=4078);
    UPDATE `characters` SET knownTitles = CONCAT(SUBSTRING_INDEX(knownTitles,' ',4),' ',CAST(CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(knownTitles,' ',5),' ',-1) AS UNSIGNED)&~128 AS CHAR),' ',SUBSTRING_INDEX(knownTitles,' ',-2)),ChosenTitle=0 WHERE guid NOT IN (SELECT guid FROM character_achievement WHERE achievement=4078);

    -- Death's Demise
    UPDATE `characters` SET knownTitles = CONCAT(SUBSTRING_INDEX(knownTitles,' ',3),' ',CAST(CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(knownTitles,' ',4),' ',-1) AS UNSIGNED)|268435456 AS CHAR),' ',SUBSTRING_INDEX(knownTitles,' ',-3)) WHERE guid IN (SELECT guid FROM character_achievement WHERE achievement=3117);
    UPDATE `characters` SET knownTitles = CONCAT(SUBSTRING_INDEX(knownTitles,' ',3),' ',CAST(CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(knownTitles,' ',4),' ',-1) AS UNSIGNED)&~268435456 AS CHAR),' ',SUBSTRING_INDEX(knownTitles,' ',-3)),ChosenTitle=0 WHERE guid NOT IN (SELECT guid FROM character_achievement WHERE achievement=3117);

    -- Celestial Defender
    UPDATE `characters` SET knownTitles = CONCAT(SUBSTRING_INDEX(knownTitles,' ',3),' ',CAST(CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(knownTitles,' ',4),' ',-1) AS UNSIGNED)|536870912 AS CHAR),' ',SUBSTRING_INDEX(knownTitles,' ',-3)) WHERE guid IN (SELECT guid FROM character_achievement WHERE achievement=3259);
    UPDATE `characters` SET knownTitles = CONCAT(SUBSTRING_INDEX(knownTitles,' ',3),' ',CAST(CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(knownTitles,' ',4),' ',-1) AS UNSIGNED)&~536870912 AS CHAR),' ',SUBSTRING_INDEX(knownTitles,' ',-3)),ChosenTitle=0 WHERE guid NOT IN (SELECT guid FROM character_achievement WHERE achievement=3259)

dr-j avatar Jul 31 '14 21:07 dr-j