CLEO Help 0B8C: samp is_cursor_active

CLEO related
Status
Not open for further replies.

mpol77

Active member
Joined
Oct 24, 2018
Messages
66
Reaction score
6
0.3DL, no sampfuncs

rather than checking with is_chat_open and is_dialog_active, I thought it'd be smarter to use 0B8C == false to check for stuff like dialogs, scoreboards, chat open etc.
any clue on how to find this specific offset? i looked through samp.h but nothing relevant in there

thx by advance
 

mpol77

Active member
Joined
Oct 24, 2018
Messages
66
Reaction score
6
thanks a bunch!

edit:

:isCursorActive
0AA2: 1@ = "samp.dll"
1@ += 0x2ACA3C
0A8D: 1@ = read 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0xA0530
0A8D: 2@ = read 2@ sz 4 vp 0
0AB2: ret 1 2@

this ain't working, i must be doing something wrong
 
Last edited:

_Safa

Well-known member
Joined
Sep 22, 2019
Messages
297
Reaction score
103
Location
UGBASE
Try changing the sizes to 1 as it should be a byte. Im not sure about that. And print out the values again.

Writing 0x01 to that offset should activate the cursor but as I said I'm not sure.
 

mpol77

Active member
Joined
Oct 24, 2018
Messages
66
Reaction score
6
:isCursorActive
0AA2: 1@ = "samp.dll"
1@ += 0x2ACA3C
0A8D: 1@ = read 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0xA0530
0A8D: 2@ = read 2@ sz 4 vp 0 (sz 1 here didn't work)
0AB2: ret 1 2@

And in another part of the code:

0AB1: @isCursorActive 0 active 31@
0AD1: show_formatted_text_highpriority txt "cursor: %d" time 2000 31@
 
Status
Not open for further replies.
Top