Page 1 of 1
how to set limit for increse hoe key?
Posted: Sat Jun 22, 2019 3:20 pm
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?
Re: how to set limit for increse hoe key?
Posted: Sat Jun 22, 2019 3:33 pm
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]
Re: how to set limit for increse hoe key?
Posted: Sat Jun 22, 2019 3:44 pm
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
Re: how to set limit for increse hoe key?
Posted: Fri Aug 16, 2019 1:23 pm
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