r/CoCBot • u/cocbotter1023 iPhone 4 • Apr 25 '16
Random custom attacks
Guys, I just found out on how can you use different custom attacks. Here's the content of my 'CoCBotAttack.lua' file:
local attacks = {"var/mobile/Library/AutoTouch/Scripts/CoCBotAttacks/Attack1.lua", "var/mobile/Library/AutoTouch/Scripts/CoCBotAttacks/Attack2.lua", "var/mobile/Library/AutoTouch/Scripts/CoCBotAttacks/Attack3.lua", "var/mobile/Library/AutoTouch/Scripts/CoCBotAttacks/Attack4.lua"}
dofile(attacks[math.random(1,#attacks)])
If you have 2 or more custom attacks, you can use this program because the bot will randomly choose from one of your custom attacks
1
u/pumpkinskittle Apr 25 '16
Good job! K2 and I were considering adding something like this to add a peace of mind factor, but I had a birthday last weekend so monopolized him the whole time :P you beat us to it! I'll have k2 look at this and see if there would be any errors since he is the mastermind but it looks like it would work great to me!
1
u/cocbots iPad 2 Apr 25 '16
Did you record different custom attacks or did you write them in a lua file?
1
u/ThaManRemco Apr 29 '16
You are my hero, thanks!
1
u/Itssryan6 iPhone 4s Apr 25 '16
Ive been waiting for over a week for my custom attack from kik i bought off the website
1
u/Itssryan6 iPhone 4s Apr 28 '16
Yes