Quote:
Originally Posted by jakeypops7
CNETCLIENT_GET_INSTANCE is wrapped in a ton of Themida virtualization, which is probably what's causing the extra CPU usage everyone's been complaining about on their Discord. It's a pretty important function that gets called a lot, so all that overhead adds up quick. I'm pretty sure Flux will end up reverting it there's way too many people complaining for them to just ignore it.
Ill look at sifting through the Themida Virtualization tonight & see if i can find the reference or whatnot.
|
Makes sense because my diff tool wasn't able to find it in one shot. I wouldn't bother trying to reverse any obfuscated code because it's a pain in the ass unless you've figured out how Themida obfuscates it. Like you said he'll probably revert it, and if he doesn't, he's an idiot
Quote:
Originally Posted by JJRedeemer
ah okay, hopefully it gets reverted then and the offsets don't change again lol, I wonder if there is a way around this if it doesn't get changed back to original. I was able to get the bot stable, it just crashes every time I enable auto-hunt. I'm guessing CNETCLIENT_GET_INSTANCE is probably the issue then.
|
I haven't touched the code in a long time, but as far as I can remember CNetClient is used for stuff like skill casting. If you just want a melee auto-hunt, you can use the existing attack/jump functions that don't require the CNetClient instance.
Stuff like item pickup can also be done with SetCommand which doesn't require sending packets directly. Warehouse and NPC interactions may not work w/o it though. You can look for dedicated functions that activate NPCs but I don't think they exist (haven't been able to find them).
There is a function for MagicAttack but last time I checked it was obfuscated.