Здравствуйте, гость ( Вход | Регистрация )

 
Ответить в эту темуОткрыть новую тему
> Автоюз Банок
DarkMaster
сообщение 10.8.2011, 7:37
Сообщение #1


***********

Модератор UOPilot
Сообщений: 9.467
Регистрация: 2.12.2008
Группа: Супермодераторы
Наличность: 27725
Пользователь №: 11.279



Собственно был написан скрипт на полноценный автоюз банок. Был достаточно долгий и придирчивый отбор проверяемых точек и проверки стабильности, отсутствия лишних срабатываний и т.д.

Есть пара не до конца решенных проблем.
1) Поиск иконки пета. Вам придется самостоятельно точно устанавливать панель пета. Тут сильно могут помочь прилипания к окну чата, краев экрана.
2) При изменении уровня виталили скрипт на веремя мигания виталки прекращает свои действия.

Скрипт
Код
// 1.20

set linedelay 0
set #dev 0 // Включение отладки. Будет выводить информацию для обнаружения проблем. Работа скрипта будет не возможна.
if #dev = 1
    set logging clear
    set logging close
    set logging open 1 -4 1024 150
end_if

set #l2handle findwindow (Lineage II)
set workwindow #l2handle
set #pilotHandle findwindow (УоПилот)
showwindow #pilotHandle MINIMIZE
showwindow #l2handle SHOW

// Быстродействие. Чем больше цифра тем медленнее работает
// скрипт и тем меньше потр<вырезано анти-матом>ет ресурсов.
// Так же на скорость работы сильно влияет количество проверяемых
// видов бутылок Рекомендуемое значение #waiting 2-5.
// 2 - 21 проверка значений в секунду при 7 проверямеых бутылках.
// 5 - 9 проверок значений в секунду при 7 провереямых бутылках.
// Скорость обработки зависит от вашего процессора.
// Тест производился на q9300 при частоте 3 ГГц.
set #waiting 2

// Время через которое будет считаться, что вы отшли от компа.
// Реагирует на движение мышкой. Сделан для того, чтобы избежать бана.
set #timerAFKadd 60000 // 1000 = 1 секунда.
get mouse_pos #xLastMousePos #yLastMousePos //    НЕ ТРОГАТЬ !
set #timerAFK timer + #timerAFKadd //    НЕ ТРОГАТЬ !

// Укажите кнопки
set $buttonPotion F1   // Банки хп игрока
set $buttonGHPotion F2   // Банки Гхп игрока
set $buttonPetPotion F4   // Банки хп ПЕТА
set $buttonPetGHPotion F3   // Банки Гхп ПЕТА
set $buttonElixirHP F10      // Элексиры хп
set $buttonElixirMP F11      // Элексиры мп
set $buttonBSOE F12   // Блесс СОЕ
set $buttonGCP F7    // Гцп банки. Время КД _НЕ_ общее с ЦП банками.
set $buttonCP F8    // ЦП банки. Время КД _НЕ_ общее с ГЦП банками.


// ДЛЯ ИГРОКА

// Для X координаты из-за надписей есть ограничения.
// Минимальный  процент 34 - хп начинает мигать.
// Для растянутой полоски значения 41 - 65 так же не допустимы.
// Можно найти рабочий процент около 50, однако там мало места,
// пробуйте значения сами.
// Укажите процент при котом будут хаваться банки

set #procentPotion 85    // Банки хп
set #procentPotionLowHP 75    // Банки хп при висящем хиле от банки. Дает 1 мгновенный дополнительный тик хп
set #procentGHPotion 40    // Банки Гхп
set #procentGHPotionLowHP 39    // Банки Гхп при висящем хиле от банки. Дает 1 мгновенный дополнительный тик хп
set #procentElexirHP 34     // Эликсиры хп
set #procentElexirMP 34     // Эликсиры мп
set #procentBSOE 34    // Блесс СОЕ
set #procentGCP 80    // Гцп банки
set #procentCP 95    // ЦП банки


