[CLOSED][CLEO] Accepting request

testtest2

Member
Joined
Jun 21, 2019
Messages
6
Reaction score
0
Which one?

this one you have made. i use your cleo but after i open signcheck box nothing happen
this is my signcheck textbox:
Code:
{$CLEO .cs}
0000:
while not samp.Available()
   wait 100
end

while true
wait 0

if
0B4C: samp is_dialog_active -1
then
   wait 200
   alloc 5@ 512 //alloc
   0BD7: 5@ //get text
   if
   0ad4: $NOT_USED = scan 5@ "Check code: %d" 6@
   then
       alloc 0@ 8
       format 0@ "%d" 6@
       0B4B: samp set_current_dialog_editbox_text 0@
       free 0@
       wait 3000 // pause 3sec and then close dialog
       0B47: samp close_current_dialog_with_button 1
   end
end

end
 

Attachments

  • aaa.jpg
    aaa.jpg
    19.8 KB · Views: 13
Last edited:

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
this one you have made. i use your cleo but after i open signcheck box nothing happen
this is my signcheck textbox:
Code:
{$CLEO .cs}
0000:
while not samp.Available()
   wait 100
end

while true
wait 0

if
0B4C: samp is_dialog_active -1
then
   wait 200
   alloc 5@ 512 //alloc
   0BD7: 5@ //get text
   if
   0ad4: $NOT_USED = scan 5@ "Check code: %d" 6@
   then
       alloc 0@ 8
       format 0@ "%d" 6@
       0B4B: samp set_current_dialog_editbox_text 0@
       free 0@
       wait 3000 // pause 3sec and then close dialog
       0B47: samp close_current_dialog_with_button 1
   end
end

end
This thread was closed...
Use this one ...:
http://ugbase.eu/index.php?threads/accepting-request.20630/page-9#post-121585
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
hi is there anything requirement this cleo ? i get crashed thanks more power
SAMPFUNCS, also every server have different sign check and samp version.
Everthing depends from server and signcheck system.
 
D

Deleted member 59047

Guest
SAMPFUNCS, also every server have different sign check and samp version.
Everthing depends from server and signcheck system.
Samp 0.3.dl version but there is no Samofuncs for that server sad btw thanks for your time
 
D

Deleted member 59047

Guest
First we must see dialog maybe????


1: /signcheck then dialog textbox appear
2: signcheck is every 1hour
3: 6 digit combination code
4: server 0.3.dl r1
 

Attachments

  • 83401994_176364430094152_2354270075441119232_n.jpg
    83401994_176364430094152_2354270075441119232_n.jpg
    187.5 KB · Views: 20

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
1: /signcheck then dialog textbox appear
2: signcheck is every 1hour
3: 6 digit combination code
4: server 0.3.dl r1
All this information was taken from this website...
PHP:
{$CLEO .cs}

0000:

wait 8500

0AC8: 1@ = allocate_memory_size 256
0AD3: 1@ = format "Sign check" /// dialog tite to comapare


while true
wait 0

if
0AB1: @GetDialogCaption 0 0@
then
    if
    0AB1: @search_text_in_the_text 2 String1 0@ String2 1@
    then 
        0AB1: @getDialogText 0 2@
        0AB1: @CollectAllDigits 1 stringPointer 2@ // self return
        0AB1: @SetChatInputEditBoxText 1 => text 1@
        0AB1: @CloseCurrentDialogWithButton 1 Button 1 // 1 = Left , 0 = Right
    end
end

end

:GetDialogCaption
{
    0.3.DL
}
0AA2: 1@ = "samp.dll"
1@ += 0x2AC9E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0x28 //DialogOpenOffset
0A8D: 2@ = readMem 2@ sz 4 vp 0
if 2@ == 1 // Dialog open
then
    0A8E: 3@ = 1@ + 0x40 //DialogCaptionOffset
    0485: dialog_open
    0AB2: ret 1 3@
else
    059A:  dialog closed
end
0AB2: ret 0

:GetDialogText
{
    0.3.7 - R3
}
0AA2: 1@ = "samp.dll"
1@ += 0x2AC9E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0x28 //DialogOpenOffset
0A8D: 2@ = readMem 2@ sz 4 vp 0
if 2@ == 1 // Dialog active
then
    0A8E: 3@ = 1@ + 0x2C //DialogTypeOffset
    0A8D: 3@ = readMem 3@ sz 4 vp 0
    if or
    3@ == 0 // DIALOG_STYLE_MSGBOX 
    3@ == 1 // DIALOG_STYLE_INPUT
    3@ == 3 // DIALOG_STYLE_PASSWORD
    then 
        0A8E: 4@ = 1@ + 0x34 // DialogTextOffset
        0A8D: 4@ = readMem 4@ sz 4 vp 0 
        0485: dialog_open
        0AB2: ret 1 4@
    else 059A:  dialog closed
    end
end
0AB2: ret 0

