Help! Hooking string inside void

Neko Mage

Solid & Active Platinian
Original poster
May 7, 2020
61
1,707
183
22
nekomage.smali
Hi, i've read the thread
But its didnt work for me, or maybe i put the wrong offset?
I have offset in some game like this
Code:
// RVA: 0x16B7020 Offset: 0x16B7020 VA: 0xB53FE020
public void PlayerSendChat(string msg, bool totalTeam, bool bRecognition = False) { }

And the update is

// RVA: 0x16B45DC Offset: 0x16B45DC VA: 0xB53FB5DC
public void Update() { }
How to hook the PlayerSendChat(monostring) and keep update with mshook?
 
  • Like
Reactions: Kitayy

Sevol

Retired Staff
Retired but loved <3
Jun 8, 2019
219
5,928
193
Russia
playerSendChat(CreateString("msg"), false, false); this should work. Maybe wrong offset of sendMessage or CreateString method
 
  • Love
Reactions: Neko Mage