// ДЛЯ ПЕТА

// Крайняя левая точка хп вашего ПЕТА. Только X координата.(Правая находится в блоке расчетов)
set #hpPetBeginX 368
// Y координата полоски хп вашего ПЕТА. Полоска в толщину 5 пикселей,
// брать ТОЛЬКО середину - иначе надо полностью изменть контроль оттенков и контрольные точки.
set #yPetHP 580
// Цвет хп. Внимение! Он должен быть взят на Y координте указанной выше.
set #colorPetHP 2240683


// Недопустимо указыать значения при которых
// контрольная точка будет во второй точке по оси Х
// и в предпоследней точке по оси Х - там другой цвет.
// Проще говоря избегайте значений 0-1 и 99-100.

set #petProcentPotion 92    // Банки хп
set #petProcentPotionLowHP 75    // Банки хп при висящем хиле от банки. Дает 1 мгновенный дополнительный тик хп
set #petProcentGHPotion 50    // Банки Гхп
set #petProcentGHPotionLowHP 45    // Банки Гхп при висящем хиле от банки. Дает 1 мгновенный дополнительный тик хп
set #petProcentElexir 39     // Эликсиры хп


// Контрольная точка. Она не должна никогда изменятся при открытом окне л2.
// Подойдет рамка панельки левее ХП.
set #xControl 10
set #yControl 10
set #colorControl 1647400

//        КОНЕЦ НАСТРОЙКИ

// РАСЧЕТЫ
//Игрок
// Крайняя левая точка вашего хп. Только X координата.(Правая находится в блоке расчетов)
set #x1 20
// Крайняя правая точка вашего хп. Только X координата.
set #x2 #x1 + 354
// Y координата полоски HP.
set #yPlayerHP 43
// Цвет хп. Внимение! Он должен быть взят на Y координте указанной выше.
set #colorHP 1384585
// Y координата полоски MP.
set #yPlayerMP 55
// Цвет MP. Внимение! Он должен быть взят на Y координте указанной выше.
set #colorMP 8796421
// Y координата полоски MP.
set #yPlayerCP 30
// Цвет MP. Внимение! Он должен быть взят на Y координте указанной выше.
set #colorCP 21642

// Откат
set #cooldownHPLow 10000
set #cooldownHP 15000
set #cooldownGHPLow 10000
set #cooldownGHP 15000
set #cooldownCP 500
set #cooldownGCP 500

