Помощь - Поиск - Пользователи - Календарь
Полная версия: Create New Library
UoKit.com Форумы > Кликер > UO Pilot
darcioantonio
Hello, my question is the following, I can create a new library to use a code like this

if 256, 188 2048112
send Teste
end_if



then this code from above would look like this in the library

function(Teste)

to avoid putting a huge code
DarkMaster
I strongly recommend to use lua syntax. (--lua in first string to enable that)
For lua:
Код
local function test (params)
    code
end
if color(256, 188) == 2048112 do
    send (test(params))
end

For uopilot syntax:
Код
gosub test
end_script

:test
    code
    send ...
return
Это текстовая версия — только основной контент. Для просмотра полной версии этой страницы, пожалуйста, нажмите сюда.
Русская версия Invision Power Board © 2001-2024 Invision Power Services, Inc.