:SetDialogInputEditBoxText
{
    0.3.DL
    0AB1: @SetChatInputEditBoxText 2 => text 0@ selected 0
}
if 0AA2: 2@ = "samp.dll"
then
    0A8E: 3@ = 2@ + 0x2AC9E0            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: 3@ = readMem 3@ sz 4 vp 0     // pDialog;
    0A8E: 4@ = 3@ + 0x24                // pDialog->pEditBox;
    0A8D: 4@ = readMem 4@ sz 4 vp 0     // pEditBox;
   
    0A8E: 5@ = 2@ + 0x85000 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
   
    // CDXUTEditBox::SetText takes 2 params
    // 1 - pointer to zero terminated string
    // 2 - bool, if text is to be selected or not
   
    0AA8: call_function_method 5@ struct 4@ num_params 2 pop 0 _bSelected 0 _pszText 0@ _retVal 6@
end
0AB2: 0

:CloseCurrentDialogWithButton
{
    0.3.DL
    0AB1: @CloseCurrentDialogWithButton 1 Button 0 // 1 = Left , 0 = Right
}
IF 0AA2: 10@ = "samp.dll"
THEN  
    0A8E: 11@ = 10@ + 0x2AC9E0 // SAMP_DIALOG_INFO_OFFSET
    0A8D: 12@ = readMem 11@ sz 4 vp 0
    0A8E: 11@ = 10@ + 0x700D0 //SAMP_DIALOG_CLOSE
    0AA8: call_function_method 11@ struct 12@ num_params 1 pop 0 0@ $NOT_USED
END
0AB2: 0

:search_text_in_the_text
{
    Example: 0AB1: call @search_text_in_the_text 2 String1 0@ String2 1@ 
    In: 0@ - text; 1@ - string;
    Out: True or False;
}
var 
    2@:int
    3@:int
    4@:int
    5@:int
    7@:int
    8@:int
end
7@ = 0
0AB1: @strlen 1 string 0@ _return: 4@
0AB1: @strlen 1 string 1@ _return: 8@
if or 
8@ > 4@
8@ <= 0
then
    059A: return_false
    0AB2: ret 0
end
0AC8: 6@ = allocate_memory_size 1024
0AB1: @memset 3 destination 6@ value 0 size 1024
0AB1: @memcpy 3 destination 6@ source 1@ size 8@  
for 5@ = 0 to 4@
0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
0A8D: 3@ = read_memory 1@ size 1 virtual_protect 0
    if 2@ == 3@
    then 
        inc(1@)
        inc(7@)
    else
        7@ = 0 
        0AB1: @memcpy 3 destination 1@ source 6@ size 8@   
    end
    if 7@ == 8@
    then
        0485: return_true
        0AB2: ret 0    
    end
inc(0@) 
end
059A: return_false
0AC9: 6@
0AB2: ret 0

:strlen
{
    Example: 0AB1: @strlen 1 string 1@ return: 3@
    In: 0@ - text;
    Out: 1@ - size;
}
for 1@ = 0 to 1024
    0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
    if not 2@ == 0
    jf break
    0@ += 1
end
0AB2: ret 1 1@

:memcpy

var
0@ : integer
1@ : integer
2@ : integer
3@ : integer
end

// 0@ - destination, 1@ - source, 2@ - size
// Example: 0AB1: @memcpy 3 destination 0@ source 1@ size 2@

dec(2@)
for 3@ = 0 to 2@
    0A8D: 4@ = read_memory 1@ size 1 virtual_protect 0
    0A8C: write_memory 0@ size 1 value 4@ virtual_protect 0
    1@ += 1
    0@ += 1
end
0AB2: ret 0

:memset

var
0@ : integer
1@ : integer
2@ : integer
3@ : integer
end

// 0@ - destination, 1@ - value, 2@ - size
// Example: 0AB1: @memset 3 destination 0@ value 32 size 1
2@ -= 1
for 3@ = 0 to 2@
0A8C: write_memory 0@ size 1 value 1@ virtual_protect 0
0@ += 1
end
0AB2: ret 0

:CollectAllDigits
{
    0AB1: @CollectAllDigits 1 stringPointer 1@
    Self Return: 1@ - Digits
}
0C17: 31@ = strlen 0@
31@ -= 1
0085: 28@ = 0@
005A: 28@ += 31@
0085: 27@ = 0@
for 30@ = 0@ to 28@
0A8D: 29@ = read_memory 30@ size 1 virtual_protect 1
    if and // if is equal or higher than "0" in ascii, and if is equal or lower than "9" in ascii (http://www.asciitable.com/index/asciifull.gif)
    0029:   29@ >= 48
    002B:   57 >= 29@
    then
        0A8C: write_memory 27@ size 1 value 29@ virtual_protect 1
        27@++ //27@ increases only if it's a digit
    else
        // do nothing...
    end     
end
0A8C: write_memory 27@ size 1 value 0 virtual_protect 1
0AB2: ret 0
 

bjornwel

Member
Joined
Aug 10, 2013
Messages
7
Reaction score
0
All this information was taken from this website...
PHP:
{$CLEO .cs}

0000:

wait 8500

0AC8: 1@ = allocate_memory_size 256
0AD3: 1@ = format "Sign check" /// dialog tite to comapare


while true
wait 0

