How to solve this?

Oct 9, 2017
8
0
1
#1
Example:
Code:
globalalloc(pbase,4)
code:
  mov [pbase],rcx  <----- working and no error
  mov [rcx+00000BC0],eax
  jmp return
Problem i'm having now:
Code:
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

Expert Cheater
Aug 3, 2017
126
5
18
#2
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:
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:
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:
 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.
 
Oct 9, 2017
8
0
1
#4
Bloodybone post_id=20721 time=1508267469 user_id=7561 said:
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:
code:
  movaps [rcx+00000120],xmm0
  jmp return
How about that one? When i do it like this:
Code:
code:
  mov [playerposxyz],rcx <---
  movaps [rcx+00000120],xmm0
  jmp return
and this too not working:
Code:
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?
 

Kalas

Cat'n America!
Fearless Donors
Table Maker
Mar 3, 2017
525
50
28
#5
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.
 
Oct 9, 2017
8
0
1
#6
Kalas post_id=22054 time=1509091492 user_id=271 said:
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?
 

Kalas

Cat'n America!
Fearless Donors
Table Maker
Mar 3, 2017
525
50
28
#7
Some need to be execute at least once, for example to get hit or lose stamina etc..
 
Top Bottom