From e8b881ea53645d55cb149e4946758a29802daa8d Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 1 Mar 2017 19:56:36 +0100 Subject: [PATCH] [Party] Disable XP bar when maxlevel --- src/Components/Modules/Party.cpp | 2 +- src/Components/Modules/Stats.hpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Party.cpp b/src/Components/Modules/Party.cpp index d4639913..d0801efd 100644 --- a/src/Components/Modules/Party.cpp +++ b/src/Components/Modules/Party.cpp @@ -130,7 +130,7 @@ namespace Components DWORD Party::UIDvarIntStub(char* dvar) { - if (!_stricmp(dvar, "onlinegame")) + if (!_stricmp(dvar, "onlinegame") && !Stats::IsMaxLevel()) { return 0x649E660; } diff --git a/src/Components/Modules/Stats.hpp b/src/Components/Modules/Stats.hpp index e9599729..52518565 100644 --- a/src/Components/Modules/Stats.hpp +++ b/src/Components/Modules/Stats.hpp @@ -12,8 +12,9 @@ namespace Components const char* getName() override { return "Stats"; }; #endif - private: static bool IsMaxLevel(); + + private: static void UpdateClasses(UIScript::Token token); static void SendStats();