Skip to content

Commit

Permalink
Fix function UNLOCK ALL STYLE LOBBY
Browse files Browse the repository at this point in the history
  • Loading branch information
kruvcraft21 committed Jan 17, 2023
1 parent e4de92a commit ad46e01
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions OTLScript.lua
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,12 @@ EncryptValue = SetUnityClass({
})

PlayerArchive = SetUnityClass({
ChangeMenuSkin = function(self)
for k, v in ipairs(self.GetIl2cppFunc('IsMenuSkinUnlock')) do
local patch = platform and "\x20\x00\x80\x52\xc0\x03\x5f\xd6" or "\x01\x00\xa0\xe3\x1e\xff\x2f\xe1"
setupValues(tonumber(v.AddressInMemory,16), patch, gg.TYPE_QWORD)
end
end,
ChangeFloorCount = function(self)
local floorItems = {}
for k, v in ipairs(self:GetLocalInstance()) do
Expand Down Expand Up @@ -950,6 +956,7 @@ functions = {
end,
['UNLOCK ALL STYLE LOBBY'] = function()
Protect:Call(MenuSkinUI.UnlockAllSkin, MenuSkinUI)
Protect:Call(PlayerArchive.ChangeMenuSkin, PlayerArchive)
end,
['COMPLETE ALL ACHIEVEMENTS'] = function()
Protect:Call(AchievementManager.CompliteAllAchievement, AchievementManager)
Expand Down

0 comments on commit ad46e01

Please sign in to comment.