dl748 wrote: ↑Tue Nov 14, 2017 5:02 pm
nocomment wrote: ↑Tue Nov 14, 2017 12:51 pm
Hi, first of nice work dude. i hack games myself and i wanted to make infinite health and ammo but then i realized that it's more annoying as in most games. you can't just nop 1 function like in most games, because theres like 3 or more functions that deal with health. so I thought i'll google and see if anyone has a cheat table already and found this. thx
however i'd like to use hotkeys as it's very annoying to minimize the game every time i want to use the table. i tried setting hotkeys but they reset every time i disable and re-enable the script.
can you please help me with the hotkeys? is there a way to modify the script so that it won't delete the hotkeys i have set already?
thanks
Yes, this is because you bind a hot key to a specific cheat engine entry. But since the script destroys when deactivating the script and creating when activated, you can only bind the keys in the script itself.
An ugly example would be something like
Code: Select all
local function Run()
local perkscan = getScan("perks")
local freezehp = getFlag("Freeze Health")
local freezehpover = getFlag("Freeze Health Overcharge")
local freezear = getFlag("Freeze Armor")
local freezeclip = getFlag("Freeze Clip")
local freezeammo = getFlag("Freeze Ammo")
local freezeet = getFlag("Freeze Enigma Timer")
local freezesc = getFlag("Freeze Coolant")
-- New Code
createHotkey(function()
local mr=getAddressList().getMemoryRecordByDescription("Freeze Health")
mr.Active = not mr.Active
end, VK_INSERT)
So what the new code does is, binds INSERT to a function, which then finds a memory record called "Freeze Health" and then toggles the checkbox for that. In Lua, you can make the bind do all kinds of things.
Also, the reason I do it this way is that more and more games are putting in code modification detection code. So when you nop an instruction, its detected and then it quits. This way, I'm not modifying ANY game code, i'm just modifying the data.
thanks, but I already know the createHotkey function, it would only allow me to toggle them, but how can I make a hotkey to increase value or set value to specific value? I understand most of the code, but some details are hard for me.
For example I don't want to freeze health or ammo, but sometimes in game i just can't be bothered and i want to add like 50 health just to survive the fight.
jump height is awesome too, but i dont always want to jump into the sky lol. i always use hotkeys like that in games. for example i could increase jump height to like 5 which works great or sometimes i need 6 or 7, then i would just set 3 hotkeys or maybe 2. like increase by 1, decrease by 1 and then set value to xx (whatever the default is, think it was 1.15?)
could you please explain how i could make hotkeys for such occasions?
or is there a possible way not to destroy the script? like keep it active so that hotkeys won't disappear?