Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


help with code
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Wed Mar 27, 2013 1:16 pm    Post subject: Reply with quote

Can you be specific?
What you mean "2" to take away the value?
You mean restore its original values?

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
VDV
Newbie cheater
Reputation: -1

Joined: 09 Mar 2013
Posts: 19

PostPosted: Wed Mar 27, 2013 1:37 pm    Post subject: Reply with quote

Mother of hack wrote:
Can you be specific?
What you mean "2" to take away the value?
You mean restore its original values?

no.
press 1 - there is a cycle "а, for example" - of the address (0h12345678 for example) with the value (float 1.02357, for example) is taken away permanently 0.1

press 2 - cycle "а" stops and starts the cycle "b" - to address (0h12345678 for example) with the value (float 1.02357, for example) are constantly added 0.1

Again, press 1 - Cycle "B" stops and starts the cycle "a"


that is, when you press the 1 - to take away the value of the address, pressing the 2 - to the address is added value.
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Wed Mar 27, 2013 2:07 pm    Post subject: This post has 1 review(s) Reply with quote

How about this?
Code:
pressed = 0
Z = addresslist_getMemoryRecordByDescription(getAddressList(), "No description") -- your coord entery rename this according to its descriptions
function loop()
if (pressed==0) then
  pressed = 0

  elseif (pressed==1) then
  value = memoryrecord_getValue(Z)
  memoryrecord_setValue(Z, value+1)

   elseif (pressed==2) then
   value = memoryrecord_getValue(Z)
   memoryrecord_setValue(Z, value-1)

  end
end

function pressedVal()
if (pressed==0) then
 pressed = 1

  elseif (pressed==1) then
  pressed = 2

   else
   pressed = 0
  end
end
createHotkey(pressedVal, VK_1)

t=createTimer(nil, false)
timer_setInterval(t, 100)
timer_onTimer(t, loop)
timer_setEnabled(t, true)

Press first time '1' to increase
Press second time '1' to decrease
Press third time '1' to stop.


P.S
you can always gimme some rep ;D.
And if you want more 'live' support add me via Skype (cheatertankionline), I'll help you out much quickly Wink.

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
VDV
Newbie cheater
Reputation: -1

Joined: 09 Mar 2013
Posts: 19

PostPosted: Thu Mar 28, 2013 9:50 am    Post subject: Reply with quote

Mother of hack wrote:
How about this?
Code:
pressed = 0
Z = addresslist_getMemoryRecordByDescription(getAddressList(), "No description") -- your coord entery rename this according to its descriptions
function loop()
if (pressed==0) then
  pressed = 0

  elseif (pressed==1) then
  value = memoryrecord_getValue(Z)
  memoryrecord_setValue(Z, value+1)

   elseif (pressed==2) then
   value = memoryrecord_getValue(Z)
   memoryrecord_setValue(Z, value-1)

  end
end

function pressedVal()
if (pressed==0) then
 pressed = 1

  elseif (pressed==1) then
  pressed = 2

   else
   pressed = 0
  end
end
createHotkey(pressedVal, VK_1)

t=createTimer(nil, false)
timer_setInterval(t, 100)
timer_onTimer(t, loop)
timer_setEnabled(t, true)

Press first time '1' to increase
Press second time '1' to decrease
Press third time '1' to stop.


P.S
you can always gimme some rep ;D.
And if you want more 'live' support add me via Skype (cheatertankionline), I'll help you out much quickly Wink.

thank a lot!!!


need a little differently.
press hotkey 1 - Cycle "B" is over and started cycle "А"
press hotkey 2 - cycle "А" is over and started cycle "B"
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Thu Mar 28, 2013 1:50 pm    Post subject: Reply with quote

Code:
pressed = 0
Z = addresslist_getMemoryRecordByDescription(getAddressList(), "No description") -- your coord entery rename this according to its descriptions
function loop()
if (pressed==0) then
  pressed = 0

  elseif (pressed==1) then
  value = memoryrecord_getValue(Z)
  memoryrecord_setValue(Z, value+0.1)

   elseif (pressed==2) then
   value = memoryrecord_getValue(Z)
   memoryrecord_setValue(Z, value-0.1)

  end
end
t=createTimer(nil, false)
timer_setInterval(t, 100)
timer_onTimer(t, loop)
timer_setEnabled(t, true)

function pressedVal()
Key1 = isKeyPressed(VK_1)
Key2 = isKeyPressed(VK_2)

if Key1==true then
 pressed = 1

  elseif Key2==true then
  pressed = 2

  end
end

KeyCheck=createTimer(nil, false)
timer_setInterval(KeyCheck, 100)
timer_onTimer(KeyCheck, pressedVal)
timer_setEnabled(KeyCheck, true)

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Fri Mar 29, 2013 11:01 am    Post subject: Reply with quote

Code:
Z_cord = addresslist_getMemoryRecordByDescription(getAddressList(), "Z") -- Description of address Z
X_cord = addresslist_getMemoryRecordByDescription(getAddressList(), "X") -- Description of address X
Y_cord = addresslist_getMemoryRecordByDescription(getAddressList(), "Y") -- Description of address Y

function Hotkeys()
local Z_value = memoryrecord_getValue(Z_cord)
KeyI = isKeyPressed(VK_I)
KeyK = isKeyPressed(VK_K)
KeyJ = isKeyPressed(VK_J)
KeyL = isKeyPressed(VK_L)

Key1 = isKeyPressed(VK_1)
Key2 = isKeyPressed(VK_2)

-- front/back {
if KeyI==true then
   X_value = memoryrecord_getValue(X_cord)
   memoryrecord_setValue(X_cord, X_value+0.1)
elseif KeyK==true then
   X_value = memoryrecord_getValue(X_cord)
   memoryrecord_setValue(X_cord, X_value-0.1)
 --}
 -- Right/left {
elseif KeyJ==true then
   Y_value = memoryrecord_getValue(Y_cord)
   memoryrecord_setValue(Y_cord, Y_value+0.1)
elseif KeyL==true then
   Y_value = memoryrecord_getValue(Y_cord)
   memoryrecord_setValue(Y_cord, Y_value-0.1)
--}
-- Up/Down {
elseif Key1==true then
   Z_value = memoryrecord_getValue(Z_cord)
   memoryrecord_setValue(Z_cord, Z_value+0.1)
elseif Key2==true then
   Z_value = memoryrecord_getValue(Z_cord)
   memoryrecord_setValue(Z_cord, Z_value-0.1)
 --}
 end
end

t=createTimer(nil, false)
timer_setInterval(t, 35)
timer_onTimer(t, Hotkeys)
timer_setEnabled(t, true)

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites