CLEO Help find object

CLEO related
Status
Not open for further replies.
Joined
Nov 12, 2018
Messages
11
Reaction score
0
Location
Vietnam
i try to write cleo to find object 899 in stream area and it's fall to crash

Code:
{$CLEO .cs}

thread 'TimKS'
repeat
    wait 1000
    0A8D: 0@ = readMem 0xA444A0 sz 4 vp 0
until 0@ == 1

32@ = 0
33@ = 0

while true
    wait 0
    
    if
        0ADC:   test_cheat "FIND"
    then
        if
            30@ == false
        then
            30@ = true   
            0AD1: show_formatted_text_highpriority "~g~Activated" time 1337
            32@ = 0
            33@ = 0     
        else
            30@ = false
            0AD1: show_formatted_text_highpriority "~r~Deactivated" time 1337
        end
    end
    
    if
        30@ == true
    then
        0AB1: @findKhoangSan
    end
end

:findKhoangSan
    0A8D: 29@ = read_memory 0xB7449C size 4 virtual_protect 0
    000A: 29@ += 0x4
    0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
    for 30@ = 0 to 89344 step 0x100
        0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
        000A: 29@ += 0x1
        if and
            0029:  31@ >= 0x00
            001B:  0x80 > 31@
        then
            005A: 31@ += 30@   
            if and
                03CA:   object 31@ exists
                02CC:   object 31@ bounding_sphere_visible
            then
                0984: 10@ = object 31@ model
                if
                    10@ == 899
                then
                    01BB: store_object 31@ position_to 1@ 2@ 3@
                    9@ = Marker.CreateIconAndSphere(56, 1@, 2@, 3@)
                end
            end
        end
    end
    0AB2: ret 0
 
Status
Not open for further replies.
Top