how to set limit for increse hoe key?

Memory scanning, code injection, debugger internals and other gamemodding related discussion
Post Reply
DRDNK1000
Cheater
Cheater
Posts: 33
Joined: Mon May 27, 2019 8:58 pm
Reputation: 6

how to set limit for increse hoe key?

Post by DRDNK1000 »

so i found item slot id.

i use hot key to increase/decrase whit 1
now the thing is ,when u put number large then 50
your game will crush
can i limit the increase to 50?/deacrease to 0?

User avatar
GreenHouse
GreenHouse!
GreenHouse!
Posts: 525
Joined: Fri Oct 12, 2018 10:25 pm
Reputation: 408

Re: how to set limit for increse hoe key?

Post by GreenHouse »

Not with the hotkeys you're using. But it's possible with LUA.
I can't help you with that, sadly, as my LUA knowledge is really limited. But if you know LUA or can find some info online, it should be easy enough with just a comparison of the value. Here are the two things you need:
Lua Hotkey: [Link]
Increment until specific value: [Link]

DRDNK1000
Cheater
Cheater
Posts: 33
Joined: Mon May 27, 2019 8:58 pm
Reputation: 6

Re: how to set limit for increse hoe key?

Post by DRDNK1000 »

GreenHouse wrote:
Sat Jun 22, 2019 3:33 pm
Not with the hotkeys you're using. But it's possible with LUA.
I can't help you with that, sadly, as my LUA knowledge is really limited. But if you know LUA or can find some info online, it should be easy enough with just a comparison of the value. Here are the two things you need:
Lua Hotkey: [Link]
Increment until specific value: [Link]
thank you very much man

User avatar
Chucky
Expert Cheater
Expert Cheater
Posts: 57
Joined: Thu Mar 08, 2018 4:01 pm
Reputation: 16

Re: how to set limit for increse hoe key?

Post by Chucky »

Code: Select all

push eax
push ebx
mov eax,[slot_Id_Address]
xor ebx,ebx
cmp eax,ebx
cmovl eax,ebx
mov ebx,32
cmp eax,ebx
cmovg eax,ebx
mov [slot_Id_Address],eax
pop ebx
pop eax

Post Reply

Who is online

Users browsing this forum: No registered users