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 


2 Hotkeys for 1 address?
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
SXGuy
I post too much
Reputation: 0

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Tue Apr 03, 2007 10:27 am    Post subject: Reply with quote

Quote:
Shouldnt the compare or je to [hack] be switched?
your doing a cmp to see if it is 00, then jump if equal to [hack] that injects 00 again


not really no, its on or off depending on what value is assigned to the pointer.

but apart from that, its probably wrong anyway, its hard to tell without they guy explaining more.

if he wants two hot keys to change the script between 2 different values (which is what im guessing he wants) its abit silly, cos you can do it with 1 hotkey, and just have it change depending if its on or off.

use the disable section to change value, somthing like this.

Code:

[enable]
alloc(hack,4)
label(return)
 
hack:
mov eax,0
ORIGINAL OPCODES HERE
jmp return

YOURADDRESS:
jmp hack
return:

[disable]
YOURADDRESS:
mov eax,1 //add the change under disable as well
ORIGINAL OPCODES HERE
dealloc(hack,4)

so basically its like this, when the AA is ticked, or hotkeyd to activate, the moves 0 into EAX, when its disabled, or again, hotkeyd to deactivate, it will change EAX to 1.

2 values, 1 hotkey.

just make sure, if you want to reset the address correctly when your done without restarting MS, remove "mov eax,1" from disable, activate/deactive.

_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"

Sign up today and receive your free "I Hate x0r Badge"
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Tue Apr 03, 2007 11:38 am    Post subject: Reply with quote

Yeah that one looks allot better, I still think the other script was passing the same byte is was comparing tho.
Back to top
View user's profile Send private message
SXGuy
I post too much
Reputation: 0

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Tue Apr 03, 2007 11:56 am    Post subject: Reply with quote

no, it was comparing a value in on and then adding the same value to eax.

the value of on and off, are inputted by the user, its not carrying any bytes from memory.
unless your talking about the one where i added the db for on and off, then yeah that shouldnt be there

_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"

Sign up today and receive your free "I Hate x0r Badge"
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Tue Apr 03, 2007 12:00 pm    Post subject: Reply with quote

Wooooooooooooooooooot!

Man we are dangerous lol...

I guess this guy just abandoned his own thread and we took it smooth over LMAO Shocked Shocked Shocked Shocked Shocked Shocked Shocked
Back to top
View user's profile Send private message
SXGuy
I post too much
Reputation: 0

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Tue Apr 03, 2007 12:04 pm    Post subject: Reply with quote

yeah looks like it.

im not gonna watch this thread anymore

laters.

_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"

Sign up today and receive your free "I Hate x0r Badge"
Back to top
View user's profile Send private message
!i ou i!
Grandmaster Cheater
Reputation: 0

Joined: 14 Jun 2004
Posts: 629

PostPosted: Wed Apr 04, 2007 3:46 pm    Post subject: Reply with quote

K, ill tell ya what it is..

I updated a Cseax based rusher for a Jump Quest, and to make that script work, i got to manually add a address. And that address' value is at 0 when it is off, and at 1 when its on..

And im creating a bot with that hack, but at a point, I want to turn it off, click on something, and turn it on.. And that's where my problem is.
Back to top
View user's profile Send private message
SXGuy
I post too much
Reputation: 0

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Wed Apr 04, 2007 5:17 pm    Post subject: Reply with quote

ok so set the pointer your adding to have a value of 0 until its activated.

like

Code:
[enable]
alloc(somthingelse,4)
registersymbol(somthingelse)
alloc(change,4)

somthingelse:
db 0

change:
mov [somthingelse],1
original opcodes here

hackaddress:
jmp change
[disable]
dealloc(somthingelse,4)
unregistersymbol(somthingelse)
dealloc(change,4)



this wont work, but you can see what i mean by making the address 0 until its activated, which is then made into 1

_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"

Sign up today and receive your free "I Hate x0r Badge"
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Thu Apr 05, 2007 12:52 pm    Post subject: Reply with quote

What are you writing the bot in?
Back to top
View user's profile Send private message
!i ou i!
Grandmaster Cheater
Reputation: 0

Joined: 14 Jun 2004
Posts: 629

PostPosted: Thu Apr 05, 2007 3:56 pm    Post subject: Reply with quote

K, thanks for the help, I understand some parts, so imma just go and try to find a solution myself.

~Closed~
Back to top
View user's profile Send private message
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