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

 
Ответить в эту темуОткрыть новую тему
> Help findimage
rdg
сообщение 4.1.2019, 0:41
Сообщение #1


**

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



Hi, good day / afternoon / evening, any be an hour when you are reading this.
I would like help with a simple script. (Simple, but I can not make rsrs work). So ... I'm making a game, and it's in part a part: I do a search to look for a bug in BATTLE (imagine below), there is not an error on the screen, it returns to the beginning of the script, but it appears bug on the screen (will be different, now will have a bug on the screen) it will tighten F11


part 2: of the script would be as follows: Make it go back to script 2 if it is still attacking the bug, when it presses F11, it selects the target, and in battle, it has a red square around it (photo below to demonstrate)


part 3: would be the part of catch loot, but only get the loot if you have just killed the bug (in case you would not have anything selected in the battle)
and back to part 1 and everything starts again


Прикрепленные файлы
Прикрепленный файл  battle.bmp ( 14,82 килобайт ) Кол-во скачиваний: 142
Прикрепленный файл  atk.bmp ( 2,02 килобайт ) Кол-во скачиваний: 125
Пользователь в офлайнеDelete PostОтправить личное сообщение
Вернуться в начало страницы
+Ответить с цитированием данного сообщения
NoName212
сообщение 4.1.2019, 16:00
Сообщение #2


**

Neophyte
Сообщений: 13
Регистрация: 6.10.2018
Группа: Пользователи
Наличность: 0
Пользователь №: 19.068
Возраст: 28



Цитата(rdg @ 4.1.2019, 7:41) *

I do a search to look for a bug in BATTLE (imagine below), there is not an error on the screen, it returns to the beginning of the script, but it appears bug on the screen (will be different, now will have a bug on the screen) it will tighten F11



if it finds a picture, presses 20 times on f11 every 0.3 seconds. Then all over again. Searches for a picture if it finds it - presses f11 20 times. If not found then: 0 - bug not found

Код
set #FindBug findimage (353, 159 500, 260  (C:\Users\GRU\Downloads\atk.bmp) %arr 2 60 1 20)
if #FindBug > 0
for #Number 1 20 1
  //Send_down f11 300
  Send f11 300
end_for
else
  msg #FindBug - bug not found
end_if
Пользователь в офлайнеDelete PostОтправить личное сообщение
Вернуться в начало страницы
+Ответить с цитированием данного сообщения

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

 

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