Forum > Serverside Modding

[TC 3.3.5a] Opening up the achievements tab at level 1

(1/2) > >>

Kobiesan:
Hi, I'm trying to figure out how to make it so you can look at your achievements tab at level 1. I've looked in player.cpp for a level restriction but haven't found anything. I've looked in a few other places as well. I want to open it for my whole server so I don't want to edit FrameXMLs but I would like to know where that is located within FrameXML as well.

Well, I found something sorta helpful. In FrameXML > MainMenuBarMicroButtons.lua in the middle there is this...


--- Code: ---function AchievementMicroButton_Update()
if ( not CanShowAchievementUI() ) then
AchievementMicroButton:Hide();
QuestLogMicroButton:SetPoint("BOTTOMLEFT", AchievementMicroButton, "BOTTOMLEFT", 0, 0);
else
AchievementMicroButton:Show();
QuestLogMicroButton:SetPoint("BOTTOMLEFT", AchievementMicroButton, "BOTTOMRIGHT", -3, 0);
end
end
--- End code ---

So I changed it to this...


--- Code: ---function AchievementMicroButton_Update()
AchievementMicroButton:Show();
QuestLogMicroButton:SetPoint("BOTTOMLEFT", AchievementMicroButton, "BOTTOMRIGHT", -3, 0);
end
--- End code ---

But when I load into the game it says my interface files are corrupt. Any ideas? Also, where is CanShowAchievementUI pulling from?

Amaroth:
"it says my interface files are corrupt"
Sec, do you have modified WoW.exe with removed GlueXML check? If not, you'll get this error whenever you edit anythig in UI.

Kobiesan:

--- Quote from: Amaroth on March 08, 2017, 08:55:16 am ---"it says my interface files are corrupt"
Sec, do you have modified WoW.exe with removed GlueXML check? If not, you'll get this error whenever you edit anythig in UI.

--- End quote ---

Ahh, was using the wrong wow.exe. I have one with the check removed and one with it. It opened up the color on the achievements tab now but it can't be opened.

Mr. DK:
If I remember correct. There is a define somewhere in the interface that sets the level when you can use this.

Rochet2:
This enables the use of the window:

--- Code: ---/run AchievementMicroButton.minLevel = 1; function CanShowAchievementUI() return true end; function HasCompletedAnyAchievement() return true end; UpdateMicroButtons()
--- End code ---

use from chat.

Navigation

[0] Message Index

[#] Next page

Go to full version