if
0AB1: @GetDialogCaption 0 0@
then
    if
    0AB1: @search_text_in_the_text 2 String1 0@ String2 1@
    then
        0AB1: @getDialogText 0 2@
        0AB1: @CollectAllDigits 1 stringPointer 2@ // self return
        0AB1: @SetChatInputEditBoxText 1 => text 1@
        0AB1: @CloseCurrentDialogWithButton 1 Button 1 // 1 = Left , 0 = Right
    end
end

end

:GetDialogCaption
{
    0.3.DL
}
0AA2: 1@ = "samp.dll"
1@ += 0x2AC9E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0x28 //DialogOpenOffset
0A8D: 2@ = readMem 2@ sz 4 vp 0
if 2@ == 1 // Dialog open
then
    0A8E: 3@ = 1@ + 0x40 //DialogCaptionOffset
    0485: dialog_open
    0AB2: ret 1 3@
else
    059A:  dialog closed
end
0AB2: ret 0

:GetDialogText
{
    0.3.7 - R3
}
0AA2: 1@ = "samp.dll"
1@ += 0x2AC9E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0x28 //DialogOpenOffset
0A8D: 2@ = readMem 2@ sz 4 vp 0
if 2@ == 1 // Dialog active
then
    0A8E: 3@ = 1@ + 0x2C //DialogTypeOffset
    0A8D: 3@ = readMem 3@ sz 4 vp 0
    if or
    3@ == 0 // DIALOG_STYLE_MSGBOX
    3@ == 1 // DIALOG_STYLE_INPUT
    3@ == 3 // DIALOG_STYLE_PASSWORD
    then
        0A8E: 4@ = 1@ + 0x34 // DialogTextOffset
        0A8D: 4@ = readMem 4@ sz 4 vp 0
        0485: dialog_open
        0AB2: ret 1 4@
    else 059A:  dialog closed
    end
end
0AB2: ret 0

:SetDialogInputEditBoxText
{
    0.3.DL
    0AB1: @SetChatInputEditBoxText 2 => text 0@ selected 0
}
if 0AA2: 2@ = "samp.dll"
then
    0A8E: 3@ = 2@ + 0x2AC9E0            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: 3@ = readMem 3@ sz 4 vp 0     // pDialog;
    0A8E: 4@ = 3@ + 0x24                // pDialog->pEditBox;
    0A8D: 4@ = readMem 4@ sz 4 vp 0     // pEditBox;
  
    0A8E: 5@ = 2@ + 0x85000 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
  
    // CDXUTEditBox::SetText takes 2 params
    // 1 - pointer to zero terminated string
    // 2 - bool, if text is to be selected or not
  
    0AA8: call_function_method 5@ struct 4@ num_params 2 pop 0 _bSelected 0 _pszText 0@ _retVal 6@
end
0AB2: 0

:CloseCurrentDialogWithButton
{
    0.3.DL
    0AB1: @CloseCurrentDialogWithButton 1 Button 0 // 1 = Left , 0 = Right
}
IF 0AA2: 10@ = "samp.dll"
THEN 
    0A8E: 11@ = 10@ + 0x2AC9E0 // SAMP_DIALOG_INFO_OFFSET
    0A8D: 12@ = readMem 11@ sz 4 vp 0
    0A8E: 11@ = 10@ + 0x700D0 //SAMP_DIALOG_CLOSE
    0AA8: call_function_method 11@ struct 12@ num_params 1 pop 0 0@ $NOT_USED
END
0AB2: 0

:search_text_in_the_text
{
    Example: 0AB1: call @search_text_in_the_text 2 String1 0@ String2 1@
    In: 0@ - text; 1@ - string;
    Out: True or False;
}
var
    2@:int
    3@:int
    4@:int
    5@:int
    7@:int
    8@:int
end
7@ = 0
0AB1: @strlen 1 string 0@ _return: 4@
0AB1: @strlen 1 string 1@ _return: 8@
if or
8@ > 4@
8@ <= 0
then
    059A: return_false
    0AB2: ret 0
end
0AC8: 6@ = allocate_memory_size 1024
0AB1: @memset 3 destination 6@ value 0 size 1024
0AB1: @memcpy 3 destination 6@ source 1@ size 8@ 
for 5@ = 0 to 4@
0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
0A8D: 3@ = read_memory 1@ size 1 virtual_protect 0
    if 2@ == 3@
    then
        inc(1@)
        inc(7@)
    else
        7@ = 0
        0AB1: @memcpy 3 destination 1@ source 6@ size 8@  
    end
    if 7@ == 8@
    then
        0485: return_true
        0AB2: ret 0   
    end
inc(0@)
end
059A: return_false
0AC9: 6@
0AB2: ret 0

:strlen
{
    Example: 0AB1: @strlen 1 string 1@ return: 3@
    In: 0@ - text;
    Out: 1@ - size;
}
for 1@ = 0 to 1024
    0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
    if not 2@ == 0
    jf break
    0@ += 1
end
0AB2: ret 1 1@

:memcpy

var
0@ : integer
1@ : integer
2@ : integer
3@ : integer
end

// 0@ - destination, 1@ - source, 2@ - size
// Example: 0AB1: @memcpy 3 destination 0@ source 1@ size 2@

