Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shinkuan committed Jan 19, 2024
1 parent 7919a5a commit f86e46d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion unlocker.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,18 @@ def modify(self, msg: dict):
person['title'] = self.current_title
person['avatarFrame'] = self.current_frame
if msg['method'] == '.lq.Lobby.fetchRoom':
# console.log(msg, style="bold red")
action = 'modify'
for person in modify_msg['data']['persons']:
for person in modify_msg['data']['room']['persons']:
if person['accountId'] == self.accountId:
person['avatarId'] = self.current_skin
person['character']['charid'] = self.current_character
person['character']['skin'] = self.current_skin
person['character']['level'] = 5
person['character']['exp'] = 0
person['character']['isUpgraded'] = True
person['title'] = self.current_title
person['avatarFrame'] = self.current_frame

# Request from client, drop it or fake a response to avoid Majsoul found we cheat
if msg['type'] == MsgType.Req:
Expand Down

0 comments on commit f86e46d

Please sign in to comment.