// Контрольнаые точки
set #x1PlayerControl 14                // Левый верхний угол
set #y1PlayerControl 1
set #color1PlayerControl 2967129
set #x2PlayerControl 14                // Левый нижний угол
set #y2PlayerControl 79
set #color2PlayerControl 2241858
set #x3PlayerControl 205                // Середина верх (Точка взята с символа "/" в полоске CP)
set #y3PlayerControl 27
set #color3PlayerControl 13553358
set #x4PlayerControl 204                // Середина низ (Точка взята с символа "/" в полоске MP)
set #y4PlayerControl 57
set #color4PlayerControl 13487565
set #x5PlayerControl 377                // Правый верхний угол
set #y5PlayerControl 16
set #color5PlayerControl 9676461
set #x6PlayerControl 379                // Правый нижний угол
set #y6PlayerControl 78
set #color6PlayerControl 9478825
set #checkPotionColor #x1 + ( #x2 - #x1 )  * #procentPotion / 100                             // Итоговая проверяемая координата.
set #checkPotionLowHPColor #x1 + ( #x2 - #x1 )  * #procentPotionLowHP / 100     // Итоговая проверяемая координата.
set #checkGHPotionColor #x1 + ( #x2 - #x1 )  * #procentGHPotion / 100                             // Итоговая проверяемая координата.
set #checkGHPotionLowHPColor #x1 + ( #x2 - #x1 )  * #procentGHPotionLowHP / 100     // Итоговая проверяемая координата.
set #checkElixirHPColor #x1 + ( #x2 - #x1 )  * #procentElexirHP / 100                                // Итоговая проверяемая координата.
set #checkElixirMPColor #x1 + ( #x2 - #x1 )  * #procentElexirMP / 100                                // Итоговая проверяемая координата.
set #checkGCPColor #x1 + ( #x2 - #x1 )  * #procentGCP / 100                                // Итоговая проверяемая координата.
set #checkCPColor #x1 + ( #x2 - #x1 )  * #procentCP / 100                                // Итоговая проверяемая координата.
set #checkBSOEColor #x1 + ( #x2 - #x1 )  * #procentBSOE / 100                              // Итоговая проверяемая координата.
while_not #x1PlayerControl, #y1PlayerControl #color1PlayerControl and #x2PlayerControl, #y2PlayerControl #color2PlayerControl and #x3PlayerControl, #y3PlayerControl #color3PlayerControl and #x4PlayerControl, #y4PlayerControl #color4PlayerControl and #x5PlayerControl, #y5PlayerControl #color5PlayerControl and #x6PlayerControl, #y6PlayerControl #color6PlayerControl
wait 100
end_while
alarm online
if #dev = 1 // Вывод значений цвета в контрольных точках игрока
get color #c1 #x1PlayerControl, #y1PlayerControl
get color #c2 #x2PlayerControl, #y2PlayerControl
get color #c3 #x3PlayerControl, #y3PlayerControl
get color #c4 #x4PlayerControl, #y4PlayerControl
get color #c5 #x5PlayerControl, #y5PlayerControl
get color #c6 #x6PlayerControl, #y6PlayerControl
msg #c1 #color1PlayerControl    #c2 #color2PlayerControl  #c3 #color3PlayerControl    #c4 #color4PlayerControl    #c5 #color5PlayerControl    #c6 #color6PlayerControl
stop_script
end_if

