Jump to content

[AutoTouch] Lua script


Anonymonk

3 posts in this topic

Recommended Posts

hey guys,

im really noob with .lua, until few days ago i was only using "record" option to make a script.

So here is the code im working on, its for bleach brave souls

Quote

-- create room
if getColor(700, 600) == 9748479
and getColor(700, 700) == 7841022 then
tap(813, 703);
usleep(10000);
end

-- share with guild
if getColor(750, 30) == 16437203
and getColor(760, 30) == 12409698 then
tap(773, 93);
usleep(300000);
tap(502, 1282);
usleep(10000);
end

-- confirmation
if getColor(478, 1020) == 736224
and getColor(480, 1020) == 5015543 then
tap(474, 1361);
usleep(10000);
end

-- start with 2/4
if getColor(534, 762) == 15094282
and getColor(460, 1100) == 16578190 then
usleep(300000);
tap(61, 1640);
usleep(500000);
tap(480, 1400);
usleep(10000);
end

-- start with 3/4
if getColor(530, 1332) == 15364405
and getColor(307, 1532) == 15321944 then
usleep(300000);
tap(61, 1640);
usleep(500000);
tap(480, 1400);
usleep(10000);
end

-- start with 4/4
if getColor(377, 1763) == 15162392
and getColor(376, 1763) == 15094539 then
usleep(300000);
tap(61, 1640);
usleep(500000);
tap(480, 1400);
usleep(10000);
end

-- 5sec special loop
if getColor(600, 1900) == 15262696
and getColor(538, 1900) == 15259376 then
tap(574, 1920);
usleep(1000000);
tap(761, 1);
usleep(500000);
tap(761, 1);
usleep(500000);
tap(761, 1);
usleep(500000);
tap(761, 1);
usleep(500000);
tap(761, 1);
usleep(500000);
tap(761, 1);
usleep(500000);
end

-- skip tap
if getColor(105, 1208) == 16119285
and getColor(109, 1208) == 14408667 then
usleep(1000000);
tap(165, 204);
usleep(200000);
tap(165, 204);
usleep(200000);
tap(165, 204);
usleep(200000);
tap(165, 204);
usleep(200000);
tap(165, 204);
usleep(200000);
tap(165, 204);
usleep(200000);
tap(165, 204);
usleep(200000);
tap(165, 204);
usleep(200000);
tap(165, 204);
usleep(200000);
end 

-- reward
if getColor(152, 1020) == 1065185
and getColor(157, 1020) == 12441342 then
tap(160, 1049);
usleep(10000);
end

-- retry
if getColor(155, 1798) == 2125794
and getColor(153, 1792) == 2322661 then
tap(171, 244);
usleep(10000);
end

 

In Bleach, sometime host and client get stuck while changing quest area, the host start loading, but the client didnt get it.... and it stay in that state untildeath occurs.
i know if i put in the script an alert message, for 3sec, it does unstuck the situation.... 

after some digging i thought that i could do something like

-- unstuck the loading screen of the death
function Antistuck()
    if (getColor(700, 600) == 9748479) then
        usleep(10000000);
        return true;
    end
    return false;
end

while true do
    if (Antistuck()) 
    and getColor(700, 700) == 7841022 then
        alert("Unstucking")
        usleep(3300000);
        tap(711, 1020);
        usleep(10000);
    end
end

but it doesnt work inside my main script, my script just run once....

i would need to write something like , i just have no idea how to process

if "loading screen appear for more than 10sec" then
alert"blablabla"
usleep 3.3sec
dismiss the alert...

if anybody could help me that would be very nice... as i bearly understand what im doing... its not easy to fix xD

Thanks!

Link to comment
https://iosgods.com/topic/69027-autotouch-lua-script/
Share on other sites

ok i just learn how to make bloc,

its not perfect because its delaying the whole script with every loading screen, but that will make my life easier ^^

if getColor(80, 1848) == 197379
and getColor(83, 1851) == 15395562 then
usleep(5000000);
	if getColor(80, 1848) == 197379
	and getColor(83, 1851) == 15395562 then
	alert("Unstucking")
	usleep(3300000);
	tap(711, 1020);
	usleep(10000);
	end
end

 

Edit : so i end to insert another bloc, like this, but now the springboard of my ipad air 2 is crashing from time to time....

