Скрипт для тех кому надоело ручками каждый раз тыкать кх бафф.
Линейка очень придирчива к разрешению экрана, т.к. она сразу же начинает масштабировать окна диалогов с нпц(хоть это и не заметно глазу). В связи с этим вам вероятно придется сделать небольшие смещения для кликов. Так же возможно придется вырезать кусочек скриншота с надписью "Чат" в диалоге с нпц.
TitleChat.bmp поместить в папку FindImage/L2 рядом с пилотом ! ! !
https://forum.uokit.com/index.php?act=A...ost&id=1031script
Код
set linedelay 0
// Проставляем единички напротив нужных баффов.
set %buffList [ 1 ] 1 // Wind Walk Lv.2
set %buffList [ 2 ] 1 // Decreasw Weight Lv.2
set %buffList [ 3 ] 1 // Shield Lv.3
set %buffList [ 4 ] 1 // Menral Shield Lv.4
set %buffList [ 5 ] 1 // Might Lv.3
set %buffList [ 6 ] 1 // Bless the Body Lv.6
set %buffList [ 7 ] 1 // Magic Barrier Lv.2
set %buffList [ 8 ] 1 // Resist Shok Lv.4
set %buffList [ 9 ] 1 // Bless the Soul Lv.6
set %buffList [ 10 ] 0 // Concentration Lv.6
set %buffList [ 11 ] 1 // Berserker Spirit Lv.2
set %buffList [ 12 ] 0 // Bless Shield Lv.6
set %buffList [ 13 ] 1 // Guidance Lv.3
set %buffList [ 14 ] 1 // Vampiric Rage Lv.4
set %buffList [ 15 ] 0 // Acumen Lv.1
set %buffList [ 16 ] 0 // Empower Lv.1
set %buffList [ 17 ] 1 // Haste Lv.1
set %buffList [ 18 ] 1 // Focus Lv.1
set %buffList [ 19 ] 1 // Death Whisper Lv.1
set #waitBeforeClick 100 // При маленькой задержке возможен дисконнект.
set #l2handle findwindow (Lineage II)
set #pilotHandle findwindow (УоПилот)
//showwindow #pilotHandle MINIMIZE
showwindow #l2handle SHOW
set workwindow #l2handle
set $chat findimage (0 0 1024 768 (FindImage/L2/TitleChat.bmp) %chat 2 90 1 abs
// Контрольные точки
set #controlBuffListX %chat [ 1 1 ]
set #controlBuffListY %chat [ 1 2 ] + 81
get color #controlBuffListColor #controlBuffListX #controlBuffListY
set #controlBackToListX %chat [ 1 1 ]
set #controlBackToListY %chat [ 1 2 ] + 94
set #controlBackToListColor 11192016
set #toListButtonX %chat [ 1 1 ]
set #toListButtonY %chat [ 1 2 ] + 94
set #controlScrollingDoneX %chat [ 1 1 ]
set #controlScrollingDoneY %chat [ 1 2 ] + 356
set #controlScrollingDoneColor 11718616
set #controlOpenDialogX %chat [ 1 1 ] + 8
set #controlOpenDIalogY %chat [ 1 2 ] - 9
set #controlOpenDialogColor 10394260
set #x %chat [ 1 1 ]
set #y %chat [ 1 2 ] + 116 // СМЕЩЕНИЕ РУГИЛИРОВАТЬ ТУТ первая группа баффов
//////////////////// БЛОК № 1-3
for #i 1 14 1
if %buffList [ #i ] = 1
while_not #controlBackToListX #controlBackToListY #controlBackToListColor
wait #waitBeforeClick
if #controlOpenDialogX #controlOpenDialogY #controlOpenDialogColor
kleft #x #y
end_if
end_while
while_not #controlBuffListX #controlBuffListY #controlBuffListColor
wait #waitBeforeClick
if #controlOpenDialogX #controlOpenDialogY #controlOpenDialogColor
kleft #toListButtonX #toListButtonY
end_if
end_while
end_if
set #y #y + 18
if #i = 5
set #y #y + 10 // СМЕЩЕНИЕ РУГИЛИРОВАТЬ ТУТ вторая группа баффов
end_if
if #i = 9
set #y #y + 9 // СМЕЩЕНИЕ РУГИЛИРОВАТЬ ТУТ третья группа баффов
end_if
end_for
//////////////////// БЛОК № 4
set #y %chat [ 1 2 ] + 248 // СМЕЩЕНИЕ РУГИЛИРОВАТЬ ТУТ четвертая группа баффов
for #i 15 19 1
if %buffList [ #i ] = 1
while_not #controlScrollingDoneX #controlScrollingDoneY #controlScrollingDoneColor // Пролистываем
kwheel_down #toListButtonX #toListButtonY 5
end_while
while_not #controlBackToListX #controlBackToListY #controlBackToListColor
wait #waitBeforeClick
if #controlOpenDialogX #controlOpenDialogY #controlOpenDialogColor
kleft #x #y
end_if
end_while
while_not #controlBuffListX #controlBuffListY #controlBuffListColor
wait #waitBeforeClick
if #controlOpenDialogX #controlOpenDialogY #controlOpenDialogColor
kleft #toListButtonX #toListButtonY
end_if
end_while
end_if
set #y #y + 18
end_for
stop_script
Сообщение отредактировал DarkMaster - 6.9.2011, 7:22