//Пет
// Крайняя правая точка хп вашего ПЕТА. Только X координата.
set #hpPetEndX #hpPetBeginX + 152
// Контрольные точки  ПЕТА
set #x1PetControl #hpPetBeginX - 16 // Левый верх
set #y1PetControl #yPetHP - 25
set #color1PetControl 10004918
set #x2PetControl #hpPetBeginX - 17 // Левый низ
set #y2PetControl #yPetHP + 18
set #color2PetControl 11649225
set #x3PetControl #hpPetBeginX + 155 // Правый верх
set #y3PetControl #yPetHP - 10
set #color3PetControl 9676461
set #x4PetControl #hpPetBeginX +157 // Правый низ
set #y4PetControl #yPetHP + 18
set #color4PetControl 9478825
//Проверяемые точки хп ПЕТА
set #checkPetPotionColor #hpPetBeginX + ( #hpPetEndX - #hpPetBeginX )  * #petProcentPotion / 100                             // Итоговая проверяемая координата.
set #checkPetPotionLowHPColor #hpPetBeginX + ( #hpPetEndX - #hpPetBeginX )  * #petProcentPotionLowHP / 100     // Итоговая проверяемая координата.
set #checkPetGHPotionColor #hpPetBeginX + ( #hpPetEndX - #hpPetBeginX )  * #petProcentGHPotion / 100                             // Итоговая проверяемая координата.
set #checkPetGHPotionLowHPColor #hpPetBeginX + ( #hpPetEndX - #hpPetBeginX )  * #petProcentGHPotionLowHP / 100     // Итоговая проверяемая координата.
//set #checkPetElixirColor #hpPetBeginX + ( #hpPetEndX - #hpPetBeginX )  * #petProcentElexirHP / 100                                // Итоговая проверяемая координата.
// Пищим, если видим иконку ПЕТА
if ( #x1PetControl, #y1PetControl #color1PetControl ) and ( #x2PetControl, #y2PetControl #color2PetControl ) and ( #x3PetControl, #y3PetControl #color3PetControl ) and ( #x4PetControl, #y4PetControl #color4PetControl )
alarm win1
end_if
if #dev = 1 // Вывод значений цвета в контрольных точках ПЕТА
get color #c1 #x1PetControl, #y1PetControl
get color #c2 #x2PetControl, #y2PetControl
get color #c3 #x3PetControl, #y3PetControl
get color #c4 #x4PetControl, #y4PetControl
msg #c1 10004918    #c2 11649225    #c3 9676461    #c4 9478825
while ( #x1PetControl, #y1PetControl #color1PetControl ) and ( #x2PetControl, #y2PetControl #color2PetControl ) and ( #x3PetControl, #y3PetControl #color3PetControl ) and ( #x4PetControl, #y4PetControl #color4PetControl )
alarm
end_while
stop_script
end_if

//Объявление переменных
//Игрок
set #lastUsePotion 0
set #lastUsePotionLowHP 0
set #lastUseGHPotion 0
set #lastUseGHPotionLowHP 0
//Пет
set #lastUsePetPotion 0
set #lastUsePetPotionLowHP 0
set #lastUsePetGHPotion 0
set #lastUsePetGHPotionLowHP 0
set #lastUsePetElixir 0

    :start   // ЛИШНЕЕ ЗАКОММЕНТИРОВАТЬ С ПОМОЩЬЮ "//" ! ! ! ! !
    while #xControl, #yControl #colorControl  // Проверка окно ли линейки. Сделано в основном для того,чтобы в альтабе не тыкал хил.
        
        gosub AFK // Предотвращает хил, если вы отошли от компа. Не палимся.
        gosub HPotion
//        gosub HPotionLow
        gosub GHPotion
//        gosub GHPotionLow
//        gosub CPorion
//        gosub GCPotion
//        gosub ElixirHP
//        gosub ElixirMP
//        gosub MPotion
//        gosub BSOE

        if ( #x1PetControl, #y1PetControl #color1PetControl ) and ( #x2PetControl, #y2PetControl #color2PetControl ) and ( #x3PetControl, #y3PetControl #color3PetControl ) and ( #x4PetControl, #y4PetControl #color4PetControl )
        wait 1
            gosub PetHPotion
//            gosub PetHPotionLow
            gosub PetGHPotion
//            gosub PetGHPotionLow
        end_if
        
    end_while
    wait 100
    goto start


// ДЕТЕКТОР ДВИЖЕНИЙ МЫШКИ (AFK)
    :AFK
        get mouse_pos #xMousePos #yMousePos
        if ( #xMousePos = #xLastMousePos ) and ( #yMousePos = #yLastMousePos )
            if #timerAFK < timer
                while ( #xMousePos = #xLastMousePos ) and ( #yMousePos = #yLastMousePos )
                    wait 500
                    get mouse_pos #xMousePos #yMousePos
                end_while
                set #timerAFK timer + #timerAFKadd // ВРЕМЯ ПРОСТОЯ в миллисекундах (1000 = 1 секунда)
            end_if
        else
            set #timerAFK timer + #timerAFKadd // ВРЕМЯ ПРОСТОЯ в миллисекундах (1000 = 1 секунда)
        end_if
        set #xLastMousePos #xMousePos
        set #yLastMousePos #yMousePos
    return

//    ОБЫЧНЫЕ ХП БАНКИ
    :HPotion
        if_not #checkPotionColor, #yPlayerHP #colorHP
            if #LastUsePotion < timer
                if #x1PlayerControl, #y1PlayerControl #color1PlayerControl and #x2PlayerControl, #y2PlayerControl #color2PlayerControl and #x3PlayerControl, #y3PlayerControl #color3PlayerControl and #x4PlayerControl, #y4PlayerControl #color4PlayerControl and #x5PlayerControl, #y5PlayerControl #color5PlayerControl and #x6PlayerControl, #y6PlayerControl #color6PlayerControl
                    if_not #checkPotionColor, #yPlayerHP #colorHP
                        send $buttonPotion
                        set #lastUsePotionLowHP timer + #cooldownHPLow
                        set #lastUsePotion timer + #cooldownHP
                    end_if
                 end_if
            end_if
        end_if
        wait #waiting
    return

    :HPotionLow    
        if_not #checkPotionLowHPColor, #yPlayerHP #colorHP
            if #LastUsePotionLowHP < timer
                if #x1PlayerControl, #y1PlayerControl #color1PlayerControl and #x2PlayerControl, #y2PlayerControl #color2PlayerControl and #x3PlayerControl, #y3PlayerControl #color3PlayerControl and #x4PlayerControl, #y4PlayerControl #color4PlayerControl and #x5PlayerControl, #y5PlayerControl #color5PlayerControl and #x6PlayerControl, #y6PlayerControl #color6PlayerControl
                    if_not #checkPotionLowHPColor, #yPlayerHP #colorHP
                        send $buttonPotion
                        set #lastUsePotionLowHP timer + #cooldownHPLow
                        set #lastUsePotion timer + #cooldownHP
                    end_if
                end_if
            end_if
        end_if
        wait #waiting
    return

//     ГХП БАНКИ НАЧАЛО
    :GHPotion
        if_not #checkGHPotionColor, #yPlayerHP #colorHP
            if #LastUseGHPotion < timer
                if #x1PlayerControl, #y1PlayerControl #color1PlayerControl and #x2PlayerControl, #y2PlayerControl #color2PlayerControl and #x3PlayerControl, #y3PlayerControl #color3PlayerControl and #x4PlayerControl, #y4PlayerControl #color4PlayerControl and #x5PlayerControl, #y5PlayerControl #color5PlayerControl and #x6PlayerControl, #y6PlayerControl #color6PlayerControl
                    if_not #checkGHPotionColor, #yPlayerHP #colorHP
                        send $buttonGHPotion
                        set #lastUsePotionLowHP timer + #cooldownHPLow
                        set #lastUsePotion timer + #cooldownHP
                        set #lastUseGHPotionLowHP timer + #cooldownGHPLow
                        set #lastUseGHPotion timer + #cooldownGHP
                    end_if
                end_if
            end_if
        end_if
        wait #waiting
    return

    :GHPotionLow    
        if_not #checkGHPotionLowHPColor, #yPlayerHP #colorHP
            if #LastUseGHPotionLowHP < timer
                if #x1PlayerControl, #y1PlayerControl #color1PlayerControl and #x2PlayerControl, #y2PlayerControl #color2PlayerControl and #x3PlayerControl, #y3PlayerControl #color3PlayerControl and #x4PlayerControl, #y4PlayerControl #color4PlayerControl and #x5PlayerControl, #y5PlayerControl #color5PlayerControl and #x6PlayerControl, #y6PlayerControl #color6PlayerControl
                    if_not #checkGHPotionLowHPColor, #yPlayerHP #colorHP
                        send $buttonGHPotion
                        set #lastUsePotionLowHP timer + #cooldownHPLow
                        set #lastUsePotion timer + #cooldownHP
                        set #lastUseGHPotionLowHP timer + #cooldownGHPLow
                        set #lastUseGHPotion timer + #cooldownGHP
                    end_if
                end_if
            end_if
        end_if
        wait #waiting
    return

//    ЭЛИКСИРЫ
    :ElixirHP
        if_not #checkElixirHPColor, #yPlayerHP #colorHP
            if #LastUseElixirHPMP < timer
                if #x1PlayerControl, #y1PlayerControl #color1PlayerControl and #x2PlayerControl, #y2PlayerControl #color2PlayerControl and #x3PlayerControl, #y3PlayerControl #color3PlayerControl and #x4PlayerControl, #y4PlayerControl #color4PlayerControl and #x5PlayerControl, #y5PlayerControl #color5PlayerControl and #x6PlayerControl, #y6PlayerControl #color6PlayerControl
                    if_not #checkElixirHPColor, #yPlayerHP #colorHP
                        post $buttonElixirHP
                        set #lastUseElixirHPMP timer + 301000
                    end_if
                end_if
            end_if
        end_if
        wait #waiting
    return

    :ElixirHP
        if_not #checkElixirMPColor, #yPlayerHP #colorHP
            if #LastUseElixirHPMP < timer
                if #x1PlayerControl, #y1PlayerControl #color1PlayerControl and #x2PlayerControl, #y2PlayerControl #color2PlayerControl and #x3PlayerControl, #y3PlayerControl #color3PlayerControl and #x4PlayerControl, #y4PlayerControl #color4PlayerControl and #x5PlayerControl, #y5PlayerControl #color5PlayerControl and #x6PlayerControl, #y6PlayerControl #color6PlayerControl
                    if_not #checkElixirMPColor, #yPlayerHP #colorHP
                        post $buttonElixirMP
                        set #lastUseElixirHPMP timer + 301000
                    end_if
                end_if
            end_if
        end_if
        wait #waiting
    return

//    ЦП
    :GCPotion
        if_not #checkGCPColor #yPlayerCP #colorCP
            if #lastUseGCP < timer
                if #x1PlayerControl, #y1PlayerControl #color1PlayerControl and #x2PlayerControl, #y2PlayerControl #color2PlayerControl and #x3PlayerControl, #y3PlayerControl #color3PlayerControl and #x4PlayerControl, #y4PlayerControl #color4PlayerControl and #x5PlayerControl, #y5PlayerControl #color5PlayerControl and #x6PlayerControl, #y6PlayerControl #color6PlayerControl
                    if_not
                        post $buttonGCP
                        set #lastUseGCP timer + #cooldownGCP
                    end_if
                end_if
            end_if
        end_if
    reurn

    :GCPotion
        if_not #checkGCPColor #yPlayerCP #colorCP
            if #lastUseCP < timer
                if #x1PlayerControl, #y1PlayerControl #color1PlayerControl and #x2PlayerControl, #y2PlayerControl #color2PlayerControl and #x3PlayerControl, #y3PlayerControl #color3PlayerControl and #x4PlayerControl, #y4PlayerControl #color4PlayerControl and #x5PlayerControl, #y5PlayerControl #color5PlayerControl and #x6PlayerControl, #y6PlayerControl #color6PlayerControl
                    if_not
                        post $buttonCP
                        set #lastUseCP timer + #cooldownCP
                    end_if
                end_if
            end_if
        end_if
    reurn

    :BSOE    
        if_not #checkBSOEColor, #yPlayerHP #colorHP
            if #xControl, #yControl #colorControl // Проверка окно ли линейки.
                if #x1PlayerControl, #y1PlayerControl #color1PlayerControl and #x2PlayerControl, #y2PlayerControl #color2PlayerControl and #x3PlayerControl, #y3PlayerControl #color3PlayerControl and #x4PlayerControl, #y4PlayerControl #color4PlayerControl and #x5PlayerControl, #y5PlayerControl #color5PlayerControl and #x6PlayerControl, #y6PlayerControl #color6PlayerControl
                    if_not #checkBSOEColor, #yPlayerHP #colorHP
                        post Escape
                        wait 200
                        post $buttonBSOE
                        while_not #checkBSOEcolor, #yPlayerHP #colorHP
                            wait 500
                        end_while
                        wait 15s
                    end_if
                end_if
            end_if
        end_if
        wait #waiting
    return

// ДАЛЕЕ ВСЕ ДЛЯ ПЕТА
// ДАЛЕЕ ВСЕ ДЛЯ ПЕТА
// ДАЛЕЕ ВСЕ ДЛЯ ПЕТА
// ДАЛЕЕ ВСЕ ДЛЯ ПЕТА
// ДАЛЕЕ ВСЕ ДЛЯ ПЕТА

//    ОБЫЧНЫЕ ХП БАНКИ НАЧАЛО
    :PetHPotion
        if_not #checkPetPotionColor, #yPetHp #colorPetHP
            if #LastUsePetPotion < timer
                if ( #x1PetControl, #y1PetControl #color1PetControl ) and ( #x2PetControl, #y2PetControl #color2PetControl ) and ( #x3PetControl, #y3PetControl #color3PetControl ) and ( #x4PetControl, #y4PetControl #color4PetControl )
                    if_not #checkPetPotionColor, #yPetHp #colorPetHP
                        send $buttonPetPotion
                        set #lastUsePetPotionLowHP timer + 10000
                        set #lastUsePetPotion timer + 15000
                    end_if
                end_if
            end_if
        end_if
        wait #waiting
    return

    :PetHPotionLow
        if_not  #checkPetPotionLowHPColor  #yPetHp, #colorPetHP
            if #LastUsePetPotionLowHP < timer
                if ( #x1PetControl, #y1PetControl #color1PetControl ) and ( #x2PetControl, #y2PetControl #color2PetControl ) and ( #x3PetControl, #y3PetControl #color3PetControl ) and ( #x4PetControl, #y4PetControl #color4PetControl )
                    if_not  #checkPetPotionLowHPColor  #yPetHp, #colorPetHP
                        send $buttonPetPotion
                        set #lastUsePetPotionLowHP timer + 10000
                        set #lastUsePetPotion timer + 15000
                    end_if
                end_if
            end_if
        end_if
        wait #waiting
    return
    

//     ГХП БАНКИ НАЧАЛО
    :PetGHPotion
        if_not #checkPetGHPotionColor, #yPetHp #colorPetHP
            if #LastUsePetGHPotion < timer
                if ( #x1PetControl, #y1PetControl #color1PetControl ) and ( #x2PetControl, #y2PetControl #color2PetControl ) and ( #x3PetControl, #y3PetControl #color3PetControl ) and ( #x4PetControl, #y4PetControl #color4PetControl )
                    if_not #checkPetGHPotionColor, #yPetHp #colorPetHP
                        send $buttonPetGHPotion
                        set #lastUsePetPotionLowHP timer + 10000
                        set #lastUsePetPotion timer + 15000
                        set #lastUsePetGHPotionLowHP timer + 10000
                        set #lastUsePetGHPotion timer + 15000
                    end_if
                 end_if
            end_if
        end_if
        wait #waiting
    return

    :PetGHPotionLow    
        if_not #checkPetGHPotionLowHPColor, #yPetHp #colorPetHP
            if #LastUsePetGHPotionLowHP < timer
                if ( #x1PetControl, #y1PetControl #color1PetControl ) and ( #x2PetControl, #y2PetControl #color2PetControl ) and ( #x3PetControl, #y3PetControl #color3PetControl ) and ( #x4PetControl, #y4PetControl #color4PetControl )
                    if_not #checkPetGHPotionLowHPColor, #yPetHp #colorPetHP
                        send $buttonPetGHPotion
                        set #lastUsePetPotionLowHP timer + 10000
                        set #lastUsePetPotion timer + 15000
                        set #lastUsePetGHPotionLowHP timer + 10000
                        set #lastUsePetGHPotion timer + 15000
                    end_if
                end_if
            end_if
        end_if
        wait #waiting
    return


--------------------
Скрипты UOPilot под заказ.
Консультации по UOpilot 15$/час.
Услуги Lua разработчика (не пилот, проекты, постоянка)
Disсоrd:
Kov____
Пользователь в офлайнеDelete PostОтправить личное сообщение
Вернуться в начало страницы
+Ответить с цитированием данного сообщения

Ответить в эту темуОткрыть новую тему
2 чел. читают эту тему (гостей: 2, скрытых пользователей: 0)
Пользователей: 0

 

- Текстовая версия | Версия для КПК Сейчас: 27.4.2024, 8:36
Designed by Nickostyle