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

 
Ответить в эту темуОткрыть новую тему
> помощь
rdg
сообщение 22.10.2018, 8:36
Сообщение #1


**

Neophyte
Сообщений: 19
Регистрация: 22.10.2018
Группа: Пользователи
Наличность: 0
Пользователь №: 19.088
Возраст: 23




Привет всем! Во-первых, я хотел извиниться за ошибки, я использую переводчика для общения на вашем языке, надеюсь, вы понимаете! Ну, я новичок в кодах, так или иначе, я прочитал несколько тем, но я до сих пор не понимаю его здесь.

Код
set $black findimage (1033, 25, 1360, 768 (\battle.bmp) $arr 1)


Что это за 4 первых числа? И что это стоит $arr 1? не могли бы вы поговорить со мной на менее формальном языке?

то же самое я вижу в этом коде vvv

Код
:1
set $1 findimage (633, 5 739, 113 11 (wp1.bmp) $arr 2)
if $1 > 0
kleft $arr (1 1) $arr (1 2)
wait 3000
else
goto 2
end_if
set $1 findimage (682, 55 690,62 1 1 (wp1.bmp) $arr2)
if $1 > 0
goto 2
else
goto 1
end_if



и тем, что есть еще те координаты $ arr (1 1) $ arr (1 2), которые я также не понимаю


и, например, у меня есть 2 отпечатка жизни и мана-бар моего персонажа, как исцелить его магией / зельем и использовать что-то, чтобы восстановить ману? все это с использованием x%, не так ли?
Пользователь в офлайнеDelete PostОтправить личное сообщение
Вернуться в начало страницы
+Ответить с цитированием данного сообщения
rdg
сообщение 22.10.2018, 8:53
Сообщение #2


**

Neophyte
Сообщений: 19
Регистрация: 22.10.2018
Группа: Пользователи
Наличность: 0
Пользователь №: 19.088
Возраст: 23



03:48:53 0 (autosaved_0.txt, 23): goto - Error while creating Lua virtual mashine
??????????
Пользователь в офлайнеDelete PostОтправить личное сообщение
Вернуться в начало страницы
+Ответить с цитированием данного сообщения
DarkMaster
сообщение 22.10.2018, 15:33
Сообщение #3


***********

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



Can you write on english? It can be some more easy.
1033, 25, 1360, 768 - its area for find. Coordinates in pixels.
startX startY endX endY
Цитата
\battle.bmp

Be careful. If you type "\" before path its mean disk root. Example:
You have uopilot in folder d:\Uopilot\
If you type path:
"MyFolder"
Its:
d:\Uopilot\MyFolder
But if you type path:
"\MyFolder"
its:
d:\MyFolder

%arr its array for save result.

1 - its type of search
Types:
1 - slow (dont use that if you other type work fine)
2 - fast (i know only one program where it dont work - ultima online)
handle - it handle of window, usually its "workwindow". That method can get image from covered (not minimized) window. Work not always, some time you need use handle of parent window for it can be work.


Цитата
03:48:53 0 (autosaved_0.txt, 23): goto - Error while creating Lua virtual mashine
??????????

Just download new stable night version
http://uopilot.uokit.com/dlnight.php

Цитата
kleft $arr (1 1) $arr (1 2)

Its error. not (), but []
Its indexes of array.
%arr[1 1] - first image X
%arr[1 2] - first image Y
%arr[2 1] - second image X
%arr[2 2] - second image Y
....


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


**

Neophyte
Сообщений: 19
Регистрация: 22.10.2018
Группа: Пользователи
Наличность: 0
Пользователь №: 19.088
Возраст: 23



Цитата(DarkMaster @ 22.10.2018, 15:33) *

Can you write on english? It can be some more easy.
1033, 25, 1360, 768 - its area for find. Coordinates in pixels.
startX startY endX endY

Be careful. If you type "\" before path its mean disk root. Example:
You have uopilot in folder d:\Uopilot\
If you type path:
"MyFolder"
Its:
d:\Uopilot\MyFolder
But if you type path:
"\MyFolder"
its:
d:\MyFolder

%arr its array for save result.

