| View previous topic :: View next topic |
| Author |
Message |
ghmarko Cheater
Reputation: 0
Joined: 31 Jan 2020 Posts: 29 Location: 192.168.0.1
|
Posted: Fri Jan 31, 2020 9:27 am Post subject: Have problem while write value |
|
|
Hello guys..
i have written this script but when the [Get_id] value is invalid The game will hang and close
(same crash) how can i solve this
newmem:
mov edi,[Get_ID]
xor esi,esi
jmp return
the Get_ID i taken it from another Function
And sorry for my bad English not my Language
|
|
| Back to top |
|
 |
DanyDollaro Master Cheater
Reputation: 3
Joined: 01 Aug 2019 Posts: 334
|
Posted: Fri Jan 31, 2020 9:49 am Post subject: |
|
|
| Too general question, based on what you say if it is valid or not? it would be enough to follow a check before moving it to edi, or to see why the function returned an invalid ID
|
|
| Back to top |
|
 |
Cyberfreak Cheater
Reputation: 0
Joined: 28 Jan 2017 Posts: 30
|
Posted: Fri Jan 31, 2020 2:18 pm Post subject: |
|
|
My solution for a similar situation. Compare if it contains 0. If greater than 0, jump to the code and use it, otherwise do nothing and jump to return.
newmem:
cmp [rbx+44],0
jg code
nop
jmp return
code:
mov [rbx+44],(float)199.9
jmp return
|
|
| Back to top |
|
 |
ghmarko Cheater
Reputation: 0
Joined: 31 Jan 2020 Posts: 29 Location: 192.168.0.1
|
Posted: Sat Feb 01, 2020 4:16 am Post subject: |
|
|
| Cyberfreak wrote: | My solution for a similar situation. Compare if it contains 0. If greater than 0, jump to the code and use it, otherwise do nothing and jump to return.
newmem:
cmp [rbx+44],0
jg code
nop
jmp return
code:
mov [rbx+44],(float)199.9
jmp return |
but the invalid value not equal 0 its may be 78745236
|
|
| Back to top |
|
 |
Cyberfreak Cheater
Reputation: 0
Joined: 28 Jan 2017 Posts: 30
|
Posted: Mon Feb 03, 2020 1:19 am Post subject: |
|
|
Indeed, my example only checks if it contains a value (not NUL/empty), and if this value is bigger than 0. You have to adapt this example for your situation. As an explanation, if your script is about players health, and the health value can be between 0 and 199.9, you can perform 2 compare. First if it's bigger than 0, second if its smaller than 200.
Otherwise, as Danny said, give us an explanation what is a "valid" value for your situation.
|
|
| Back to top |
|
 |
ghmarko Cheater
Reputation: 0
Joined: 31 Jan 2020 Posts: 29 Location: 192.168.0.1
|
Posted: Mon Feb 03, 2020 5:27 am Post subject: |
|
|
| Cyberfreak wrote: | Indeed, my example only checks if it contains a value (not NUL/empty), and if this value is bigger than 0. You have to adapt this example for your situation. As an explanation, if your script is about players health, and the health value can be between 0 and 199.9, you can perform 2 compare. First if it's bigger than 0, second if its smaller than 200.
Otherwise, as Danny said, give us an explanation what is a "valid" value for your situation. |
this random Target ID when not target appear in the screen game crash
|
|
| Back to top |
|
 |
DanyDollaro Master Cheater
Reputation: 3
Joined: 01 Aug 2019 Posts: 334
|
Posted: Mon Feb 03, 2020 7:22 am Post subject: |
|
|
We are not fortune tellers, you cannot create a script that tells you if that ID is valid or not if you don't even know how to distinguish it.
The function from which you get the ID will have to give you some more information, try to check the various bits and see if there is any bit that varies in a particular way, otherwise you will have to find some other method to understand if an ID is correct or not.
|
|
| Back to top |
|
 |
|