Переписка клео

Статус
В этой теме нельзя размещать новые ответы.

xfp007

Известный
Автор темы
30
2
Всем привет, вот такая тема - нужно переписать клео FastChat под нарко
Обьясню принцип действия оригинала - вместо того что бы писать /mn потом выбирать репорт и писать жалобу можно прописать /rep Жалоба и клео само откроет все что нужно и отравит жалобу

Вот что нужно сделать
Что бы при комманде /cdrugs он сам прописывал /usedrugs > выбирал первую строчку и вписывал еденицу

CLEO:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP

:NONAME_2
0001: wait 400 ms
0AFA:  is_samp_available
004D: jump_if_false @NONAME_2
0006: 0@ = 0
0AF8: samp add_message_to_chat "[Fast ARP] By Liptonus777" color -1 
0B34: samp register_client_command "cdrugs" to_label @NONAME_615
0B34: samp register_client_command "cop" to_label @NONAME_650
0B34: samp register_client_command "med" to_label @NONAME_685
0B34: samp register_client_command "meh" to_label @NONAME_720
0B34: samp register_client_command "rep" to_label @NONAME_755
0B34: samp register_client_command "fasthelp" to_label @NONAME_790

:NONAME_133
0001: wait 0 ms
00D6: if or
0039:   0@ == 1
0039:   0@ == 2
0039:   0@ == 3
0039:   0@ == 4
0039:   0@ == 5
004D: jump_if_false @NONAME_133
0002: jump @NONAME_190

:NONAME_190
0039:   0@ == 1
004D: jump_if_false @NONAME_222
0AF9: samp say_msg "/c 555" 
0002: jump @NONAME_608

:NONAME_222
0039:   0@ == 2
004D: jump_if_false @NONAME_253
0AF9: samp say_msg "/c 02" 
0002: jump @NONAME_388

:NONAME_253
0039:   0@ == 3
004D: jump_if_false @NONAME_284
0AF9: samp say_msg "/c 03" 
0002: jump @NONAME_431

:NONAME_284
0039:   0@ == 4
004D: jump_if_false @NONAME_316
0AF9: samp say_msg "/c 090" 
0002: jump @NONAME_499

:NONAME_316
0039:   0@ == 5
004D: jump_if_false @NONAME_133
0AF9: samp say_msg "/mn" 
0002: jump @NONAME_542

:NONAME_345
0001: wait 0 ms
0B4C:  samp is_dialog_active -1
004D: jump_if_false @NONAME_345
0B4B: samp set_current_dialog_editbox_text 11@
0B47: samp close_current_dialog_with_button 1
0AC9: free_allocated_memory 11@
0006: 0@ = 0
0002: jump @NONAME_133

:NONAME_388
0001: wait 0 ms
0B4C:  samp is_dialog_active -1
004D: jump_if_false @NONAME_388
0B4B: samp set_current_dialog_editbox_text 11@
0B47: samp close_current_dialog_with_button 1
0AC9: free_allocated_memory 11@
0006: 0@ = 0
0002: jump @NONAME_133

:NONAME_431
0001: wait 0 ms
0B4C:  samp is_dialog_active -1
004D: jump_if_false @NONAME_431
0B4B: samp set_current_dialog_editbox_text 11@
0B47: samp close_current_dialog_with_button 1
0AC9: free_allocated_memory 11@
0006: 0@ = 0
0002: jump @NONAME_133
0AF9: samp say_msg 11@ 
0AC9: free_allocated_memory 11@
0006: 0@ = 0
0002: jump @NONAME_133

:NONAME_499
0001: wait 0 ms
0B4C:  samp is_dialog_active -1
004D: jump_if_false @NONAME_499
0B4B: samp set_current_dialog_editbox_text 11@
0B47: samp close_current_dialog_with_button 1
0AC9: free_allocated_memory 11@
0006: 0@ = 0
0002: jump @NONAME_133

:NONAME_542
0001: wait 0 ms
0B4C:  samp is_dialog_active -1
004D: jump_if_false @NONAME_542
0B49: samp set_current_dialog_list_item 4
0B47: samp close_current_dialog_with_button 1

