View previous topic :: View next topic |
Author |
Message |
Marabunta Newbie cheater Reputation: 0
Joined: 22 Jul 2008 Posts: 11
|
Posted: Sat Jan 15, 2022 5:17 am Post subject: Increasse Health |
|
|
Hi,
this is my first code ever, but it does not work (not all code is injectable).
What I want is to increase the value if it is less than 100 just by 2 every second.
I use another cheat table which gets the value with a script and i want a new entry to increase this value.
I also tried to google it and have a lot of disabled code:
Code: | [ENABLE]
{$LUA}
--function HPHack(Name1, sec)
--local oldv1 = AddressList.getMemoryRecordByDescription(Name1).Value
--oldv1 = tonumber(oldv1)
--local t = createTimer() t.Enabled=true
--t.Interval = tonumber(sec)
--t.OnTimer = function(t)
--local mr = AddressList.getMemoryRecordByDescription(Name1)
-- if not oldv1 then t.destroy(); return end
--local v1 = tonumber(mr.Value)
-- oldv1 = oldv1 + 2
-- mr.Value = tostring(oldv1)
--print(oldv1)
-- Set a limit if you want to kill the timer.
-- if oldv1 == 600 then t.destroy(); end
--end
--end
memrec = getAddressList().getMemoryRecordByDescription
memrec('CurrHP').Active = true
local curhpval= memrec('CurrHP').Value
if curhpval < 100 then
memrec('CurrHP').Value = memrec('CurrHP').Value +2
end
[DISABLE] |
|
|
Back to top |
|
|
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Sat Jan 15, 2022 5:56 am Post subject: |
|
|
So you wanna health regeneration code?
EDIT:
You are overwriting the memrec variable in script
Manipulating value from memrec? Instead of it you need to get the pointer to health to set health,else it won't work
_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Last edited by Frouk on Sat Jan 15, 2022 6:02 am; edited 1 time in total |
|
Back to top |
|
|
Marabunta Newbie cheater Reputation: 0
Joined: 22 Jul 2008 Posts: 11
|
Posted: Sat Jan 15, 2022 6:01 am Post subject: |
|
|
yes thats exactly what i want
|
|
Back to top |
|
|
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Sat Jan 15, 2022 6:11 am Post subject: |
|
|
If you was able to type the value type,address and offset i was able to give you an working regeneration code(like to say if health is 4 byte or float,same with address)
this is template:
Code: | regenTimer = createTimer(nil)
regenTimer.Enabled = true
regenTimer.Interval = 1000
regenTimer.OnTimer = function()
local healthOffset = 0x540 --replace with your offset
local maxHealthOffset = 0x544 --same as previous comment
local addr = "PlayerPointer"--Replace with your pointer
local currHealth = readFloat(addr+healthOffset) --or readInteger(addr+healthOffset)
local maxHealth = 100 --or readFloat(addr+maxHealthOffset),readInteger(addr+maxHealthOffset)
--Offset to health and to max health
if currHealth => maxHealth then
return
end
writeFloat(addr+healthOffset,currHealth+2)
end |
if you wanna to destroy it use
Code: | regenTimer.destroy()
regenTimer = nil |
_________________
void(__cdecl *Haxing)(HWND hGameWindow) |
|
Back to top |
|
|
Marabunta Newbie cheater Reputation: 0
Joined: 22 Jul 2008 Posts: 11
|
Posted: Sat Jan 15, 2022 6:31 am Post subject: |
|
|
i am not able to post it, Code protection.
The Table looks like this:
Code: |
Active Description Address Type Value
Activate (END - Pause the game first then wait a little) script
CurrHP P->7FF2AE0198A8 Float 100
Current Silver P->7FF2B8F00138 4 Bytes 4294967295
Current EXP P->7FF2B8EFFF78 4 Bytes 4294967295
Money x1024 (Numpad 2) script
EXP x 1024 (Numpad 3) script
HPHack script
|
And the Script of Activate:
Code: | { Game : GoW.exe
Version:
Date : 2022-01-14
Author : GNURaziel
This script does what it does :)
}
[ENABLE]
registersymbol(GoW_Base)
aobscanmodule(Get_GoW_AOB,GoW.exe,F3 0F 11 73 20 ?? ?? 48 39 73 18 ?? ?? ?? ?? ?? ?? 48 8B 43 10 48 8B 48 08 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 48 8B 40 40) // should be unique
alloc(newmem,$1000,Get_GoW_AOB)
label(code)
label(return)
//label(Cmp_Godmode_Flag)
//label(GodMode)
alloc(GoW_Base,4)
GoW_Base:
dd 0
newmem:
code:
mov [GoW_Base],rax
movss [rbx+20],xmm6
jmp return
Get_GoW_AOB:
jmp newmem
return:
registersymbol(Get_GoW_AOB)
[DISABLE]
Get_GoW_AOB:
db F3 0F 11 73 20
unregistersymbol(Get_GoW_AOB))
dealloc(newmem)
unregistersymbol(GoW_Base)
dealloc(GoW_Base)
{
// ORIGINAL CODE - INJECTION POINT: GoW.exe+799764
GoW.exe+79973E: 45 33 C0 - xor r8d,r8d
GoW.exe+799741: E8 3A 2B 02 00 - call GoW.exe+7BC280
GoW.exe+799746: 0F 28 F0 - movaps xmm6,xmm0
GoW.exe+799749: EB 03 - jmp GoW.exe+79974E
GoW.exe+79974B: 0F 57 F6 - xorps xmm6,xmm6
GoW.exe+79974E: F3 41 0F 5F F0 - maxss xmm6,xmm8
GoW.exe+799753: 33 F6 - xor esi,esi
GoW.exe+799755: F3 41 0F 5D F2 - minss xmm6,xmm10
GoW.exe+79975A: 44 0F 28 54 24 50 - movaps xmm10,[rsp+50]
GoW.exe+799760: 41 0F 2E F1 - ucomiss xmm6,xmm9
// ---------- INJECTING HERE ----------
GoW.exe+799764: F3 0F 11 73 20 - movss [rbx+20],xmm6
// ---------- DONE INJECTING ----------
GoW.exe+799769: 74 5B - je GoW.exe+7997C6
GoW.exe+79976B: 48 39 73 18 - cmp [rbx+18],rsi
GoW.exe+79976F: 0F 84 F0 00 00 00 - je GoW.exe+799865
GoW.exe+799775: 48 8B 43 10 - mov rax,[rbx+10]
GoW.exe+799779: 48 8B 48 08 - mov rcx,[rax+08]
GoW.exe+79977D: E8 7E BA D5 FF - call GoW.exe+4F5200
GoW.exe+799782: 48 85 C0 - test rax,rax
GoW.exe+799785: 74 06 - je GoW.exe+79978D
GoW.exe+799787: 48 8B 40 40 - mov rax,[rax+40]
GoW.exe+79978B: EB 07 - jmp GoW.exe+799794
} |
|
|
Back to top |
|
|
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Sat Jan 15, 2022 6:32 am Post subject: |
|
|
just double click to currHp
EDIT:
i get it
this might be solution
Code: | regenTimer = createTimer(nil)
regenTimer.Enabled = true
regenTimer.Interval = 1000
regenTimer.OnTimer = function()
local addrList = getAddressList()
local healthMemrec = addrList.getMemoryRecordByDescription("CurrHp")
local currHealth = healthMemrec.Value
local maxHealth = 100
if currHealth => maxHealth then
return
end
currHealth = currHealth+2
end |
_________________
void(__cdecl *Haxing)(HWND hGameWindow) |
|
Back to top |
|
|
Marabunta Newbie cheater Reputation: 0
Joined: 22 Jul 2008 Posts: 11
|
Posted: Sat Jan 15, 2022 6:41 am Post subject: |
|
|
Code: | Warning:
Not all code is injectable.
Are you sure you want to edit it to this? |
Cant activate
|
|
Back to top |
|
|
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Sat Jan 15, 2022 6:45 am Post subject: |
|
|
Marabunta wrote: | Code: | Warning:
Not all code is injectable.
Are you sure you want to edit it to this? |
Cant activate |
add enable and disable sections
Code: | {$lua}
if syntaxcheck then return end
[ENABLE]
regenTimer = createTimer(nil)
regenTimer.Enabled = true
regenTimer.Interval = 1000
regenTimer.OnTimer = function()
local addrList = getAddressList()
local healthMemrec = addrList.getMemoryRecordByDescription("CurrHp")
local currHealth = healthMemrec.Value
local maxHealth = 100
if currHealth => maxHealth then
return
end
currHealth = currHealth+2
end
[DISABLE]
regenTimer.destroy()
regenTimer = nil
{$asm}
|
_________________
void(__cdecl *Haxing)(HWND hGameWindow) |
|
Back to top |
|
|
Marabunta Newbie cheater Reputation: 0
Joined: 22 Jul 2008 Posts: 11
|
Posted: Sat Jan 15, 2022 6:53 am Post subject: |
|
|
This time its access violation too
Code: | Warning
। Not all code is injectable.
• (Access violation)
Are you sure you want to edit it to this? |
this worked, but does not check for <100 anymore:
Code: | {$lua}
if syntaxcheck then return end
[ENABLE]
regenTimer = createTimer(nil)
regenTimer.Enabled = true
regenTimer.Interval = 1000
regenTimer.OnTimer = function()
local addrList = getAddressList()
local healthMemrec = addrList.getMemoryRecordByDescription("CurrHP")
local currHealth = healthMemrec.Value
local maxHealth = 100
healthMemrec.Value = currHealth+2
end
[DISABLE]
regenTimer.destroy()
regenTimer = nil
{$asm} |
The game does it for me, so its ok.
Thank you very very much
|
|
Back to top |
|
|
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Sat Jan 15, 2022 7:22 am Post subject: |
|
|
because you deleted the condition that checks if health < 100(currHealth => maxHealth,force end function if currHealth is > than maxHealth)
_________________
void(__cdecl *Haxing)(HWND hGameWindow) |
|
Back to top |
|
|
|