dec(2@)
for 3@ = 0 to 2@
    0A8D: 4@ = read_memory 1@ size 1 virtual_protect 0
    0A8C: write_memory 0@ size 1 value 4@ virtual_protect 0
    1@ += 1
    0@ += 1
end
0AB2: ret 0

:memset

var
0@ : integer
1@ : integer
2@ : integer
3@ : integer
end

// 0@ - destination, 1@ - value, 2@ - size
// Example: 0AB1: @memset 3 destination 0@ value 32 size 1
2@ -= 1
for 3@ = 0 to 2@
0A8C: write_memory 0@ size 1 value 1@ virtual_protect 0
0@ += 1
end
0AB2: ret 0

:CollectAllDigits
{
    0AB1: @CollectAllDigits 1 stringPointer 1@
    Self Return: 1@ - Digits
}
0C17: 31@ = strlen 0@
31@ -= 1
0085: 28@ = 0@
005A: 28@ += 31@
0085: 27@ = 0@
for 30@ = 0@ to 28@
0A8D: 29@ = read_memory 30@ size 1 virtual_protect 1
    if and // if is equal or higher than "0" in ascii, and if is equal or lower than "9" in ascii (http://www.asciitable.com/index/asciifull.gif)
    0029:   29@ >= 48
    002B:   57 >= 29@
    then
        0A8C: write_memory 27@ size 1 value 29@ virtual_protect 1
        27@++ //27@ increases only if it's a digit
    else
        // do nothing...
    end    
end
0A8C: write_memory 27@ size 1 value 0 virtual_protect 1
0AB2: ret 0

What are 005A etc. Are there any yutorials
 
D

Deleted member 59047

Guest
All this information was taken from this website...
PHP:
{$CLEO .cs}

0000:

wait 8500

0AC8: 1@ = allocate_memory_size 256
0AD3: 1@ = format "Sign check" /// dialog tite to comapare


while true
wait 0

if
0AB1: @GetDialogCaption 0 0@
then
    if
    0AB1: @search_text_in_the_text 2 String1 0@ String2 1@
    then
        0AB1: @getDialogText 0 2@
        0AB1: @CollectAllDigits 1 stringPointer 2@ // self return
        0AB1: @SetChatInputEditBoxText 1 => text 1@
        0AB1: @CloseCurrentDialogWithButton 1 Button 1 // 1 = Left , 0 = Right
    end
end

end

:GetDialogCaption
{
    0.3.DL
}
0AA2: 1@ = "samp.dll"
1@ += 0x2AC9E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0x28 //DialogOpenOffset
0A8D: 2@ = readMem 2@ sz 4 vp 0
if 2@ == 1 // Dialog open
then
    0A8E: 3@ = 1@ + 0x40 //DialogCaptionOffset
    0485: dialog_open
    0AB2: ret 1 3@
else
    059A:  dialog closed
end
0AB2: ret 0

:GetDialogText
{
    0.3.7 - R3
}
0AA2: 1@ = "samp.dll"
1@ += 0x2AC9E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0x28 //DialogOpenOffset
0A8D: 2@ = readMem 2@ sz 4 vp 0
if 2@ == 1 // Dialog active
then
    0A8E: 3@ = 1@ + 0x2C //DialogTypeOffset
    0A8D: 3@ = readMem 3@ sz 4 vp 0
    if or
    3@ == 0 // DIALOG_STYLE_MSGBOX
    3@ == 1 // DIALOG_STYLE_INPUT
    3@ == 3 // DIALOG_STYLE_PASSWORD
    then
        0A8E: 4@ = 1@ + 0x34 // DialogTextOffset
        0A8D: 4@ = readMem 4@ sz 4 vp 0
        0485: dialog_open
        0AB2: ret 1 4@
    else 059A:  dialog closed
    end
end
0AB2: ret 0

:SetDialogInputEditBoxText
{
    0.3.DL
    0AB1: @SetChatInputEditBoxText 2 => text 0@ selected 0
}
if 0AA2: 2@ = "samp.dll"
then
    0A8E: 3@ = 2@ + 0x2AC9E0            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: 3@ = readMem 3@ sz 4 vp 0     // pDialog;
    0A8E: 4@ = 3@ + 0x24                // pDialog->pEditBox;
    0A8D: 4@ = readMem 4@ sz 4 vp 0     // pEditBox;
  
    0A8E: 5@ = 2@ + 0x85000 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
  
    // CDXUTEditBox::SetText takes 2 params
    // 1 - pointer to zero terminated string
    // 2 - bool, if text is to be selected or not
  
    0AA8: call_function_method 5@ struct 4@ num_params 2 pop 0 _bSelected 0 _pszText 0@ _retVal 6@
end
0AB2: 0

:CloseCurrentDialogWithButton
{
    0.3.DL
    0AB1: @CloseCurrentDialogWithButton 1 Button 0 // 1 = Left , 0 = Right
}
IF 0AA2: 10@ = "samp.dll"
THEN 
    0A8E: 11@ = 10@ + 0x2AC9E0 // SAMP_DIALOG_INFO_OFFSET
    0A8D: 12@ = readMem 11@ sz 4 vp 0
    0A8E: 11@ = 10@ + 0x700D0 //SAMP_DIALOG_CLOSE
    0AA8: call_function_method 11@ struct 12@ num_params 1 pop 0 0@ $NOT_USED
