Auto input number in dialog?

Status
Not open for further replies.
OP
OP
B
Joined
Nov 30, 2017
Messages
17
Likes
0
Points
1
#3
springfield said:
There are some examples /scripts for something similiar here -> http://ugbase.eu/Thread-Get-Dialog-Numbers
Yes, but  I need to write that letter T every time it changes
I using 

{$CLEO .cs}

0000:
while not samp.Available()
    wait 100
end
alloc [email protected] 32
format [email protected] "Ar Jūs Žmogus?" //dialog title to detect
   
while true
wait 0 
0AC8: [email protected] = allocate_memory_size 260 // ALLOCATE MEMORY FOR THE CHAT STRING
0AB1: @GETCHATENTRYTEXT 1 id 99 to [email protected] // THIS IS A FUNCTION THAT STORES THE LAST CHAT STRING INTO [email protected]
IF
0B4C: samp is_dialog_active -1
then
    alloc [email protected] 256                           
    0BD8: samp get_dialog_caption [email protected]
    if 0C14: strcmp string1 [email protected] string2 [email protected] //comparing
    then
        free [email protected]
        0B4B: samp set_current_dialog_editbox_text "k"
        0B47: samp close_current_dialog_with_button 1
        end
    end 
//////////////////////////////////////////////////////////////////////
IF
0C29: [email protected] = stristr string1 [email protected] string2 "Testas neįvykdytas" 
    THEN
        wait 1500
        0AF9: samp say_msg "Nebemetyk arbotu"
        wait 500
    END    
    0AC9: free_allocated_memory [email protected] // FREE THE MEMORY
END


:getChatEntryText
0AF7: samp [email protected] = get_base
[email protected] += 0x21A0E4
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x136
[email protected] *= 252 // size of stChatEntry
005A: [email protected] += [email protected] // (int)
[email protected] += 28
0AB2: 1 [email protected]
But is bad because is typing "k" [size=x-large]And I need to write an appropriate letter every time sorry for bad english[/size]


http://prntscr.com/hhef1e
 

opce

Well-Known Member
Joined
Dec 11, 2014
Messages
62
Likes
0
Points
6
#4
Klausk, Parazito jis padėtu padėčiau aš turėjau šita cleo kažkur, kad auto atsako į šitą shit bet be PC.
 
Status
Not open for further replies.
Top