:NONAME_565
0001: wait 0 ms
0B4C:  samp is_dialog_active -1
004D: jump_if_false @NONAME_565
0B4B: samp set_current_dialog_editbox_text 11@
0B47: samp close_current_dialog_with_button 1
0AC9: free_allocated_memory 11@
0006: 0@ = 0
0002: jump @NONAME_133

:NONAME_608
0002: jump @NONAME_345

:NONAME_615
0B35: samp 10@ = get_last_command_params
0AC8: 11@ = allocate_memory_size 260
0AD3: 11@ = format "%s" 10@ 
0006: 0@ = 1
0B43: samp cmd_ret

:NONAME_650
0B35: samp 10@ = get_last_command_params
0AC8: 11@ = allocate_memory_size 260
0AD3: 11@ = format "%s" 10@ 
0006: 0@ = 2
0B43: samp cmd_ret

:NONAME_685
0B35: samp 10@ = get_last_command_params
0AC8: 11@ = allocate_memory_size 260
0AD3: 11@ = format "%s" 10@ 
0006: 0@ = 3
0B43: samp cmd_ret

:NONAME_720
0B35: samp 10@ = get_last_command_params
0AC8: 11@ = allocate_memory_size 260
0AD3: 11@ = format "%s" 10@ 
0006: 0@ = 4
0B43: samp cmd_ret

:NONAME_755
0B35: samp 10@ = get_last_command_params
0AC8: 11@ = allocate_memory_size 260
0AD3: 11@ = format "%s" 10@ 
0006: 0@ = 5
0B43: samp cmd_ret

:NONAME_790
0AF8: samp add_message_to_chat "Äîñòóïíûå êîìàíäû:" color 8190976 
0AF8: samp add_message_to_chat "/drugs - Ñîæðàòü íàðêî" color 16777215 
0AF8: samp add_message_to_chat "/meh - Ìåõàíèê" color 16777215 
0AF8: samp add_message_to_chat "/med - Ìåäèêè" color 16777215 
0AF8: samp add_message_to_chat "/cop - Ïîëèöèÿ" color 16777215 
0AF8: samp add_message_to_chat "/rep - Ðåïîðò" color 16777215 
0B43: samp cmd_ret
 

xfp007

Известный
Автор темы
30
2
да, после ввода команды в диалоге выбирает первую строчку а после вписывает цифру 3
смог сделать всё кроме последнего, как заставить клео вводить в диалог цифру 3?

Вот переделанный код, остальные команды решил не убирать

CLEO:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP

:NONAME_2
0001: wait 400 ms
0AFA:  is_samp_available
004D: jump_if_false @NONAME_2
0006: 0@ = 0
0AF8: samp add_message_to_chat "[FAST DRUGS] BY MADDY MATHERS" color -1 
0B34: samp register_client_command "drugs" to_label @NONAME_627
0B34: samp register_client_command "COP" to_label @NONAME_662
0B34: samp register_client_command "MED" to_label @NONAME_697
0B34: samp register_client_command "MEH" to_label @NONAME_732
0B34: samp register_client_command "REP" to_label @NONAME_767
0B34: samp register_client_command "dhelp" to_label @NONAME_802

:NONAME_139
0001: wait 0 ms
00D6: if or
0039:   0@ == 1
0039:   0@ == 2
0039:   0@ == 3
0039:   0@ == 4
0039:   0@ == 5
004D: jump_if_false @NONAME_139
0002: jump @NONAME_196

:NONAME_196
0039:   0@ == 1
004D: jump_if_false @NONAME_228
0AF9: samp say_msg "/C 555" 
0002: jump @NONAME_620

:NONAME_228
0039:   0@ == 2
004D: jump_if_false @NONAME_259
0AF9: samp say_msg "/C 02" 
0002: jump @NONAME_400

:NONAME_259
0039:   0@ == 3
004D: jump_if_false @NONAME_290
0AF9: samp say_msg "/C 03" 
0002: jump @NONAME_443

