|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
lilly1987 How do I cheat? Reputation: 0
Joined: 05 Sep 2014 Posts: 1
|
Posted: Fri Sep 05, 2014 11:48 am Post subject: i want hotkey into cheet table by lua |
|
|
i not speak english
i make lua
Code: |
function CEButton1Click(sender)
a=getAddress("[[[[Game.exe+C574]+234]+124]+10]")
UDF1.CEButton1.setCaption(string.format("0x%X", a))
print(string.format("0x%X", a))
print(readInteger(a+8))--air
print(readInteger(a+20))--power
print(readInteger(a+128+16))--loop
rset()
end
function rset()
UDF1.air:setMax(readInteger(a+8+4))
UDF1.air:setPosition(readInteger(a+8))
--showMessage(UDF1.air.GetMax())
UDF1.power:setMax(readInteger(a+20+4))
UDF1.power:setPosition(readInteger(a+20))
--showMessage(UDF1.power.GetMax())
UDF1.loop:setMax(readInteger(a+128+16+4))
UDF1.loop:setPosition(readInteger(a+128+16))
--showMessage(UDF1.loop.GetMax())
table=getAddressList()
mr1=addresslist_createMemoryRecord(table)
memoryrecord_setAddress(mr1,string.format("0x%X", a+20))
memoryrecord_setDescription(mr1,"air")
mr2=addresslist_createMemoryRecord(table)
memoryrecord_setAddress(mr2,string.format("0x%X", a+8))
memoryrecord_setDescription(mr2,"power")
mr3=addresslist_createMemoryRecord(table,"Health")
memoryrecord_setAddress(mr3,string.format("0x%X", a+128+16))
memoryrecord_setDescription(mr3,"loop")
end
function airChange(sender)
air=UDF1.air:getPosition()
print(air)
writeInteger(a+8,math.ceil(air/10)*10+1)
end
function powerChange(sender)
power=UDF1.power:getPosition()
print(power)
writeInteger(a+20,math.ceil(power/10)*10+1)
end
function loopChange(sender)
loop=UDF1.loop:getPosition()
print(loop)
writeInteger(a+128+16,math.ceil(loop/10)*10+1)
end
|
and i want cheet table by lua
Quote: |
<CheatEntry>
<ID>99</ID>
<Description>"air"</Description>
<LastState Value="60011" Activated="0" RealAddress="031182A4"/>
<Color>80000008</Color>
<VariableType>4 Bytes</VariableType>
<Address>0x31182A4</Address>
<Hotkeys>
<Hotkey>
<Action>Decrease Value</Action>
<Keys>
<Key>81</Key>
</Keys>
<Value>500</Value>
<ID>0</ID>
</Hotkey>
<Hotkey>
<Action>Increase Value</Action>
<Keys>
<Key>87</Key>
</Keys>
<Value>500</Value>
<ID>1</ID>
</Hotkey>
<Hotkey>
<Action>Toggle Activation</Action>
<Keys>
<Key>69</Key>
</Keys>
<ID>2</ID>
</Hotkey>
</Hotkeys>
</CheatEntry>
|
Description: |
|
Download |
Filename: |
Game.CT |
Filesize: |
7.49 KB |
Downloaded: |
419 Time(s) |
|
|
Back to top |
|
|
Redouane Master Cheater Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Fri Sep 05, 2014 4:17 pm Post subject: |
|
|
This code is wrong:
Code: | a=getAddress("[[[[Game.exe+C574]+234]+124]+10]") |
Remplace it with:
Code: | local a = readInteger(readInteger(readInteger(readInteger'Game+exe+C574'+234)+124)+10) |
|
|
Back to top |
|
|
flarn2006 Advanced Cheater Reputation: 1
Joined: 27 Nov 2012 Posts: 73
|
Posted: Thu Nov 13, 2014 3:09 am Post subject: |
|
|
Redone wrote: | This code is wrong:
Code: | a=getAddress("[[[[Game.exe+C574]+234]+124]+10]") |
Remplace it with:
Code: | local a = readInteger(readInteger(readInteger(readInteger'Game+exe+C574'+234)+124)+10) |
|
I've seen the method with the brackets before, but I haven't tested it, so it might be correct. Obviously nested readInteger calls work too, but I think you have an error in yours too; some of the symbols look wrong. Encoding error?
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|