CLEO Help Auto dialog selector

CLEO related
Status
Not open for further replies.

JoeVitollo

Member
Joined
Aug 28, 2018
Messages
18
Reaction score
0
Hello, i want to create one auto dialog selector and auto from trucker job.

Sow.... I try that:

https://pastebin.com/4LRbxgdN

A short description:

I go to truck job and i wrote /work command.
After give me a truck and show one dialog type list with X routes.

I wan t to make one auto dialog response. But when i enter in game, the game give me crash message.
Is some wrong with that code?
 

davidel

Well-known member
Joined
Jan 17, 2020
Messages
207
Reaction score
7
Location
Germania
Code:
{$CLEO .cs}
 
wait 1000
 
0000: NOP
 
while true
wait 0
 
if
0B4E: samp 1@ = get_current_dialog_id
then
if
0B4C:  samp is_dialog_active 1@
then
    0AC8: 0@ = allocate_memory_size 260
    0BD8: samp get_dialog_caption 0@
    if
    0C29: $NOT_USED = stristr string1 0@ string2 "Mission Selection"
    then
        0B49: samp set_current_dialog_list_item 3
        0B47: samp close_current_dialog_with_button 1
    end
end
end
 
end

maybe?
 
Status
Not open for further replies.
Top