CLEO Help How to answer a dialog?

CLEO related
Status
Not open for further replies.

kakaka

Active member
Joined
Jun 7, 2014
Messages
59
Reaction score
0
How to create Cleo,when open 1 dialog and automatically respond end press enter?
 

kakaka

Active member
Joined
Jun 7, 2014
Messages
59
Reaction score
0
Opcode.eXe link said:
0B47: samp close_current_dialog_with_button 1@
look for sampfuncs opcodes

i'm try create anti-afk,when i kicked from the server,connect and make login.But i crashing.

Code:
{$CLEO}


0000: NOP
while true
wait 0
if 
not samp.Available()
then
0B27: samp set_gamestate 1 
wait 4000
SAMP.SetDialogInputBoxText("mypassword")
SAMP.CloseDialog(1)
end
end
   

But when i kicked,i'm not reconnecting.samp.Available() is not correct?
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Here's my auto-relog.

Code:
{$CLEO}
0000: NOP
wait 2000

while true
wait 0
0AC8: 0@ = 260
0AB1: @getChatEntryText 1 99 0@
if 0C14: strcmp string1 0@ string2 "Server closed the connection."
then 
    wait 10000 
    0B27: samp set_gamestate 1  
    repeat
    wait 100
    until 0B4C: samp is_dialog_active -1
    0B4B: samp set_current_dialog_editbox_text "password"
    wait 200
    0B47: samp close_current_dialog_with_button 1
    wait 200
end
0AC9: 0@
end

:getChatEntryText
0AA2: 1@ = "samp.dll"
1@ += 0x212A6C
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x136
0@ *= 252 
005A: 1@ += 0@ 
1@ += 28
0AB2: ret 1 1@
 
Status
Not open for further replies.
Top