-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathcopy value - Tutorial-i386.CT
More file actions
56 lines (54 loc) · 1.57 KB
/
copy value - Tutorial-i386.CT
File metadata and controls
56 lines (54 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="24">
<CheatEntries>
<CheatEntry>
<ID>4</ID>
<Description>"Step 4 - Health (float)"</Description>
<VariableType>Float</VariableType>
<Address>"Tutorial-i386.exe"+1FC600</Address>
<Offsets>
<Offset>494</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>5</ID>
<Description>"Step 4 - Ammo (double)"</Description>
<VariableType>Double</VariableType>
<Address>"Tutorial-i386.exe"+1FC600</Address>
<Offsets>
<Offset>498</Offset>
</Offsets>
</CheatEntry>
<CheatEntry>
<ID>6</ID>
<Description>"Create Hotkey"</Description>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{$lua}
[ENABLE]
-- get the address list object
al = getAddressList()
-- get the memory records for the two values
health = al.getMemoryRecordByID(4)
ammo = al.getMemoryRecordByID(5)
-- create the hotkey
HealthToAmmoHK = createHotkey(function()
-- get the value of health
value = tonumber(health.Value)
-- divide by 32 and add 1
value = value/32 + 1
-- store the value in ammo
ammo.Value = tostring(value)
end,
-- set the hotkey combo to 1, VK codes can be found in defines.lua
-- which is in CE's install directory, probably %programfiles%\Cheat Engine 6.6
-- or %programfiles(x86)%\cheat engine 6.6
{VK_1})
[DISABLE]
-- destroy the hotkey so it doesn't work anymore
HealthToAmmoHK.destroy()
</AssemblerScript>
</CheatEntry>
</CheatEntries>
<UserdefinedSymbols/>
</CheatTable>