END
0AB2: 0

:search_text_in_the_text
{
    Example: 0AB1: call @search_text_in_the_text 2 String1 0@ String2 1@
    In: 0@ - text; 1@ - string;
    Out: True or False;
}
var
    2@:int
    3@:int
    4@:int
    5@:int
    7@:int
    8@:int
end
7@ = 0
0AB1: @strlen 1 string 0@ _return: 4@
0AB1: @strlen 1 string 1@ _return: 8@
if or
8@ > 4@
8@ <= 0
then
    059A: return_false
    0AB2: ret 0
end
0AC8: 6@ = allocate_memory_size 1024
0AB1: @memset 3 destination 6@ value 0 size 1024
0AB1: @memcpy 3 destination 6@ source 1@ size 8@ 
for 5@ = 0 to 4@
0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
0A8D: 3@ = read_memory 1@ size 1 virtual_protect 0
    if 2@ == 3@
    then
        inc(1@)
        inc(7@)
    else
        7@ = 0
        0AB1: @memcpy 3 destination 1@ source 6@ size 8@  
    end
    if 7@ == 8@
    then
        0485: return_true
        0AB2: ret 0   
    end
inc(0@)
end
059A: return_false
0AC9: 6@
0AB2: ret 0

:strlen
{
    Example: 0AB1: @strlen 1 string 1@ return: 3@
    In: 0@ - text;
    Out: 1@ - size;
}
for 1@ = 0 to 1024
    0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
    if not 2@ == 0
    jf break
    0@ += 1
end
0AB2: ret 1 1@

:memcpy

var
0@ : integer
1@ : integer
2@ : integer
3@ : integer
end

// 0@ - destination, 1@ - source, 2@ - size
// Example: 0AB1: @memcpy 3 destination 0@ source 1@ size 2@

dec(2@)
for 3@ = 0 to 2@
    0A8D: 4@ = read_memory 1@ size 1 virtual_protect 0
    0A8C: write_memory 0@ size 1 value 4@ virtual_protect 0
    1@ += 1
    0@ += 1
end
0AB2: ret 0

:memset

var
0@ : integer
1@ : integer
2@ : integer
3@ : integer
end

// 0@ - destination, 1@ - value, 2@ - size
// Example: 0AB1: @memset 3 destination 0@ value 32 size 1
2@ -= 1
for 3@ = 0 to 2@
0A8C: write_memory 0@ size 1 value 1@ virtual_protect 0
0@ += 1
end
0AB2: ret 0

:CollectAllDigits
{
    0AB1: @CollectAllDigits 1 stringPointer 1@
    Self Return: 1@ - Digits
}
0C17: 31@ = strlen 0@
31@ -= 1
0085: 28@ = 0@
005A: 28@ += 31@
0085: 27@ = 0@
for 30@ = 0@ to 28@
0A8D: 29@ = read_memory 30@ size 1 virtual_protect 1
    if and // if is equal or higher than "0" in ascii, and if is equal or lower than "9" in ascii (http://www.asciitable.com/index/asciifull.gif)
    0029:   29@ >= 48
    002B:   57 >= 29@
    then
        0A8C: write_memory 27@ size 1 value 29@ virtual_protect 1
        27@++ //27@ increases only if it's a digit
    else
        // do nothing...
    end    
end
0A8C: write_memory 27@ size 1 value 0 virtual_protect 1
0AB2: ret 0
what is this? i already build it in sanny builder?
 

Attachments

  • Untitled.png
    Untitled.png
    890.2 KB · Views: 16
D

Deleted member 59047

Guest
All this information was taken from this website...
PHP:
{$CLEO .cs}

0000:

wait 8500

0AC8: 1@ = allocate_memory_size 256
0AD3: 1@ = format "Sign check" /// dialog tite to comapare


while true
wait 0

if
0AB1: @GetDialogCaption 0 0@
then
    if
    0AB1: @search_text_in_the_text 2 String1 0@ String2 1@
    then
        0AB1: @getDialogText 0 2@
        0AB1: @CollectAllDigits 1 stringPointer 2@ // self return
        0AB1: @SetChatInputEditBoxText 1 => text 1@
        0AB1: @CloseCurrentDialogWithButton 1 Button 1 // 1 = Left , 0 = Right
    end
end

end

:GetDialogCaption
{
    0.3.DL
}
0AA2: 1@ = "samp.dll"
1@ += 0x2AC9E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0x28 //DialogOpenOffset
0A8D: 2@ = readMem 2@ sz 4 vp 0
if 2@ == 1 // Dialog open
then
    0A8E: 3@ = 1@ + 0x40 //DialogCaptionOffset
    0485: dialog_open
    0AB2: ret 1 3@
else
    059A:  dialog closed
end
0AB2: ret 0