1 - its type of search
Types:
1 - slow (dont use that if you other type work fine)
2 - fast (i know only one program where it dont work - ultima online)
handle - it handle of window, usually its "workwindow". That method can get image from covered (not minimized) window. Work not always, some time you need use handle of parent window for it can be work.
Just download new stable night version
http://uopilot.uokit.com/dlnight.php
Its error. not (), but []
Its indexes of array.
%arr[1 1] - first image X
%arr[1 2] - first image Y
%arr[2 1] - second image X
%arr[2 2] - second image Y
....


and how do I find startX startY endX endY? I tried to make the markup, but the mouse will go the opposite direction.


I put an original battle image in the c: \ image \ target. And seeing the 2 markings on the minimap? I wanted him to look for the photo of these markings and click with the left button and go looking for the others (it's 20, I have the photos)


Эскизы прикрепленных изображений
Прикрепленное изображение
Пользователь в офлайнеDelete PostОтправить личное сообщение
Вернуться в начало страницы
+Ответить с цитированием данного сообщения
DarkMaster
сообщение 23.10.2018, 5:35
Сообщение #5


***********

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



Цитата
and how do I find startX startY endX endY?

You need activate uopilot window, after that move mouse to start position (up and left) and press ctrl+a. You need dont change focus from uopilot in that moment. After that you can see crds in uopilot interface. It have two pairs x and y coordinates. Left its crds from left and up angle of window (use that like startX and startY) and right from left and up angle of _screen_. For use screen coordinates uopilot have "abs" flag in some functions. Repeat that action for right and down angle (endX and endY).


Цитата
I put an original battle image in the c: \ image \ target. And seeing the 2 markings on the minimap? I wanted him to look for the photo of these markings and click with the left button and go looking for the others (it's 20, I have the photos)

Its ok. Just use array for path.
Код
set %path [1] path1
set %path [2] path2
set %path [3] path3
set %path [4] path4
set %path [5] path5
set %path [6] path6
set #pathSize size(%path)

for #i 1 #pathSize
    set #a findimage(x1, y1, x2, y2 (%pathSize[i]) %arr 2 80 1)
    if #a > 0
        left %arr[1 1] %arr[1 2]
    end
    wait 100
end



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


**

Neophyte
Сообщений: 19
Регистрация: 22.10.2018
Группа: Пользователи
Наличность: 0
Пользователь №: 19.088
Возраст: 23



Цитата(DarkMaster @ 23.10.2018, 5:35) *

You need activate uopilot window, after that move mouse to start position (up and left) and press ctrl+a. You need dont change focus from uopilot in that moment. After that you can see crds in uopilot interface. It have two pairs x and y coordinates. Left its crds from left and up angle of window (use that like startX and startY) and right from left and up angle of _screen_. For use screen coordinates uopilot have "abs" flag in some functions. Repeat that action for right and down angle (endX and endY).
Its ok. Just use array for path.
Код
set %path [1] path1
set %path [2] path2
set %path [3] path3
set %path [4] path4
set %path [5] path5
set %path [6] path6
set #pathSize size(%path)

for #i 1 #pathSize
    set #a findimage(x1, y1, x2, y2 (%pathSize[i]) %arr 2 80 1)
    if #a > 0
        left %arr[1 1] %arr[1 2]
    end
    wait 100
end






I still can not solve this mystery hahah, I do not think I'm explaining myself right or I can not do it.
Do you know what is the photo I sent? so there is no upper right corner is the game map, and I wanted to make my name walk and clicks on these marks, there are 18 more markings and they are present in my state mark, that is, They change position where I want my character walk. So I saved the 20 possible markings in a part (c: \ image \ wp1.bmp) and I want to make a code that searches those markings and clicks on the map, so that my character would walk through them

I tried to do what you told me, the script runs, but it does not perform any function
Sorry to be boring, I'm new to all this.


Пользователь в офлайнеDelete PostОтправить личное сообщение
Вернуться в начало страницы
+Ответить с цитированием данного сообщения
DarkMaster
сообщение 25.10.2018, 8:58
Сообщение #7


***********

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



You need some more wait in function, it must be individual for each image.

When you press on minimap charters start run?
Try to emulate click without finds.
left x, y
or
kleft x, y
Its work?


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

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

 

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