Dialog list

Status
Not open for further replies.

hacker127

Active member
Joined
Jul 17, 2019
Messages
44
Reaction score
2
Hi, I need your help. I need to do it on the "f3" key so that when I press it it seems like I pressed l. Alt, then it gave 11x down arrow, then enter, then 2x down arrow, enter, typed 400 in the dialog table and gave enter.
l. alt >> 10x down arrow >> enter >> 2x down arrow >> enter >> written by 400 >> enter
I need to write this and I do not know how, I can not and I have been writing with it for 2 weeks and still nothing. If it is possible to write the entire code, but even after the advice I will be happy.
 

hacker127

Active member
Joined
Jul 17, 2019
Messages
44
Reaction score
2
L.ALT to open dialog list, that's what I need to do it for me
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
Code send left alt, then set list number, then send ENTER , Then set list number , then set text [from you video was "400 "] , then send enter....
PHP:
{$CLEO .cs}

0000:

WAIT 8500

WHILE TRUE
WAIT 0

IF
0AB0: 2
THEN
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 255 // L-ALT 
    wait 500
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 0 // L-ALT
    wait 100
    0AB1: @Set_current_dialog_list_item 1 ItemNumber 11
    0AB1: @CLOSE_DIALOG 1 Button 0 // 1 = Left , 0 = Right
    wait 500 // wait 500 mili sec until you get new dialog
    0AB1: @Set_current_dialog_list_item 1 ItemNumber 2
    0AB1: @CLOSE_DIALOG 1 Button 0 // 1 = Left , 0 = Right
    wait 500 // wait 500 mili sec until you get new dialog
    0AC8: 0@ = allocate_memory_size 260 // allocate memory to format text
    0AD3: 0@ = format "400" // format text which you wanna put in dialog editbox
    0AB1: @SetCurrentDialogEditBoxText 1 text 0@
    0AB1: @CLOSE_DIALOG 1 Button 0 // 1 = Left , 0 = Right
END

END

:Set_Virtual_Key
{
    255 = true
    0 = false
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0

:Set_current_dialog_list_item
{
    0.3.DL
    0AB1: @Set_current_dialog_list_item 1 ItemNumber 1
}
0AA2: 1@ = "samp.dll"
1@ += 0x180610
0A8D: 1@ = readMem 1@ sz 1 vp 0
1@ += 143
0A8C: writeMem 1@ sz 1 vl 0@ vp 0
0AB2: 0

:CLOSE_DIALOG
{
    0.3.DL
    0AB1: @CLOSE_DIALOG 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

:SetCurrentDialogEditBoxText
{
    0.3.DL
    0AB1: @SetCurrentDialogEditBoxText 1 text 0@
}
if 0AA2: 2@ = "samp.dll"
then
    0A8E: 3@ = 2@ + 0x2AC9E0            // SAMP_DIALOG_INFO_OFFSET (0.3.DL)
    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::SetText (offset for 0.3.DL)
  
    0AA8: call_function_method 5@ struct 4@ num_params 2 pop 0 _bSelected 0 _pszText 0@ _retVal 6@
end
0AB2: 0
 

hacker127

Active member
Joined
Jul 17, 2019
Messages
44
Reaction score
2
Code send left alt, then set list number, then send ENTER , Then set list number , then set text [from you video was "400 "] , then send enter....
PHP:
{$CLEO .cs}

0000:

WAIT 8500

WHILE TRUE
WAIT 0

IF
0AB0: 2
THEN
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 255 // L-ALT
    wait 500
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 0 // L-ALT
    wait 100
    0AB1: @Set_current_dialog_list_item 1 ItemNumber 11
    0AB1: @CLOSE_DIALOG 1 Button 0 // 1 = Left , 0 = Right
    wait 500 // wait 500 mili sec until you get new dialog
    0AB1: @Set_current_dialog_list_item 1 ItemNumber 2
    0AB1: @CLOSE_DIALOG 1 Button 0 // 1 = Left , 0 = Right
    wait 500 // wait 500 mili sec until you get new dialog
    0AC8: 0@ = allocate_memory_size 260 // allocate memory to format text
    0AD3: 0@ = format "400" // format text which you wanna put in dialog editbox
    0AB1: @SetCurrentDialogEditBoxText 1 text 0@
    0AB1: @CLOSE_DIALOG 1 Button 0 // 1 = Left , 0 = Right
END

END

:Set_Virtual_Key
{
    255 = true
    0 = false
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0

:Set_current_dialog_list_item
{
    0.3.DL
    0AB1: @Set_current_dialog_list_item 1 ItemNumber 1
}
0AA2: 1@ = "samp.dll"
1@ += 0x180610
0A8D: 1@ = readMem 1@ sz 1 vp 0
1@ += 143
0A8C: writeMem 1@ sz 1 vl 0@ vp 0
0AB2: 0

:CLOSE_DIALOG
{
    0.3.DL
    0AB1: @CLOSE_DIALOG 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

:SetCurrentDialogEditBoxText
{
    0.3.DL
    0AB1: @SetCurrentDialogEditBoxText 1 text 0@
}
if 0AA2: 2@ = "samp.dll"
then
    0A8E: 3@ = 2@ + 0x2AC9E0            // SAMP_DIALOG_INFO_OFFSET (0.3.DL)
    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::SetText (offset for 0.3.DL)
 
    0AA8: call_function_method 5@ struct 4@ num_params 2 pop 0 _bSelected 0 _pszText 0@ _retVal 6@
end
0AB2: 0


I have a problem, I'll take your code, throw it in the sanny builder 3 and give it to save, but if I want to open it again it says "Unknown opcode 247B at offset 0." Please help.
 

hacker127

Active member
Joined
Jul 17, 2019
Messages
44
Reaction score
2
I guess I have a mistake, I press a key and it only does this (the video uses the key twice).
The dialog sheet opens and closes after a moment. That's all it does.
 

hacker127

Active member
Joined
Jul 17, 2019
Messages
44
Reaction score
2
server ip ?
How i can find that place
etc...
PLAY.SUPERPARBA.EU:7777 The place where I am so is under /cloc 4 but it is a company and you have to invite you to some other member and I will be on the server until about 4:00 PM UTC + 2 and this server is only for Czech and Slovak players. You can just log in there just do not write to chat in a language other than Czech and Slovak.
But I may have found a mistake. In the Set_Virtual_Key section is 0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255 and in my opinion 0x57 is the W key and I need the down arrow and that is 0x28. But I'm not sure how I will have time so I would try to edit you script and I think it should work.
 

hacker127

Active member
Joined
Jul 17, 2019
Messages
44
Reaction score
2
So I tried to edit it and nothing at all, it didn't help, it was the same all the time.
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
Try this one.
Make video , let me see what's happening.
 

Attachments

  • TST.cs
    21.2 KB · Views: 6

hacker127

Active member
Joined
Jul 17, 2019
Messages
44
Reaction score
2
I tried, but again this.
Well, I wrote you a discord yesterday
 
Last edited:
Status
Not open for further replies.
Top