Помогите доделать

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

iTz_WEEZY

Известный
Автор темы
298
88
Здаров!
Крч.. такая хуйня.. написал скрипт Бот
и такая проблема бот при заходе в игру делает то что он должен делать после активации
и после идет крешь и зависон игры уже не знаю что надо сделать
поставить хук или хуй его знает что еще
главное чтобы работал и читал строки из чата
CLEO:
{$CLEO}
0000: NOP

var
0@ :int = 0
1@ :int = 0
end

repeat
wait 0
until 0afa:   

chatmsg "iTz_Weezy" -1

0B34: samp register_client_command "kach" to_label @act
////////////////
:Check_Act
while true
wait 0
    if 0@ == 1
    then
    jump @Check_Level
end
///////////////////
:Mojete_Zanimatsa
wait 0
    if
    0C18: 7@ = strstr string1 4@ string2 "Вы снова можете заниматься"
    then
    jump @Bot_1_act
    end

:Check_Level
while true
wait 0
    if and
    0ab0: 17
    0ab0: 49
    then
    print "Bot_Level1 Activated" 1000
    1@ = 1
    jump @Bot_1_act
    end
//////////////////
:Bot_1_act  //- Выбирает уровень - Уровень 1
chatmsg "Настроен Бот 1 Уровень" -1
   0C72: set_virtual_key 0x4E down true
  wait 500
   0C72: set_virtual_key 0x4E down false
  wait 500
   0C72: set_virtual_key 0x0D down true
  wait 500
   0C72: set_virtual_key 0x0D down false
  wait 550
          jump @Bot_Level1
        end
//////////////////
:Bot_Level1
if and
1@ == 1
0C18: 7@ = strstr string1 4@ string2 "Enter"
then   
          gosub @Keys_Emulation_Enter
end
if and
1@ == 1
0C18: 7@ = strstr string1 4@ string2 "Пробел"
then   
          gosub @Keys_Emulation_Probel
end
if and
1@ == 1
0C18: 7@ = strstr string1 4@ string2 "Правая"
then
          gosub @Keys_Emulation_Pkm
end
if and
1@ == 1
0C18: 7@ = strstr string1 4@ string2 "Shift"
then   
          gosub @Keys_Emulation_Shift
end
if and
1@ == 1
0C18: 7@ = strstr string1 4@ string2 "Alt"
then   
          gosub @Keys_Emulation_Alt

end        
jump @OFF_1
//////////////////
:OFF_1
wait 0
if or
0ab0: 80
0C18: 7@ = strstr string1 4@ string2 "У вас закончились силы"
0C18: 7@ = strstr string1 4@ string2 "Вы совершили один подход"
jf @Bot_Level1
0@ = 0
1@ = 0
chatmsg "Выключён" -1
end
jump @Check_Act

//////////////////
:Keys_Emulation_Enter // Жмет Enter
print "CHTOBI OFF NAJMI ~R~P" 1000
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
return

:Keys_Emulation_Ctrl // Жмет Ctrl
print "CHTOBI OFF NAJMI ~R~P" 1000
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
return

:Keys_Emulation_Shift // Жмет Shift
print "CHTOBI OFF NAJMI ~R~P" 1000
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
return
:Keys_Emulation_Alt // Жмет Alt
print "CHTOBI OFF NAJMI ~R~P" 1000
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
return
:Keys_Emulation_Pkm  // Жмет PKM
print "CHTOBI OFF NAJMI ~R~P" 1000
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
return

:Keys_Emulation_Probel
print "CHTOBI OFF NAJMI ~R~P" 1000
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
return

//////////////////
:act
0B12: 0@ = 0@ XOR 1
if 0@ == 1
then
chatmsg "Бот включён" -1
end
0B43: samp cmd_ret
Помогите кто сможет буду благодарен сам уже не в силах
 

hnnssy

Известный
Друг
2,684
2,762
пидорские метки, даже разбираться желания нет
 

BlackKnigga

Известный
BH Team
922
446
Здаров!
Крч.. такая хуйня.. написал скрипт Бот
и такая проблема бот при заходе в игру делает то что он должен делать после активации
и после идет крешь и зависон игры уже не знаю что надо сделать
поставить хук или хуй его знает что еще
главное чтобы работал и читал строки из чата
CLEO:
{$CLEO}
0000: NOP

