Author Topic: [Release] D3D Trainer Source - Cheat Engine - LUA ENGINE  (Read 877 times)

0 Members and 1 Guest are viewing this topic.

MrCamo

  • Village Idiot of TKC
  • Quarantine
  • Heckler Apprentice
  • ****
  • Posts: 1456
  • Banned from TKC forever
    • View Profile
[Release] D3D Trainer Source - Cheat Engine - LUA ENGINE
« on: January 06, 2016, 08:38:53 pm »
This is an example script ,you will be able to create your own D3D trainers :)

works on almost any DirectX based video game.

Adjust the way it works to your liking.

By Default:

F5 = Hide/Show overlay.

V = Toggle Cheat. (ASM script)

Written by me.

Code: [Select]
gameprocess = inputQuery('Welcome','Enter a process name to open','example.exe')
openProcess(gameprocess)
if getProcessIDFromProcessName(gameprocess) == nil then
messageDialog("Error1 - Game is not running!",1,2)
closeCE()
end
hideAllCEWindows()

background=createPicture()
bmp=picture_getBitmap(background);

graphic_setHeight(bmp,1)
graphic_setWidth(bmp,1)
c=rasterimage_getCanvas(bmp)

canvas_setPixel(c,0,0,0x000000)



d3dhook_initializeHook()

bgtexture=d3dhook_createTexture(background)

bgsprite=d3dhook_createSprite(bgtexture);
d3dhook_renderobject_setX(bgsprite, 0) --center it horizontally
d3dhook_renderobject_setY(bgsprite, 0) --center it horizontally
d3dhook_sprite_setWidth(bgsprite,150)
d3dhook_sprite_setHeight(bgsprite,106)





font1=createFont()
setProperty(font1,"color",0xFFFF00)


fontmap1=d3dhook_createFontmap(font1)
lineheight=d3dhook_texture_getHeight(fontmap1) --fontmap inherits from texture so this can be used




font=createFont()
setProperty(font,"color",0xdff2)


fontmap=d3dhook_createFontmap(font)
lineheight=d3dhook_texture_getHeight(fontmap) --fontmap inherits from texture so this can be used





WHAT0 = d3dhook_createTextContainer(fontmap1,0,0,' ======GUI SYSTEM======')
WHAT = d3dhook_createTextContainer(fontmap,0,27,'        Cheat:                ')
WHAT1=d3dhook_createTextContainer(fontmap1,0,50,' ========================')
WHAT2=d3dhook_createTextContainer(fontmap1,0,65,'      Made By MrCamo')


status = 0

function toggle()
if status == 0 then
WHAT.text = '                      '
WHAT.text = '        Cheat: OFF  '
status = 1

cheat = getAddressList().getMemoryRecordByDescription('Auto Assemble script')
cheat.active = false


sleep(75)
else
WHAT.text = '                                   '
WHAT.text = '        Cheat: ON  '
status = 0

cheat = getAddressList().getMemoryRecordByDescription('Auto Assemble script')
cheat.active = true



sleep(75)
end
end

createHotkey(toggle,VK_V)

hidden = 0
function antiss()
if hidden == 0 then
bgsprite.Visible = false
WHAT0.Visible = false
WHAT.Visible = false
WHAT1.Visible = false
WHAT2.Visible = false
hidden = 1
else
bgsprite.Visible = true
WHAT0.Visible = true
WHAT.Visible = true
WHAT1.Visible = true
WHAT2.Visible =true
hidden = 0
end
end
createHotkey(antiss,VK_F5)

function terminate()

if getProcessIDFromProcessName(gameprocess) == nil then
closeCE()
end
end


timer1 = createTimer(nil)
Timer_setInterval(timer1,500)
Timer_onTimer(timer1,terminate)

« Last Edit: January 06, 2016, 09:03:52 pm by MrCamo »