jundew posted on Apr 26, 2020 7:18:56 PM - Report post
Hello i'm very new to this sort of stuff and i just tried for the first time hacking the move speed of this game i play and it worked perfectly fine but the issue is i can't deactivate it without having to go back and click the active button. Is there a way to setup an button script where for example where i hold or click shift it activates it but when i let go of shift it deactivates.
STAFF
0x90 posted on Apr 27, 2020 5:03:35 AM - Report post
Add a script:
[ENABLE] {$lua} if tabletest then return end speedhack_setSpeed(2) {$asm} [DISABLE] {$lua} if tabletest then return end speedhack_setSpeed(1) {$asm}
and set a hotkey for this table item like shift key to toggle it on/off.
SAGE
jundew posted on Apr 27, 2020 5:11:50 AM - Report post
Am i able to change the value of an address using a script by any chance?
STAFF
0x90 posted on Apr 27, 2020 7:51:55 AM - Report post
AutoHotkey posted on Apr 27, 2020 4:21:00 PM - Report post
[ENABLE] {$lua} local key = 0xA0 whileKeyIsDown(key, writeFloat("address",500)) {$asm} [DISABLE] {$lua} local key o 0xA0 keyUp(key, writeFloat("address"0)) {$asm}
would I need to include the asm lines or no?
STAFF
0x90 posted on Apr 27, 2020 4:43:23 PM - Report post
You need to include otherwise its a syntax error, unlike in CE which is not that strict. But whileKeyIsDown expects a string as second parameter. See the example Link
However keep in mind this script only runs once when you activate it. So if the shift key is not held down it will simply return. Also if you just want to write a value to an address it can be easier without a script. Add an address item to the cheat table with the address and value type. Then right click on that item -> Set hotkey (bottom).