Jump to content

Level Text above Player's Head Update in Real Time


Recommended Posts

In InstanceBase.h after 
    protected:
        DWORD                    m_dwDuelMode;
        DWORD                    m_dwEmoticonTime;
 
paste this
    public:
        DWORD GetLevel() const { return m_dwLevel; }
        void SetLevel(DWORD lvl);
 
 
In InstanceBase.cpp, in the end of the file paste this:
void CInstanceBase::SetLevel(DWORD lvl)
{
    m_dwLevel = lvl;
}
 
and then on PythonPlayer.cpp near this line:
        CInstanceBase* pkPlayer = NEW_GetMainActorPtr();
 
        if (pkPlayer)
            pkPlayer->UpdateTextTailLevel(lValue);
 
add brackets and "pkPlayer->SetLevel(lValue);" inside the if statement, like this:
        CInstanceBase* pkPlayer = NEW_GetMainActorPtr();
 
        if (pkPlayer)
        {
            pkPlayer->UpdateTextTailLevel(lValue);
            pkPlayer->SetLevel(lValue);
        }
  • Love 4
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 years later...
On 3/28/2015 at 3:05 PM, miguelmig said:

Disclaimer, this only makes it update in real time for the player itself, should I add the part to broadcast to nearby players in this post, or create another topic?

Please do this I'm looking for it. I'm also looking for the Guild window update. Thanks!

Link to comment
Share on other sites

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.