:GetDialogText
{
    0.3.7 - R3
}
0AA2: 1@ = "samp.dll"
1@ += 0x2AC9E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0x28 //DialogOpenOffset
0A8D: 2@ = readMem 2@ sz 4 vp 0
if 2@ == 1 // Dialog active
then
    0A8E: 3@ = 1@ + 0x2C //DialogTypeOffset
    0A8D: 3@ = readMem 3@ sz 4 vp 0
    if or
    3@ == 0 // DIALOG_STYLE_MSGBOX
    3@ == 1 // DIALOG_STYLE_INPUT
    3@ == 3 // DIALOG_STYLE_PASSWORD
    then
        0A8E: 4@ = 1@ + 0x34 // DialogTextOffset
        0A8D: 4@ = readMem 4@ sz 4 vp 0
        0485: dialog_open
        0AB2: ret 1 4@
    else 059A:  dialog closed
    end
end
0AB2: ret 0

:SetDialogInputEditBoxText
{
    0.3.DL
    0AB1: @SetChatInputEditBoxText 2 => text 0@ selected 0
}
if 0AA2: 2@ = "samp.dll"
then
    0A8E: 3@ = 2@ + 0x2AC9E0            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: 3@ = readMem 3@ sz 4 vp 0     // pDialog;
    0A8E: 4@ = 3@ + 0x24                // pDialog->pEditBox;
    0A8D: 4@ = readMem 4@ sz 4 vp 0     // pEditBox;
  
    0A8E: 5@ = 2@ + 0x85000 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
  
    // CDXUTEditBox::SetText takes 2 params
    // 1 - pointer to zero terminated string
    // 2 - bool, if text is to be selected or not
  
    0AA8: call_function_method 5@ struct 4@ num_params 2 pop 0 _bSelected 0 _pszText 0@ _retVal 6@
end
0AB2: 0

:CloseCurrentDialogWithButton
{
    0.3.DL
    0AB1: @CloseCurrentDialogWithButton 1 Button 0 // 1 = Left , 0 = Right
}
IF 0AA2: 10@ = "samp.dll"
THEN 
    0A8E: 11@ = 10@ + 0x2AC9E0 // SAMP_DIALOG_INFO_OFFSET
    0A8D: 12@ = readMem 11@ sz 4 vp 0
    0A8E: 11@ = 10@ + 0x700D0 //SAMP_DIALOG_CLOSE
    0AA8: call_function_method 11@ struct 12@ num_params 1 pop 0 0@ $NOT_USED
END
0AB2: 0

:search_text_in_the_text
{
    Example: 0AB1: call @search_text_in_the_text 2 String1 0@ String2 1@
    In: 0@ - text; 1@ - string;
    Out: True or False;
}
var
    2@:int
    3@:int
    4@:int
    5@:int
    7@:int
    8@:int
end
7@ = 0
0AB1: @strlen 1 string 0@ _return: 4@
0AB1: @strlen 1 string 1@ _return: 8@
if or
8@ > 4@
8@ <= 0
then
    059A: return_false
    0AB2: ret 0
end
0AC8: 6@ = allocate_memory_size 1024
0AB1: @memset 3 destination 6@ value 0 size 1024
0AB1: @memcpy 3 destination 6@ source 1@ size 8@ 
for 5@ = 0 to 4@
0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
0A8D: 3@ = read_memory 1@ size 1 virtual_protect 0
    if 2@ == 3@
    then
        inc(1@)
        inc(7@)
    else
        7@ = 0
        0AB1: @memcpy 3 destination 1@ source 6@ size 8@  
    end
    if 7@ == 8@
    then
        0485: return_true
        0AB2: ret 0   
    end
inc(0@)
end
059A: return_false
0AC9: 6@
0AB2: ret 0

:strlen
{
    Example: 0AB1: @strlen 1 string 1@ return: 3@
    In: 0@ - text;
    Out: 1@ - size;
}
for 1@ = 0 to 1024
    0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
    if not 2@ == 0
    jf break
    0@ += 1
end
0AB2: ret 1 1@

:memcpy

var
0@ : integer
1@ : integer
2@ : integer
3@ : integer
end

// 0@ - destination, 1@ - source, 2@ - size
// Example: 0AB1: @memcpy 3 destination 0@ source 1@ size 2@

dec(2@)
for 3@ = 0 to 2@
    0A8D: 4@ = read_memory 1@ size 1 virtual_protect 0
    0A8C: write_memory 0@ size 1 value 4@ virtual_protect 0
    1@ += 1
    0@ += 1
end
0AB2: ret 0

:memset

var
0@ : integer
1@ : integer
2@ : integer
3@ : integer
end

// 0@ - destination, 1@ - value, 2@ - size
// Example: 0AB1: @memset 3 destination 0@ value 32 size 1
2@ -= 1
for 3@ = 0 to 2@
0A8C: write_memory 0@ size 1 value 1@ virtual_protect 0
0@ += 1
end
0AB2: ret 0

