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 


Question for 2 compares at once with xmm0

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
kik4444
Expert Cheater
Reputation: 0

Joined: 07 Sep 2013
Posts: 120
Location: Bulgaria

PostPosted: Sat Nov 23, 2013 12:54 pm    Post subject: Question for 2 compares at once with xmm0 Reply with quote

This question is mostly aimed at ++METHOS:
Remember this script you gave me?
Code:
[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(filter1)
label(filter2)
label(cheat)
label(money_enable)
label(ammo_enable)
registersymbol(money_enable)
registersymbol(ammo_enable)

newmem:
cmp [eax+2C],00000005
je filter1
cmp [eax+30],00000000
je filter2
jmp originalcode

filter1:
cmp [money_enable],1
je cheat
jmp originalcode

filter2:
cmp [ammo_enable],1
je cheat
jmp originalcode

originalcode:
mov [eax+0C],ecx
mov al,01
jmp returnhere

cheat:
mov ecx,#999999
mov [eax+0C],ecx
mov al,01
jmp returnhere

money_enable:
dd 0
ammo_enable:
dd 0

"AC4BFSP.exe"+C81D33:
jmp newmem
returnhere:
 
[DISABLE]
dealloc(newmem)
"AC4BFSP.exe"+C81D33:
mov [eax+0C],ecx
mov al,01

unregistersymbol(money_enable)
unregistersymbol(ammo_enable)


Will it work if the health was stored in xmm0 and I made a compare to have separate inf health and one hit kill scripts like this?:
Code:

cmp [offset],01
je filter
cmp [offset],02
je filter2
jmp originalcode

filter:
cmp [health_enable],1
je cheat
jmp originalcode

filter2:
cmp [kill_enable],1
je cheat2
jmp originalcode

cheat:
push eax
mov eax,(float)1
movd xmm0,eax
pop eax
jmp returnhere

cheat2:
push eax
mov eax,0
movd xmm0,eax
pop eax
jmp returnhere


Will the code work like that so you can have it separate and be able to run it simoultaneously?
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Sat Nov 23, 2013 1:45 pm    Post subject: Reply with quote

yes
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Nov 23, 2013 1:58 pm    Post subject: Reply with quote

+1 TsTg Very Happy

By the way, if you are ever unsure about something like this, you can just test it...it is good for learning and you will feel better about your results. Cool
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
Page 1 of 1

 
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