Forum > Tutorials

[TUTORIAL] [LUA] XP Bar after Level 80.

(1/4) > >>

Supora:
So it's a simple how-to make a XP bar visible after getting a level 80.
First of all you need to get the ReputationFrame.LUA:
go to your wow folder and search a data folder. In data folder you must to open a your locale directory(example: ruRU, enGB, enUS) and open a last locale patch(patch-ruRU-3, patch-enGB-3, patch-enUS-3). In this *.mpq go to Interface>FrameXML, searc for a ReputationFrame.lua and extract it.
Second: Open ReputationFrame.lua with notepad and search for:

--- Code: ---MAX_PLAYER_LEVEL_TABLE[2] = 80;
--- End code ---
If accounts on your server have a expansion value 2, edit
--- Code: ---MAX_PLAYER_LEVEL_TABLE[2] = 80;
--- End code ---
to
--- Code: ---MAX_PLAYER_LEVEL_TABLE[2] = needed level;
--- End code ---
If you change a expansion number to other value(like 3 or 4) on the account creating function on the server you can add a new row after
--- Code: ---MAX_PLAYER_LEVEL_TABLE[2] = 80;
--- End code ---
like this
--- Code: ---MAX_PLAYER_LEVEL_TABLE[2] = 80;
MAX_PLAYER_LEVEL_TABLE[3] = needed level;
--- End code ---

holyleen:
nice tutorial man

Keta:
So basically that line just tells Wow when to stop showing the XP bar? o.O

Thanks
Keta

Supora:

--- Quote from: "Keta" ---So basically that line just tells Wow when to stop showing the XP bar? o.O

Thanks
Keta
--- End quote ---
No. I think the main thing is a function
--- Code: --- ReputationWatchBar:Hide();
if ( newLevel < MAX_PLAYER_LEVEL and not IsXPUserDisabled() ) then
MainMenuExpBar:Show();
MainMenuExpBar.pauseUpdates = nil;
MainMenuBarMaxLevelBar:Hide();
else
MainMenuExpBar:Hide();
MainMenuExpBar.pauseUpdates = true;
MainMenuBarMaxLevelBar:Show();
ExhaustionTick:Hide();
end
end
--- End code ---
in ReputationFrame.lua
But this row gives a value

Shruik:
I would never had thought that this could be that easy. Thank you man!

Navigation

[0] Message Index

[#] Next page

Go to full version