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 


hi there im a new user
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
friedeggs912
Cheater
Reputation: 0

Joined: 25 Sep 2022
Posts: 25

PostPosted: Sun Sep 25, 2022 6:38 am    Post subject: hi there im a new user Reply with quote

hi there .. I have a small question
am playing a game and I managed to get a stable Pointer for Monster ID which is changeable every time I Aim on a monster

so I want to ask if its possible that I Auto Select the monster by its UID and then gets the the Monsters ID then Auto select it ?

I need Guidance Please I don't where to start and what program to use.. am a total beginner
thanks for your time and have a nice day.
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 30

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Sun Sep 25, 2022 11:07 am    Post subject: Reply with quote

My advice is to create your code as AOBs and save the variables until you get a unique code.

Within this aobs code should be the changed code of the monsters you are targeting.

Copy 16 bytes before monster code + monster code (Possibly 4 bytes) and 16 or 32 bytes after monster code completely.

Every time the monster changes, retake the code in the same range and paste it into a txt file (do this 5-6 times) and look at the code's variables.

Or send the 5-6 codes you have extracted here and let's look at it together.
(Note: Don't write game name.)

Use the code below if you can't trigger the game stream while retrieving the codes.

This code allows you to pause and resume the game at any time.

Copy the code in the page language, make it to CE Cheat Table Lua Script and enable it.

When you press the "F8" key on the keyboard, the game stops, when you press it again, the game continues.

Code:

if pKey then pKey.Destroy() pKey = nil end
local kState = 1

function keyPrs()
 sleep(200)
  if kState==1 then
   pause()
   kState = 2
  else
   unpause()
   kState = 1
  end
end

pKey = createHotkey(keyPrs, VK_F8)

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
friedeggs912
Cheater
Reputation: 0

Joined: 25 Sep 2022
Posts: 25

PostPosted: Sun Sep 25, 2022 7:49 pm    Post subject: Reply with quote

Thank you so much i will try this and send it Smile
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Sun Sep 25, 2022 8:57 pm    Post subject: Reply with quote

AylinCE wrote:
This code allows you to pause and resume the game at any time.

Copy the code in the page language, make it to CE Cheat Table Lua Script and enable it.

When you press the "F8" key on the keyboard, the game stops, when you press it again, the game continues.

Code:
...

There's also Edit -> Settings -> Hotkeys -> Pause the selected process

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
friedeggs912
Cheater
Reputation: 0

Joined: 25 Sep 2022
Posts: 25

PostPosted: Sun Sep 25, 2022 9:26 pm    Post subject: Reply with quote

managed to do what you said to me
got 4 lines before that changable id
with aob
got this code after several attempts of closing and restarting the game
and managed to get the diffrence after 14 times
52 00 00 00 54 00 00 00 57 00 00 00 45 00 00 00 59 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 56 00 00 00 4C 00 00 00 00 00 00 00 00 00 00 00 2? 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? (((?? ?? ?? 00))) ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 00 00 20 42 00 00 A0 41 ?4 ?? ?? 1? 00 00 00 00 FF ?? ?? 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 00 ?? ?? ??

(?? ?? ?? 00) is the one am looking for Aiming on it

i did browse memory on the second braccet and from there i coppied 4 lines before and after
and really im interested in that 2nd code since it works when using a skill it runs after

is that right so far ?
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 30

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Mon Sep 26, 2022 7:27 am    Post subject: Reply with quote

Note: I don't have a chance to try the code, I can't be at the PC for a while, I prepared it on a small screen on the phone.

On the aob code you gave, I only targeted the 4-byte range you marked between 28-32 bytes. Edit the new monster's aob code for aob2.

Each time the F8 key is pressed, the code change takes place. If the game crashes or there is a different break, change of address, you should re-enable the script and empty the "findAddr" table.

Copy the code, paste it into the CE Lua script and activate and control with F8.

Feel free to comment if there are any errors or problems.

Code:

local aob1 = "00 00 00 4C 00 00 00 00 00 00 00 00 00 00 00 00 2? 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 00@?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 00 00 20 42 00 00 A0 41 ?4 ?? ?? 1? 00 00 00 00 FF ?? ?? 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 00 ?? ?? ?? "
local aob2 = "E8 03 00 00" --Write the new code here.
local findAddr = {}

function MyAob()
sleep(300)
   --pause()
  if #findAddr==0 then
   memscan = createMemScan();
   foundlist = createFoundList(memscan)
   memscan.firstScan(soExactValue, vtByteArray, rtTruncated, aob1, nil, 0, 0x00007fffffffffff, "", fsmNotAligned, "", true, false, false, false);
   memscan.waitTillDone();
   foundlist.initialize()
    for i=0, foundlist.Count-1 do
     if foundlist.Address[i]~="" then
      findAddr[#findAddr + 1] = foundlist.Address[i].."+1C"
      --print(foundlist.Address[i])
     end
    end
   foundlist.destroy()
   memscan.destroy()
  end
  if #findAddr~=0 then
   for i,k in pairs(findAddr) do
    autoAssemble(k .. ":\ndb " .. aob2)
    --or k.value = aob2 -- or writeInteger(k,1234) --Write the 4-byte integer value of the new code you want to change there to "1234".
   end
  end
--unpause()
end

if pKey then pKey.Destroy() pKey = nil end

pKey = createHotkey(MyAob, VK_F8)

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
friedeggs912
Cheater
Reputation: 0

Joined: 25 Sep 2022
Posts: 25

PostPosted: Mon Sep 26, 2022 11:27 am    Post subject: Reply with quote

wow you are so nice for following up with me
many thanks to you

so this code will get the place where the abo is at and aim on it like aiming using mouse?
i can't wait to try it out Smile
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 30

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Mon Sep 26, 2022 2:10 pm    Post subject: Reply with quote

((?? ?? ?? 00))

If this place you marked is the place where the Monster ID is displayed, you need to find the 4-byte aob code of the monster ID you want and write it in "aob2" in the code I gave you.

Then activate the code and when you point the mouse arrow at the monster, press "F8" on your keyboard to change the monster ID.

Or something like that. Smile

Note: If there is a waste of time between selection and change, delete the "--" at the beginning of "pause()" and "unpause()" in the code and use the codes to pause and continue the game.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
friedeggs912
Cheater
Reputation: 0

Joined: 25 Sep 2022
Posts: 25

PostPosted: Mon Sep 26, 2022 2:47 pm    Post subject: Reply with quote

Okay I think you gotme wrong , im sorry

was asking for
scanning the Monster ID (changable if monster dies or Retarget) from the AOB Scan you Told me about
and its located thanks God

so when it gets the number somehow from that located Aob .. it simply do a Leftclick or Auto Target on that monster with that unknown id in game

tried the Lua Script and its not working because i dont have the monster ID to place in .. its unknown so thats why its located

down there (((?? ?? ?? 00)))

only when i click the monster the ID Appears and when i cancel its get back to 0000000
i only ask for something like memory target ? maybe i really dont know



52 00 00 00 54 00 00 00 57 00 00 00 45 00 00 00 59 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 56 00 00 00 4C 00 00 00 00 00 00 00 00 00 00 00 2? 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? (((?? ?? ?? 00))) ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 00 00 20 42 00 00 A0 41 ?4 ?? ?? 1? 00 00 00 00 FF ?? ?? 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 00 ?? ?? ??

I hope you understand me i know its really confusing a bit
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 30

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Mon Sep 26, 2022 11:43 pm    Post subject: Reply with quote

I understand now.
What I did was make you replace the current monster with lower level monsters.

But what you want is to try to direct the mouse arrow to the monster in the game.

My advice: Since it will be difficult to reach the mouse arrow routing code within the game screen, you should scan the alive and dead codes of the monsters. It's also possible that the code you're sharing is somewhere around it, or elsewhere.

With CE it is possible to write code to not automate mouse movements (positioning), since all positions must be predefined. This brings up the question; Do monsters always appear in the same places? Or are monster locations fixed?

Keep brainstorming until you come up with a solution. Smile

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
friedeggs912
Cheater
Reputation: 0

Joined: 25 Sep 2022
Posts: 25

PostPosted: Tue Sep 27, 2022 12:12 am    Post subject: Reply with quote

yes Exactly , Thanks
i will try to get the positions or the dead/live Id
no they spawn in diffrent positions
i know thats going to be hard ;s
so u want me to find it in AOB or pointers? or maybe try my luck in both?
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 30

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Tue Sep 27, 2022 12:24 am    Post subject: Reply with quote

I don't use asm and can't test pointers because if aob I can help.

However, do whatever comes easy to you. There is definitely a master who will give an idea or help.

The easy code is the dead-alive code. Movement codes are not used in most games.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
friedeggs912
Cheater
Reputation: 0

Joined: 25 Sep 2022
Posts: 25

PostPosted: Wed Sep 28, 2022 2:49 am    Post subject: Reply with quote

Thank you so much
i came up with the code that gets the monsters id around me and it updates when they die a good one though

please I only need a Code to Copy and paste the Numbers in 4bytes to the other place where it needs the Monster ID

so the old AOB Code Stays

52 00 00 00 54 00 00 00 57 00 00 00 45 00 00 00 59 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 56 00 00 00 4C 00 00 00 00 00 00 00 00 00 00 00 2? 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? (((?? ?? ?? 00))) ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? ?? 00 00 20 42 00 00 A0 41 ?4 ?? ?? 1? 00 00 00 00 FF ?? ?? 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 00 ?? ?? ??

(((?? ?? ?? 00))) << wanted to paste other AOB Code where the id is


thank you
I will paste the other AOB codes soon since am at work now
Back to top
View user's profile Send private message
friedeggs912
Cheater
Reputation: 0

Joined: 25 Sep 2022
Posts: 25

PostPosted: Sat Oct 01, 2022 7:43 am    Post subject: Reply with quote

I Defined my AOBs Places with names now
so Aim ID = _aim
and the Monster Around id = Special_

so the code up there that you sent it not working for me Rolling Eyes

I wanted to get the code in Special to be copied to _aim

is that possible ?
Back to top
View user's profile Send private message
friedeggs912
Cheater
Reputation: 0

Joined: 25 Sep 2022
Posts: 25

PostPosted: Sun Oct 02, 2022 3:28 am    Post subject: Reply with quote

again ... i mean
if its possible to Search the memory by the names i Defined for the AOBs
and takes the number in" _special" to "_aim "
every 5 seconds ?

if not possible ... please Exclamation

use an AoB Example

to take the value from AOB- Example B and put it in AOB- Example A
and keep copying every 5 seconds

Thank you for your time. Crying or Very sad
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 Lua Scripting All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 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