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 


Need help making code!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Bearzs
How do I cheat?
Reputation: 0

Joined: 21 Mar 2014
Posts: 0

PostPosted: Fri Mar 21, 2014 7:49 pm    Post subject: Need help making code! Reply with quote

I am trying to make a LUA code that when executed will replace an address's value with nop.

If someone could please show me a code that could do this or explain how i can go about making this i would greatly appreciate it!

Thanks!
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sat Mar 22, 2014 4:43 am    Post subject: Reply with quote

Code:
function NopInstructionAt(Address)
  local InstructionSize=getInstructionSize(Address);
  local BytesToWrite={};
  for i=InstructionSize,0,-1 do
    BytesToWrite[i]=0x90;
  end
  writeBytes(Address,BytesToWrite);
end

NopInstructionAt(0x00040212F)
--or
NopInstructionAt("test.exe+212A")

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
Bearzs
How do I cheat?
Reputation: 0

Joined: 21 Mar 2014
Posts: 0

PostPosted: Sat Mar 22, 2014 9:06 am    Post subject: Reply with quote

Thanks for making the code! Smile

So the address i am trying to replace with nop is "0088e5f0 " where should i put that in the script that you posted? or is there more numbers i need to get.

Thanks again for your help!
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sat Mar 22, 2014 4:55 pm    Post subject: This post has 1 review(s) Reply with quote

Find the answer yourself.

Seriously there are simple things that even a noob has to be able to figure out by himself. Otherwise it's not a hacker you'll become, it's a bot.

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
Snooman
Cheater
Reputation: 1

Joined: 20 Jan 2012
Posts: 42

PostPosted: Wed Mar 26, 2014 2:48 pm    Post subject: Reply with quote

Gniarf wrote:
Find the answer yourself.

Seriously there are simple things that even a noob has to be able to figure out by himself. Otherwise it's not a hacker you'll become, it's a bot.

Maybe you should have pointed out that the last three "code" lines of yours are examples of exactly what he is trying to do, and in addition that the "--or" does not belong to the function too Very Happy Very Happy sarcasm off
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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