:NONAME_290
0039:   0@ == 4
004D: jump_if_false @NONAME_322
0AF9: samp say_msg "/C 090" 
0002: jump @NONAME_511

:NONAME_322
0039:   0@ == 5
004D: jump_if_false @NONAME_139
0AF9: samp say_msg "/USEDRUGS" 
0002: jump @NONAME_554

:NONAME_357
0001: wait 0 ms
0B4C:  samp is_dialog_active -1
004D: jump_if_false @NONAME_357
0B4B: samp set_current_dialog_editbox_text 11@
0B47: samp close_current_dialog_with_button 1
0AC9: free_allocated_memory 11@
0006: 0@ = 0
0002: jump @NONAME_139

:NONAME_400
0001: wait 0 ms
0B4C:  samp is_dialog_active -1
004D: jump_if_false @NONAME_400
0B4B: samp set_current_dialog_editbox_text 11@
0B47: samp close_current_dialog_with_button 1
0AC9: free_allocated_memory 11@
0006: 0@ = 0
0002: jump @NONAME_139

:NONAME_443
0001: wait 0 ms
0B4C:  samp is_dialog_active -1
004D: jump_if_false @NONAME_443
0B4B: samp set_current_dialog_editbox_text 11@
0B47: samp close_current_dialog_with_button 1
0AC9: free_allocated_memory 11@
0006: 0@ = 0
0002: jump @NONAME_139
0AF9: samp say_msg 11@ 
0AC9: free_allocated_memory 11@
0006: 0@ = 0
0002: jump @NONAME_139

:NONAME_511
0001: wait 0 ms
0B4C:  samp is_dialog_active -1
004D: jump_if_false @NONAME_511
0B4B: samp set_current_dialog_editbox_text 11@
0B47: samp close_current_dialog_with_button 1
0AC9: free_allocated_memory 11@
0006: 0@ = 0
0002: jump @NONAME_139

:NONAME_554
0001: wait 0 ms
0B4C:  samp is_dialog_active -1
004D: jump_if_false @NONAME_554
0B49: samp set_current_dialog_list_item 1
0B47: samp close_current_dialog_with_button 1

:NONAME_577
0001: wait 0 ms
0B4C:  samp is_dialog_active -1
004D: jump_if_false @NONAME_577
0B4B: samp set_current_dialog_editbox_text 11@
0B47: samp close_current_dialog_with_button 1
0AC9: free_allocated_memory 11@
0006: 0@ = 0
0002: jump @NONAME_139

:NONAME_620
0002: jump @NONAME_357

:NONAME_627
0B35: samp 10@ = get_last_command_params
0AC8: 11@ = allocate_memory_size 260
0AD3: 11@ = format "%S" 10@ 
0006: 0@ = 1
0B43: samp cmd_ret

:NONAME_662
0B35: samp 10@ = get_last_command_params
0AC8: 11@ = allocate_memory_size 260
0AD3: 11@ = format "%S" 10@ 
0006: 0@ = 2
0B43: samp cmd_ret

:NONAME_697
0B35: samp 10@ = get_last_command_params
0AC8: 11@ = allocate_memory_size 260
0AD3: 11@ = format "%S" 10@ 
0006: 0@ = 3
0B43: samp cmd_ret

:NONAME_732
0B35: samp 10@ = get_last_command_params
0AC8: 11@ = allocate_memory_size 260
0AD3: 11@ = format "%S" 10@ 
0006: 0@ = 4
0B43: samp cmd_ret

:NONAME_767
0B35: samp 10@ = get_last_command_params
0AC8: 11@ = allocate_memory_size 260
0AD3: 11@ = format "%S" 10@ 
0006: 0@ = 5
0B43: samp cmd_ret

:NONAME_802
0AF8: samp add_message_to_chat "AINOOIIUA EIIAIAU:" color 8190976 
0AF8: samp add_message_to_chat "/DRUGS - CÎÆÐÀÒÜ ÍÀÐÊÎ" color 16777215 
0B43: samp cmd_ret
 
Статус
В этой теме нельзя размещать новые ответы.