var
0@ :int = 0
1@ :int = 0
end

repeat
wait 0
until 0afa:  

chatmsg "iTz_Weezy" -1

0B34: samp register_client_command "kach" to_label @act
////////////////
:Check_Act
while true
wait 0
    if 0@ == 1
    then
    jump @Check_Level
end
///////////////////
:Mojete_Zanimatsa
wait 0
    if
    0C18: 7@ = strstr string1 4@ string2 "Вы снова можете заниматься"
    then
    jump @Bot_1_act
    end

:Check_Level
while true
wait 0
    if and
    0ab0: 17
    0ab0: 49
    then
    print "Bot_Level1 Activated" 1000
    1@ = 1
    jump @Bot_1_act
    end
//////////////////
:Bot_1_act  //- Выбирает уровень - Уровень 1
chatmsg "Настроен Бот 1 Уровень" -1
   0C72: set_virtual_key 0x4E down true
  wait 500
   0C72: set_virtual_key 0x4E down false
  wait 500
   0C72: set_virtual_key 0x0D down true
  wait 500
   0C72: set_virtual_key 0x0D down false
  wait 550
          jump @Bot_Level1
        end
//////////////////
:Bot_Level1
if and
1@ == 1
0C18: 7@ = strstr string1 4@ string2 "Enter"
then  
          gosub @Keys_Emulation_Enter
end
if and
1@ == 1
0C18: 7@ = strstr string1 4@ string2 "Пробел"
then  
          gosub @Keys_Emulation_Probel
end
if and
1@ == 1
0C18: 7@ = strstr string1 4@ string2 "Правая"
then
          gosub @Keys_Emulation_Pkm
end
if and
1@ == 1
0C18: 7@ = strstr string1 4@ string2 "Shift"
then  
          gosub @Keys_Emulation_Shift
end
if and
1@ == 1
0C18: 7@ = strstr string1 4@ string2 "Alt"
then  
          gosub @Keys_Emulation_Alt

end       
jump @OFF_1
//////////////////
:OFF_1
wait 0
if or
0ab0: 80
0C18: 7@ = strstr string1 4@ string2 "У вас закончились силы"
0C18: 7@ = strstr string1 4@ string2 "Вы совершили один подход"
jf @Bot_Level1
0@ = 0
1@ = 0
chatmsg "Выключён" -1
end
jump @Check_Act

//////////////////
:Keys_Emulation_Enter // Жмет Enter
print "CHTOBI OFF NAJMI ~R~P" 1000
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
0C72: set_virtual_key 0xD down true
wait 30
0C72: set_virtual_key 0xD down false
wait 30
return

:Keys_Emulation_Ctrl // Жмет Ctrl
print "CHTOBI OFF NAJMI ~R~P" 1000
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
0C72: set_virtual_key 0x11 down true
wait 30
0C72: set_virtual_key 0x11 down false
wait 30
return

:Keys_Emulation_Shift // Жмет Shift
print "CHTOBI OFF NAJMI ~R~P" 1000
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
0C72: set_virtual_key 0x10 down true
wait 30
0C72: set_virtual_key 0x10 down false
wait 30
return
:Keys_Emulation_Alt // Жмет Alt
print "CHTOBI OFF NAJMI ~R~P" 1000
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
0C72: set_virtual_key 0x12 down true
wait 30
0C72: set_virtual_key 0x12 down false
wait 30
return
:Keys_Emulation_Pkm  // Жмет PKM
print "CHTOBI OFF NAJMI ~R~P" 1000
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
0C72: set_virtual_key 0x02 down true
wait 30
0C72: set_virtual_key 0x02 down false
wait 30
return

:Keys_Emulation_Probel
print "CHTOBI OFF NAJMI ~R~P" 1000
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
0C72: set_virtual_key 0x20 down true
wait 30
0C72: set_virtual_key 0x20 down false
wait 30
return

//////////////////
:act
0B12: 0@ = 0@ XOR 1
if 0@ == 1
then
chatmsg "Бот включён" -1
end
0B43: samp cmd_ret
Помогите кто сможет буду благодарен сам уже не в силах
End'ы расставь.
 
Статус
В этой теме нельзя размещать новые ответы.