CLEO Help 0.3DL address updates

CLEO related
Status
Not open for further replies.

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania

_Safa

Well-known member
Joined
Sep 22, 2019
Messages
297
Reaction score
103
Location
UGBASE
But what does this snippet?

C++:
:isChatOpen //0AB1: @isChatOpen 0 <- springfields snippet
0AA2: 1@ = "samp.dll"
1@ += 0x212A70
0A8D: 1@ = readMem 1@ sz 4 vp 0
1@ += 8
0A8D: 1@ = readMem 1@ sz 4 vp 0
1@ += 4
0A8D: 1@ = readMem 1@ sz 1 vp 0
if 1@ <> 0
then 0485: chat_open
else 059A: chat_closed
end
0AB2: ret 0
 

mpol77

Active member
Joined
Oct 24, 2018
Messages
66
Reaction score
6
Snippet
PHP:
:GetRadarBlipInfo
{
    0AB1: @GetRadarBlipInfo 1 BlipID 0@ _Return: ColorID 1@ RGB 2@ 3@ 4@ XYZ 5@ 6@ 7@ IconID 8@
}
0A90: 1@ = 0@ * 0x28 // int
000A: 1@ += 0xBA86F0
0A8E: 31@ = 1@ + 0 // DWORD dwColourID
0A8D: 2@ = read_memory 31@ size 4 virtual_protect 0

// Get blip color RGB from color id
0A90: 30@ = 2@ * 4 // int
000A: 30@ += 0xBAB22C
0A8D: 3@ = read_memory 30@ size 1 virtual_protect 0 // R
000A: 30@ += 1
0A8D: 4@ = read_memory 30@ size 1 virtual_protect 0 // G
000A: 30@ += 1
0A8D: 5@ = read_memory 30@ size 1 virtual_protect 0 // B
// End of RGB

0A8E: 31@ = 1@ + 8 // PosX (float)
0A8D: 6@ = read_memory 31@ size 4 virtual_protect 0

0A8E: 31@ = 1@ + 12 // PosY  (float)
0A8D: 7@ = read_memory 31@ size 4 virtual_protect 0

0A8E: 31@ = 1@ + 16 // PosZ  (float)
0A8D: 8@ = read_memory 31@ size 4 virtual_protect 0

0A8E: 31@ = 1@ + 36 // BYTE byteIconID
0A8D: 9@ = read_memory 31@ size 1 virtual_protect 0

0AB2: ret 8 2@ 3@ 4@ 5@ 6@ 7@ 8@ 9@

I've seen your snippet, but I have no idea on how to use it in this context the jumps are making it hard to understand
the code itself is using a lot of variable incrementations (/= += *=) but it's very unclear
 
Status
Not open for further replies.
Top