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

> Cavebot, Help with cavebot
Kiel
сообщение 9.6.2024, 21:04
Сообщение #1


*

Registred
Сообщений: 6
Регистрация: 20.4.2024
Группа: Пользователи
Наличность: 0
Пользователь №: 20.746
Возраст: 68



Hello friends!

I'm more than new to UoPilot.
That's why I come to ask you for help
I need this part of the cavebot where the char, when taking a walk around the hunt, checks the capacity (cap) and quantity
of HP and mana potions.
I used this code in lua in a bot that was discontinued:

Код

if (labelName == "CheckAll") then
Walker.ConditionalGoto((Self.ItemCount(HealthPotID) <= HPExit) or
(Self.ItemCount(ManaPotID) <= MPExit) or
(CapChar <= CapExit), "ExitHunt", "Return to Hunt")
End


How to do it on UoPilot?

And also how to sell items and buy pots?

Having achieved this, I know that I need to modify few things in each search I do.
I hope to count on your help.
Thank you for your early attention!
Sorry, I'm from Brazil, using Google Translate.
Пользователь в офлайнеDelete PostОтправить личное сообщение
Вернуться в начало страницы
+Ответить с цитированием данного сообщения
 
Ответить в эту темуОткрыть новую тему
Ответов
DarkMaster
сообщение 10.6.2024, 11:43
Сообщение #2


***********

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



UOPilot doesn't have specific tools for work with that game. But you can use functions like color, findcolor, findimage for check specific things, also if you have memory addresses you can use readmem for direct access to data. I recommend to start to read wiki for understand how you can do it.


Сообщение отредактировал DarkMaster - 10.6.2024, 16:52


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

Сообщений в этой теме


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

 

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