:CollectAllDigits
{
    0AB1: @CollectAllDigits 1 stringPointer 1@
    Self Return: 1@ - Digits
}
0C17: 31@ = strlen 0@
31@ -= 1
0085: 28@ = 0@
005A: 28@ += 31@
0085: 27@ = 0@
for 30@ = 0@ to 28@
0A8D: 29@ = read_memory 30@ size 1 virtual_protect 1
    if and // if is equal or higher than "0" in ascii, and if is equal or lower than "9" in ascii (http://www.asciitable.com/index/asciifull.gif)
    0029:   29@ >= 48
    002B:   57 >= 29@
    then
        0A8C: write_memory 27@ size 1 value 29@ virtual_protect 1
        27@++ //27@ increases only if it's a digit
    else
        // do nothing...
    end    
end
0A8C: write_memory 27@ size 1 value 0 virtual_protect 1
0AB2: ret 0
can you compile it .cs file? i cannot fix the problem thank you for your time
 

hardkor

Active member
Joined
Jun 16, 2019
Messages
28
Reaction score
0
1. Name of the mod (if the mod doesn't exist, you don't have to tell one): Triggerfinger
2. Where you saw it (not the server, we mean if you saw any videos/screenshots about it or not): http://ugbase.eu/index.php?threads/triggerfinger-exe-its-better-than-an-aimbot.14525/
3. What do you want (the most important part, explain this carefully): A trigger bot for 0.3.DL I tried this one http://ugbase.eu/index.php?threads/triggerfinger-exe-its-better-than-an-aimbot.14525/ but that one misses like 80% of the time and it's trying to shoot throw walls. I want trigger bot thats works normally.
4. Details (add more details to your request): Normal trigger bot aka trigger finger that doesn't try to shoot throw walls.
5. Need On/off key or command ?: F10
6. Give any picture or video: http://ugbase.eu/index.php?threads/triggerfinger-exe-its-better-than-an-aimbot.14525/
7. Your client is?: I use 0.3.DL
 
D

Deleted member 59047

Guest
All this information was taken from this website...
PHP:
{$CLEO .cs}

0000:

wait 8500

0AC8: 1@ = allocate_memory_size 256
0AD3: 1@ = format "Sign check" /// dialog tite to comapare


while true
wait 0

if
0AB1: @GetDialogCaption 0 0@
then
    if
    0AB1: @search_text_in_the_text 2 String1 0@ String2 1@
    then
        0AB1: @getDialogText 0 2@
        0AB1: @CollectAllDigits 1 stringPointer 2@ // self return
        0AB1: @SetChatInputEditBoxText 1 => text 1@
        0AB1: @CloseCurrentDialogWithButton 1 Button 1 // 1 = Left , 0 = Right
    end
end

end

:GetDialogCaption
{
    0.3.DL
}
0AA2: 1@ = "samp.dll"
1@ += 0x2AC9E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0x28 //DialogOpenOffset
0A8D: 2@ = readMem 2@ sz 4 vp 0
if 2@ == 1 // Dialog open
then
    0A8E: 3@ = 1@ + 0x40 //DialogCaptionOffset
    0485: dialog_open
    0AB2: ret 1 3@
else
    059A:  dialog closed
end
0AB2: ret 0

:GetDialogText
{
    0.3.7 - R3
}
0AA2: 1@ = "samp.dll"
1@ += 0x2AC9E0
0A8D: 1@ = readMem 1@ sz 4 vp 0
0A8E: 2@ = 1@ + 0x28 //DialogOpenOffset
0A8D: 2@ = readMem 2@ sz 4 vp 0
if 2@ == 1 // Dialog active
then
    0A8E: 3@ = 1@ + 0x2C //DialogTypeOffset
    0A8D: 3@ = readMem 3@ sz 4 vp 0
    if or
    3@ == 0 // DIALOG_STYLE_MSGBOX
    3@ == 1 // DIALOG_STYLE_INPUT
    3@ == 3 // DIALOG_STYLE_PASSWORD
    then
        0A8E: 4@ = 1@ + 0x34 // DialogTextOffset
        0A8D: 4@ = readMem 4@ sz 4 vp 0
        0485: dialog_open
        0AB2: ret 1 4@
    else 059A:  dialog closed
    end
end
0AB2: ret 0

:SetDialogInputEditBoxText
{
    0.3.DL
    0AB1: @SetChatInputEditBoxText 2 => text 0@ selected 0
}
if 0AA2: 2@ = "samp.dll"
then
    0A8E: 3@ = 2@ + 0x2AC9E0            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: 3@ = readMem 3@ sz 4 vp 0     // pDialog;
    0A8E: 4@ = 3@ + 0x24                // pDialog->pEditBox;
    0A8D: 4@ = readMem 4@ sz 4 vp 0     // pEditBox;
  
    0A8E: 5@ = 2@ + 0x85000 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
  
    // CDXUTEditBox::SetText takes 2 params
    // 1 - pointer to zero terminated string
    // 2 - bool, if text is to be selected or not
  
    0AA8: call_function_method 5@ struct 4@ num_params 2 pop 0 _bSelected 0 _pszText 0@ _retVal 6@
end
0AB2: 0

