[DiscordArchive] Im trying to add a mythic 10/25 mode in my serv...
[DiscordArchive] Im trying to add a mythic 10/25 mode in my serv...
Archived author: Algardo • Posted: 2025-05-09T15:18:27.904000+00:00
Original source
i added it to mapdifficulty but it doesnt work sadly
Archived author: Algardo • Posted: 2025-05-09T15:19:52.038000+00:00
Original source
probably its my code, but wanted to know 100% if its the .exe or not, because i was touching the client .lua and though it was my code too and then a guy came and told me it was the .exe and dadaaa it worked
Archived author: Rev • Posted: 2025-05-09T15:22:46.982000+00:00
Original source
have you edited UnitPopup.lua?
Archived author: Algardo • Posted: 2025-05-09T15:28:55.749000+00:00
Original source
unitpopup and globalstrings
i added in globalstrings
RAID_DIFFICULTY5 = "10 Player (Mythic)";
RAID_DIFFICULTY6 = "25 Player (Mythic)";
RAID_DIFFICULTY_10PLAYER_MYTHIC = "10 Player (Mythic)";
RAID_DIFFICULTY_25PLAYER_MYTHIC = "25 Player (Mythic)";
and unitpopup
UnitPopupButtons["RAID_DIFFICULTY5"] = { text = RAID_DIFFICULTY5, dist = 0 };
UnitPopupButtons["RAID_DIFFICULTY6"] = { text = RAID_DIFFICULTY6, dist = 0 };
UnitPopupMenus["RAID_DIFFICULTY"] = { "RAID_DIFFICULTY1", "RAID_DIFFICULTY2", "RAID_DIFFICULTY3", "RAID_DIFFICULTY4", "RAID_DIFFICULTY5", "RAID_DIFFICULTY6" };
UnitPopupShown = {};
UnitPopupShown[1] = {};
UnitPopupShown[2] = {};
UnitPopupShown[3] = {};
UnitPopupShown[4] = {};
UnitPopupShown[5] = {}; // 4,5 this part AI told me to add but it was like "test this, go go"
also added a print so i know if its entering there
elseif ( strsub(button, 1, 15) == "RAID_DIFFICULTY" and (strlen(button) > 15) ) then
local raidDifficulty = tonumber( strsub(button,16,16) );
print("Ha entrado en el UnitPopup.lua:", raidDifficulty);