Jump to content

AutoTouch Script Writing - .lua


11 posts in this topic

Recommended Posts

Posted

--上路buff 检测

function topbuff()

    local x = getColor(212, 201); -- 9906793, 0x972A69

repeat

   x = getColor(212, 201)

   usleep(50000) -- Wait a while

until

    ( x == 9906793 )

    toast("TOP BUFF 找到了");

    vibrate();

    vibrate();

    usleep(3000000);

end

 

function topxiaoye()

    local x = getColor(175, 169); -- 4694051, 0x47A023

repeat  

    x = getColor(175, 169)

    usleep(50000);

    until 

        (x == 4694051);

        toast("TOP 小野怪 找到了");

        vibrate();

        usleep(3000000);

end

 

 

while true do

    topbuff();

    usleep(4000000);

end

 mobile legends top blue buff check. iPhone XS Max

Posted

--封装函数 任务列表开始任务

function startrenwu()

    tap(134, 329);

usleep(700000);

tap(940, 286);

usleep(700000);

tap(2193, 1092);

usleep(700000);

end

 

--封装函数 找到接受按钮并点击

function jieshou()

    local x = getColor(2223, 732); -- 16677712, 0xFE7B50

    repeat  

        tap(2223, 732);

        usleep(1000000);

        x = getColor(2223, 732);

    until (x==16677712);

        toast("找到接受按钮");

        tap(2223,732);

end

 

 

--封装函数 找到领取奖励按钮并点击

function jiangli()

    local x = getColor(1255, 1091); -- 16677712, 0xFE7B50

    repeat 

        x = getColor(1255, 1091);

        usleep(1000000);

    until (x == 16677712);

        toast("找到领取奖励按钮");

        tap(1255, 1091);

end

 

 

while true do

    startrenwu();

    jieshou();

    jiangli();

end

 
 
Maple story M auto Que iPhone XS Max. Lol. I m Wright too many mobile game scripts 
Posted
On 10/25/2015 at 8:03 PM, Guest said:

Hey guys!

 

Is there anyone here that is good at writing .lua/autotouch scripts?

 

If yes, can you please teach me?:3

What do you want to learn about can help you if you want 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines