How to solve this?

Post your topics and discussions here that you can't find a good section for.
Post Reply
meymeygila
Noobzor
Noobzor
Posts: 8
Joined: Mon Oct 09, 2017 1:48 pm
Reputation: 0

How to solve this?

Post by meymeygila »

Example:

Code: Select all

globalalloc(pbase,4)
code:
  mov [pbase],rcx  <----- working and no error
  mov [rcx+00000BC0],eax
  jmp return
  
Problem i'm having now:

Code: Select all

globalalloc(hbase,4)
code:
  mov [hbase],????  <----- How to solve this? "mov [hbase],r10+rcx*4" gives me an error
  mov [r10+rcx*4+00002210],eax
  jmp return

Bloodybone
Table Makers
Table Makers
Posts: 336
Joined: Thu Aug 03, 2017 6:19 am
Reputation: 206

Re: How to solve this?

Post by Bloodybone »

You have to use another register for it I don't know what it was but one of it should work just try both:

1:

Code: Select all

globalalloc(hbase,4)
code:
  push  rbx // Push Register that's not used in the script already
  lea rbx,[r10+rcx*4+00002210]
  mov [hbase],rbx 
  pop rbx
  mov [r10+rcx*4+00002210],eax
  jmp return

2:

Code: Select all

globalalloc(hbase,4)
code:
  push  rbx // Push Register that's not used in the script already
  mov rbx,[r10+rcx*4+00002210]
  mov [hbase],rbx 
  pop rbx
  mov [r10+rcx*4+00002210],eax
  jmp return

Edit: I think you can also do it manualy like

Code: Select all

 globalalloc(hbase,4)
code:
  mov [hbase],r10 // r10 is the base, rcx*4+00002210 is the offset this way you have to manualy calculate rcx*4+00002210 and add hbase + the offset you calculated to the adress list
  mov [r10+rcx*4+00002210],eax
  jmp return
Edit2: It was the first one i tried you have to only add [hbase] to the adress list NO OFFSET if you use the first one because it gets automaticly calculated thats what lea does.

meymeygila
Noobzor
Noobzor
Posts: 8
Joined: Mon Oct 09, 2017 1:48 pm
Reputation: 0

Re: How to solve this?

Post by meymeygila »

Thank you!

meymeygila
Noobzor
Noobzor
Posts: 8
Joined: Mon Oct 09, 2017 1:48 pm
Reputation: 0

Re: How to solve this?

Post by meymeygila »

Bloodybone wrote:
Tue Oct 17, 2017 7:11 pm
You have to use another register for it I don't know what it was but one of it should work just try both:
Got another problem:

Code: Select all

code:
  movaps [rcx+00000120],xmm0
  jmp return
How about that one? When i do it like this:

Code: Select all

code:
  mov [playerposxyz],rcx <---
  movaps [rcx+00000120],xmm0
  jmp return
and this too not working:

Code: Select all

code:
  push rax
  mov rax,playerposxyz
  mov [rax],rcx
  pop rax
  movaps [rcx+00000120],xmm0
  jmp return
it gave me different address / not working, the actual address was C0611CA0 but those scripts showed different and it keep changing the address after i tick it, but one of those changes showed the C0611CA0. How to make it stays with one address and show correct one?

User avatar
Kalas
Expert Cheater
Expert Cheater
Posts: 548
Joined: Fri Mar 03, 2017 9:49 am
Reputation: 134

Re: How to solve this?

Post by Kalas »

You need to compare, filter to show only your player.

Check what access this address and see If you have more then just your player value.

meymeygila
Noobzor
Noobzor
Posts: 8
Joined: Mon Oct 09, 2017 1:48 pm
Reputation: 0

Re: How to solve this?

Post by meymeygila »

Kalas wrote:
Fri Oct 27, 2017 8:04 am
You need to compare, filter to show only your player.

Check what access this address and see If you have more then just your player value.
Thanks you! i was using what write instead of what access. There were bunch of addresses when i use what access so i test one by one and found it! :D

Problem solved, it now show the correct address.

One last question: Why most ct scripts cant be tick unless you interact in game? Like Health, your character must get hit by monster first before you can tick/activate the script. Is there a way to prevent this?

User avatar
Kalas
Expert Cheater
Expert Cheater
Posts: 548
Joined: Fri Mar 03, 2017 9:49 am
Reputation: 134

Re: How to solve this?

Post by Kalas »

Some need to be execute at least once, for example to get hit or lose stamina etc..

Post Reply

Who is online

Users browsing this forum: No registered users