CLEO Help Auto dialog answer

CLEO related
Status
Not open for further replies.

ollydbg

Active member
Joined
Jun 3, 2017
Messages
39
Reaction score
23
Help
This does not work because I think for the anti cheat or there is an error in the cleo


Code:
{$CLEO .cs}

0000: NOP
thread "FASTGPS"

:FASTGPS
wait 0
if
Samp.Available()
else_jump @FASTGPS

:FASTGPS_1782
wait 0
if 
0AB0:   key_pressed 78
jf @FASTGPS_1782
wait 1000 
0C8F: samp process_chat_input "/gps"   
wait 1000
0B4C:  samp is_dialog_active -1
wait 1000
0B49: samp set_current_dialog_list_item 7
    jump @FASTGPS_1782 
After the / gps command appears a dialog menu I want to select option 7

Someone tells me if there is an error in this script or some other method that to select option 7 in the current dialog
 

KillerZ

Active member
Joined
Apr 6, 2014
Messages
73
Reaction score
0
Try this:

Code:
{$CLEO .cs}

0000:

:Load
wait 30 
if
  SAMP.Available
else_jump @Load

while true
wait 0
    if
        0AB0:   key_pressed 78
    then
        wait 1000
        say "/gps"
        wait 1000
        0B4E: samp 1@ = get_current_dialog_id
        if
            0B4C:  samp is_dialog_active 1@
        then
            0B47: samp close_current_dialog_with_button 0
            0BC9: samp send_dialog_response dialog 1@ button 1 listitem 7 input 0
        end
    end
end
 

ollydbg

Active member
Joined
Jun 3, 2017
Messages
39
Reaction score
23
KillerZ said:
Try this:

Code:
{$CLEO .cs}

0000:

:Load
wait 30 
if
  SAMP.Available
else_jump @Load

while true
wait 0
    if
        0AB0:   key_pressed 78
    then
        wait 1000
        say "/gps"
        wait 1000
        0B4E: samp 1@ = get_current_dialog_id
        if
            0B4C:  samp is_dialog_active 1@
        then
            0B47: samp close_current_dialog_with_button 0
            0BC9: samp send_dialog_response dialog 1@ button 1 listitem 7 input 0
        end
    end
end

"Served closed conection " there is another method that it the anti-cheats does not detect
 

KillerZ

Active member
Joined
Apr 6, 2014
Messages
73
Reaction score
0
The list items start at 0, so the first item's id will be 0. What you wanted to select was 6, but that wasn't the "Server Closed Connection" problem, the problem was sending a response to the dialog twice.

This should work now.

Code:
{$CLEO .cs}

0000: NOP

:Load
wait 30 
if
 SAMP.Available
else_jump @Load

while true
wait 0
    if and
        8B21: not samp is_chat_opened
        0AB0:   key_pressed 78
    then
        wait 1000
        say "/gps"
        wait 1000
        0B4E: samp 1@ = get_current_dialog_id
        if
            0B4C:  samp is_dialog_active 1@
        then
            0B49: samp set_current_dialog_list_item 6
            0B47: samp close_current_dialog_with_button 1
        end
    end
end
 

ollydbg

Active member
Joined
Jun 3, 2017
Messages
39
Reaction score
23
KillerZ said:
The list items start at 0, so the first item's id will be 0. What you wanted to select was 6, but that wasn't the "Server Closed Connection" problem, the problem was sending a response to the dialog twice.

This should work now.

Code:
{$CLEO .cs}

0000: NOP

:Load
wait 30 
if
 SAMP.Available
else_jump @Load

while true
wait 0
    if and
        8B21: not samp is_chat_opened
        0AB0:   key_pressed 78
    then
        wait 1000
        say "/gps"
        wait 1000
        0B4E: samp 1@ = get_current_dialog_id
        if
            0B4C:  samp is_dialog_active 1@
        then
            0B49: samp set_current_dialog_list_item 6
            0B47: samp close_current_dialog_with_button 1
        end
    end
end

Now it works thx
 
Status
Not open for further replies.
Top