if getColor(80, 1848) == 197379
and getColor(83, 1851) == 15395562
and getColor(535, 734) == 0 then
usleep(1000000);
    if getColor(535, 734) == 0 then
    usleep(3000000);
        if getColor(535, 734) == 0 then
        alert("Unstucking")
        usleep(3300000);
        tap(711, 1020);
        usleep(10000);
        end
    end
end

 

Link to comment
https://iosgods.com/topic/69027-autotouch-lua-script/#findComment-2050627
Share on other sites

ok, seems to work fine now


-- antistuck
if getColor(600, 600) == 0
and getColor(86, 1735) == 16777215 then
usleep(3000000);
	if getColor(600, 600) == 0 then
		repeat 
		usleep(2900000);
		alert("Unstucking")
		usleep(6000000);
		tap(711, 1020);
		until getColor(600, 600) ~= 0
	usleep(300000);
	end
end

 

Link to comment
https://iosgods.com/topic/69027-autotouch-lua-script/#findComment-2051368
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Subway Surfers v3.42.2 +21 Jailed Cheats [ Currencies + More ]
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?uo=4


      Hack Features:
      - Unlimited Currencies
      - Freeze Currencies
      - Free In-App Purchases
      - All Characters Unlocked
      - God Mode
      - No Stumble
      - Score Multiplier
      - Speed Multiplier
      - Gravity Multiplier
      - Jump Height Multiplier
      - Air Jump Height Multiplier
      - Unlimited Jumps
      - Unlimited Powers
      - Instant Lane Change
      - Freeze Trains
      - No Clip
      - Disable All Pickup
      - No Revive Cost
      - Unlimited Jetpack Time
      - Camera Stops
      - Camera Follows


      Jailbreak required hack(s): [Mod Menu Hack] Subway Surfers v3.40.0 +20 Cheats [ Currencies + More ] - ViP Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Thanks
        • Like
      • 24 replies
    • Subway Surfers v3.42.2 +21 Cheats [ Currencies + More ]
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?uo=4


      Hack Features:
      - Unlimited Currencies
      - Freeze Currencies
      - Free In-App Purchases
      - All Characters Unlocked
      - God Mode
      - No Stumble
      - Score Multiplier
      - Speed Multiplier
      - Gravity Multiplier
      - Jump Height Multiplier
      - Air Jump Height Multiplier
      - Unlimited Jumps
      - Unlimited Powers
      - Instant Lane Change
      - Freeze Trains
      - No Clip
      - Disable All Pickup
      - No Revive Cost
      - Unlimited Jetpack Time
      - Camera Stops
      - Camera Follows


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Subway Surfers v3.40.0 +20 Jailed Cheats [ Currencies + More ] - ViP Non-Jailbroken Hacks & Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Like
      • 29 replies
    • Love Island: The Game v1.5.9 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Love Island: The Game By Fusebox Games
      Bundle ID: com.fuseboxgames.loveisland2
      iTunes Store Link: https://apps.apple.com/us/app/love-island-the-game/id1522699215
       

      Hack Features:
      - Unlimited Gems -> Earn or spend some.
      - Unlimited Tickets -> Earn or spend some.


      Jailbreak required hack(s): https://iosgods.com/topic/169224-love-island-the-game-all-versions-2-cheats-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Like
      • 322 replies
    • Love Island: The Game v1.5.9 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Love Island: The Game By Fusebox Games
      Bundle ID: com.fuseboxgames.loveisland2
      iTunes Store Link: https://apps.apple.com/us/app/love-island-the-game/id1522699215
       

      Hack Features:
      - Unlimited Gems -> Earn or spend some.
      - Unlimited Tickets -> Earn or spend some.


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 138 replies
    • Glow Fashion Idol v0.4.9 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Glow Fashion Idol By CRAZY LABS BY TABTALE , G.P.
      Bundle ID: com.crazylabs.fashionsquad
      iTunes Store Link: https://apps.apple.com/us/app/glow-fashion-idol/id6446197181?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Gems


      Jailbreak required hack(s): [Mod Menu Hack] Glow Fashion Idol v0.3.3 +2 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
      • 32 replies
    • Glow Fashion Idol v0.4.9 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Glow Fashion Idol By CRAZY LABS BY TABTALE , G.P.
      Bundle ID: com.crazylabs.fashionsquad
      iTunes Store Link: https://apps.apple.com/us/app/glow-fashion-idol/id6446197181?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Gems


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Glow Fashion Idol v0.3.3 +2 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 18 replies
    • Grimguard Tactics: Fantasy RPG v1.7.3 +3 Jailed Cheats [ Auto Win ]
      Modded/Hacked App: Grimguard Tactics: Fantasy RPG By Outerdawn Limited
      Bundle ID: com.outerdawn.grimguard
      iTunes Store Link: https://apps.apple.com/us/app/grimguard-tactics-fantasy-rpg/id1496893856?uo=4


      Hack Features:
      - Auto Win
      - Unlimited Daily Rewards
      - No Stamina Cost


      Jailbreak required hack(s): [Mod Menu Hack] Grimguard Tactics: Fantasy RPG v1.1.10 +3 Cheats [ Auto Win ] - ViP Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 91 replies
    • Grimguard Tactics: Fantasy RPG v1.7.3 +3 Cheats [ Auto Win ]
      Modded/Hacked App: Grimguard Tactics: Fantasy RPG By Outerdawn Limited
      Bundle ID: com.outerdawn.grimguard
      iTunes Store Link: https://apps.apple.com/us/app/grimguard-tactics-fantasy-rpg/id1496893856?uo=4


      Hack Features:
      - Auto Win
      - Unlimited Daily Rewards
      - No Stamina Cost


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Grimguard Tactics: Fantasy RPG v1.1.10 +3 Jailed Cheats [ Auto Win ] - ViP Non-Jailbroken Hacks & Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 73 replies
    • Jurassic World Alive v3.11.34 - [ Dino Don't Move & More ]
      Modded/Hacked App: Jurassic World Alive By Ludia
      Bundle ID: com.ludia.jw2
      iTunes Store Link: https://apps.apple.com/us/app/jurassic-world-alive/id1231085864


      Hack Features:
      - Dino Don't Move
      - Inf. Battery
      - VIP Enabled

      This hack is an In-Game Mod Menu (iGMM). In order to activate the Mod Menu, tap on the iOSGods button found inside the app. This hack works on the latest x64 or ARM64 iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, Xr, Xs, Xs Max, SE, iPod Touch 6G, iPad Air, Air 2, Pro & iPad Mini 2, 3, 4 and later.
        • Agree
        • Haha
      • 1,648 replies
    • Jurassic World Alive v3.11.34 - [ Dino Don't Move & More ]
      Modded/Hacked App: Jurassic World Alive By Ludia
      Bundle ID: com.ludia.jw2
      iTunes Store Link: https://apps.apple.com/us/app/jurassic-world-alive/id1231085864

      Hack Features:
      - Dino Don't Move
      - Inf.Battery
      - VIP Enabled

      This hack works on the latest x64 or ARM64 iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, Xr, Xs, Xs Max, SE, iPod Touch 6G, iPad Air, Air 2, Pro & iPad Mini 2, 3, 4 and later.


      Jailbreak required hack(s): https://iosgods.com/topic/103431-jurassic-world-alive-v1829-dino-dont-move-more/?tab=comments#comment-3107135
        • Agree
        • Thanks
      • 1,965 replies
    • (Yakuza Online Japan) 龍が如く ONLINE-抗争RPG、極道達の喧嘩バトル v4.1.4 +2 Jailed Cheats
      Modded/Hacked App: 龍が如く ONLINE-抗争RPG、極道達の喧嘩バトル By SEGA CORPORATION
      Bundle ID: com.sega.ron
      iTunes Store Link: https://apps.apple.com/jp/app/%E9%BE%8D%E3%81%8C%E5%A6%82%E3%81%8F-online-%E6%8A%97%E4%BA%89rpg-%E6%A5%B5%E9%81%93%E9%81%94%E3%81%AE%E5%96%A7%E5%98%A9%E3%83%90%E3%83%88%E3%83%AB/id1316356431?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier


      Jailbreak required hack(s): 


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
      • 31 replies
    • (Yakuza Online Japan) 龍が如く ONLINE-抗争RPG、極道達の喧嘩バトル v4.1.4 +2 Cheats
      Modded/Hacked App: 龍が如く ONLINE-抗争RPG、極道達の喧嘩バトル By SEGA CORPORATION
      Bundle ID: com.sega.ron
      iTunes Store Link: https://apps.apple.com/jp/app/%E9%BE%8D%E3%81%8C%E5%A6%82%E3%81%8F-online-%E6%8A%97%E4%BA%89rpg-%E6%A5%B5%E9%81%93%E9%81%94%E3%81%AE%E5%96%A7%E5%98%A9%E3%83%90%E3%83%88%E3%83%AB/id1316356431?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
      • 53 replies
×
  • 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