:CloseCurrentDialogWithButton
{
    0.3.DL
    0AB1: @CloseCurrentDialogWithButton 1 Button 0 // 1 = Left , 0 = Right
}
IF 0AA2: 10@ = "samp.dll"
THEN 
    0A8E: 11@ = 10@ + 0x2AC9E0 // SAMP_DIALOG_INFO_OFFSET
    0A8D: 12@ = readMem 11@ sz 4 vp 0
    0A8E: 11@ = 10@ + 0x700D0 //SAMP_DIALOG_CLOSE
    0AA8: call_function_method 11@ struct 12@ num_params 1 pop 0 0@ $NOT_USED
END
0AB2: 0

:search_text_in_the_text
{
    Example: 0AB1: call @search_text_in_the_text 2 String1 0@ String2 1@
    In: 0@ - text; 1@ - string;
    Out: True or False;
}
var
    2@:int
    3@:int
    4@:int
    5@:int
    7@:int
    8@:int
end
7@ = 0
0AB1: @strlen 1 string 0@ _return: 4@
0AB1: @strlen 1 string 1@ _return: 8@
if or
8@ > 4@
8@ <= 0
then
    059A: return_false
    0AB2: ret 0
end
0AC8: 6@ = allocate_memory_size 1024
0AB1: @memset 3 destination 6@ value 0 size 1024
0AB1: @memcpy 3 destination 6@ source 1@ size 8@ 
for 5@ = 0 to 4@
0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
0A8D: 3@ = read_memory 1@ size 1 virtual_protect 0
    if 2@ == 3@
    then
        inc(1@)
        inc(7@)
    else
        7@ = 0
        0AB1: @memcpy 3 destination 1@ source 6@ size 8@  
    end
    if 7@ == 8@
    then
        0485: return_true
        0AB2: ret 0   
    end
inc(0@)
end
059A: return_false
0AC9: 6@
0AB2: ret 0

:strlen
{
    Example: 0AB1: @strlen 1 string 1@ return: 3@
    In: 0@ - text;
    Out: 1@ - size;
}
for 1@ = 0 to 1024
    0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
    if not 2@ == 0
    jf break
    0@ += 1
end
0AB2: ret 1 1@

:memcpy

var
0@ : integer
1@ : integer
2@ : integer
3@ : integer
end

// 0@ - destination, 1@ - source, 2@ - size
// Example: 0AB1: @memcpy 3 destination 0@ source 1@ size 2@

dec(2@)
for 3@ = 0 to 2@
    0A8D: 4@ = read_memory 1@ size 1 virtual_protect 0
    0A8C: write_memory 0@ size 1 value 4@ virtual_protect 0
    1@ += 1
    0@ += 1
end
0AB2: ret 0

:memset

var
0@ : integer
1@ : integer
2@ : integer
3@ : integer
end

// 0@ - destination, 1@ - value, 2@ - size
// Example: 0AB1: @memset 3 destination 0@ value 32 size 1
2@ -= 1
for 3@ = 0 to 2@
0A8C: write_memory 0@ size 1 value 1@ virtual_protect 0
0@ += 1
end
0AB2: ret 0

:CollectAllDigits
{
    0AB1: @CollectAllDigits 1 stringPointer 1@
    Self Return: 1@ - Digits
}
0C17: 31@ = strlen 0@
31@ -= 1
0085: 28@ = 0@
005A: 28@ += 31@
0085: 27@ = 0@
for 30@ = 0@ to 28@
0A8D: 29@ = read_memory 30@ size 1 virtual_protect 1
    if and // if is equal or higher than "0" in ascii, and if is equal or lower than "9" in ascii (http://www.asciitable.com/index/asciifull.gif)
    0029:   29@ >= 48
    002B:   57 >= 29@
    then
        0A8C: write_memory 27@ size 1 value 29@ virtual_protect 1
        27@++ //27@ increases only if it's a digit
    else
        // do nothing...
    end    
end
0A8C: write_memory 27@ size 1 value 0 virtual_protect 1
0AB2: ret 0
i also watch videos in youtube how to compile that in .cs file but its not work
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
i also watch videos in youtube how to compile that in .cs file but its not work
Delete caption and text search parts , make work only when you press key and it's done.
It's not able to fix without testing in server, which means i must download again all samp shit, but i want do that.
 

xdaohuunhatx

Member
Joined
Apr 24, 2019
Messages
10
Reaction score
0
* Name of the mod (if the mod doesn't exist, you don't have to tell one): Auto chat
* Where you saw it (not the server, we mean if you saw any videos/screenshots about it or not): None
* What do you want (the most important part, explain this carefully) Auto chat. Like /fish /cauca . 5sec per chat
* Details (add more details to your request) Auto chat. Like /fish /cauca . 5sec per chat
* On/off key (specify it): FISH
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
* Name of the mod (if the mod doesn't exist, you don't have to tell one): Auto chat
* Where you saw it (not the server, we mean if you saw any videos/screenshots about it or not): None
* What do you want (the most important part, explain this carefully) Auto chat. Like /fish /cauca . 5sec per chat
* Details (add more details to your request) Auto chat. Like /fish /cauca . 5sec per chat
* On/off key (specify it): FISH

http://ugbase.eu/index.php?threads/collection.21288/
 
Top