--TRAINERGENERATORSTART--
--This is autogenerated code. Changing code in this block will
--get erased and rewritten if you regenerate the trainer code
--Uncomment the following line if this is a Cheat Table format trainer and you don't want CE to show (Tip, save as .CETRAINER alternatively)
--hideAllCEWindows()
function myattach(timer)
if getProcessIDFromProcessName("TESV.exe") ~= nil then
object_destroy(timer)
openProcess("TESV.exe")
sleep(1000)
autoAssemble(init_script)
sleep(500)
myAdd1="TESV.exe+10A3D58"
myAdd2="0018FC84"
myAdd3="TESV.exe+101B350"
writeInteger(myAdd1,1680)
writeInteger(myAdd2,1680)
writeInteger(myAdd3,1680)
end
end
f=createForm(false) --create an invisible window
t=createTimer(f);
timer_setInterval(t,100) --10 might have been too fast for xp...
timer_onTimer(t,myattach)
init_script = [[
alloc(newmem,2048)
label(returnhere)
label(exit)
newmem:
mov edx, [0141B350]
mov [ecx+08], edx
mov edx, [0018FC84]
mov [ecx], edx
mov edx, [ecx]
mov [TESV.exe+116E4DC], 3F000000
mov [TESV.exe+116E4B8], C1200000
mov [TESV.exe+116E4D0], 40A00000
mov [TESV.exe+116E784], 3F147AE1
mov [TESV.exe+116E778], 40400000
mov [TESV.exe+116E760], 41200000
mov [eax+10],edx
exit:
jmp returnhere
"TESV.exe"+D3D7CC:
jmp newmem
nop
returnhere:
]]
myattach(timer)
addresslist=getAddressList()
memrec1=addresslist_getMemoryRecordByID(addresslist,1)
memrec2=addresslist_getMemoryRecordByID(addresslist,2)
memrec9=addresslist_getMemoryRecordByID(addresslist,9)
memrec1_hotkey0=memoryrecord_getHotkeyByID(memrec1,0)
memrec1_hotkey1=memoryrecord_getHotkeyByID(memrec1,1)
memrec1_hotkey2=memoryrecord_getHotkeyByID(memrec1,2)
memrec2_hotkey0=memoryrecord_getHotkeyByID(memrec2,0)
memrec2_hotkey1=memoryrecord_getHotkeyByID(memrec2,1)
memrec2_hotkey2=memoryrecord_getHotkeyByID(memrec2,2)
memrec9_hotkey0=memoryrecord_getHotkeyByID(memrec9,0)
memrec9_hotkey1=memoryrecord_getHotkeyByID(memrec9,1)
memrec9_hotkey2=memoryrecord_getHotkeyByID(memrec9,2)
function onHotkey0(Hotkey)
--Executed before the hotkey is handled
cheatcomponent_setActive(CETrainer_CHEAT0, true, 1500)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onHotkey(memrec1_hotkey0,onHotkey0)
function onHotkey1(Hotkey)
--Executed before the hotkey is handled
cheatcomponent_setActive(CETrainer_CHEAT1, true, 1500)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onHotkey(memrec1_hotkey1,onHotkey1)
function onHotkey2(Hotkey)
--Executed before the hotkey is handled
cheatcomponent_setActive(CETrainer_CHEAT2, true, 1500)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onHotkey(memrec1_hotkey2,onHotkey2)
function onHotkey3(Hotkey)
--Executed before the hotkey is handled
cheatcomponent_setActive(CETrainer_CHEAT3, true, 1500)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onHotkey(memrec2_hotkey0,onHotkey3)
function onHotkey4(Hotkey)
--Executed before the hotkey is handled
cheatcomponent_setActive(CETrainer_CHEAT4, true, 1500)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onHotkey(memrec2_hotkey1,onHotkey4)
function onHotkey5(Hotkey)
--Executed before the hotkey is handled
cheatcomponent_setActive(CETrainer_CHEAT5, true, 1500)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onHotkey(memrec2_hotkey2,onHotkey5)
function onHotkey6(Hotkey)
--Executed before the hotkey is handled
cheatcomponent_setActive(CETrainer_CHEAT6, true, 1500)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onHotkey(memrec9_hotkey0,onHotkey6)
function onHotkey7(Hotkey)
--Executed before the hotkey is handled
cheatcomponent_setActive(CETrainer_CHEAT7, true, 1500)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onHotkey(memrec9_hotkey1,onHotkey7)
function onHotkey8(Hotkey)
--Executed before the hotkey is handled
cheatcomponent_setActive(CETrainer_CHEAT8, true, 1500)
if gBeepOnAction then
beep()
end
end
memoryrecordhotkey_onHotkey(memrec9_hotkey2,onHotkey8)
control_setVisible(CETrainer_SEPERATOR, false)
strings_add(getAutoAttachList(), "TESV.exe")
gBeepOnAction=false
form_show(CETrainer)
function AboutClick()
showMessage(gAboutText)
end
gAboutText=[[This trainer was made by Cheat Engine
www.cheatengine.org]]
function CloseClick()
closeCE()
return caFree --onClick doesn't care, but onClose would like a result
end
--TRAINERGENERATORSTOP--
Surely theres a way in above code to say something like:
If memory adress is 116E4DC then press hotkey 1? or something like that.
Because of the IF statements in the above code, i can't see why it isn't possible.
Someone with some programming knowledge help please, hehe
_________________ I7 920, ex58ud3r, crossfire 5870, 3x27" @ 6016x1080, 6gig corsair
|