CoLFarmBot - Crusaders of Light, MEmuplay, multi-account farm bot
Crusaders of Light is a MMORPG for mobile and PC, you can search for this game in Google Play Store, Steam or Facebook Gameroom. MEmuplay is a Android emulator, it can help to create multiple account for this game to do farming.
This post is bot created using Autohotkey for farming using multi-account with MEmuplay. Source code is available at
https://github.com/CoLFarmBot/CoLFarmBot
CoLFarmBot - Crusaders of Light, MEmuplay, multi-account farm bot
-
- Posts: 12
- Joined: 28 Jun 2019, 17:08
- Contact:
-
- Posts: 12
- Joined: 28 Jun 2019, 17:08
- Contact:
-
- Posts: 12
- Joined: 28 Jun 2019, 17:08
- Contact:
-
- Posts: 12
- Joined: 28 Jun 2019, 17:08
- Contact:
-
- Posts: 12
- Joined: 28 Jun 2019, 17:08
- Contact:
Re: CoLFarmBot - Crusaders of Light, MEmuplay, multi-account farm bot
1st Install MEmuplay, and install Crusaders of Light from Google Play Store, after that open the game for it to auto update to latest patch.
Use the Clone function in MEmuplay Multiple Instance Manager to clone from MEmu to MEmu1, MEmu2, MEmu3 and so on. After cloning, go into the game and login each MEmu with different alt account. My script only start with MEmu1, so please do not use the first MEmu.
Please make sure the position of Crusaders of Light is in 1st of second row as the startup code will check for the icon before it proceed to start.
For you Main characters please use Steam client to login.
Use the Clone function in MEmuplay Multiple Instance Manager to clone from MEmu to MEmu1, MEmu2, MEmu3 and so on. After cloning, go into the game and login each MEmu with different alt account. My script only start with MEmu1, so please do not use the first MEmu.
Please make sure the position of Crusaders of Light is in 1st of second row as the startup code will check for the icon before it proceed to start.
For you Main characters please use Steam client to login.
-
- Posts: 12
- Joined: 28 Jun 2019, 17:08
- Contact:
Re: CoLFarmBot - Crusaders of Light, MEmuplay, multi-account farm bot
Code: Select all
PixelSearch, Px, Py, 222, 385, 222, 385, 0x1435C2, 3, Fast
-
- Posts: 12
- Joined: 28 Jun 2019, 17:08
- Contact:
Re: CoLFarmBot - Crusaders of Light, MEmuplay, multi-account farm bot
Each farming group will consist of 4 alts and 1 main, for example MEmu1 to MEmu4 is your 1st group of alts, then MEmu5 to MEmu8 is your 2nd group of alts. For each group of alts, add all of them as friends, and use 1 of the alt as the lead. For lead alt, open Friends > Contacts > Create Group, then add 3 other alts and 1 main into this group. For Heroic Run, create 2nd group and add MEmu5 to MEmu8 as 2nd group.
-
- Posts: 12
- Joined: 28 Jun 2019, 17:08
- Contact:
Re: CoLFarmBot - Crusaders of Light, MEmuplay, multi-account farm bot
The first 2 user function to look at is CloseMEmu and LaunchMEmu.
CloseMEmu will close MEmuplay with the string of "0" and skip if "1", the "." will be omitted in the input string, it is there just to make it easier to see. If you have a total of 16 MEmuplay, then the length of the input string should be 16 - "0000.0000.0000.0000".
LaunchMEmu will launch MEmuplay base on the input string with a few others variable as well (CloseMEmu, CharacterNumber, CheckLoadComplete, UpdateOnly, MEmuString).
- 1st input CloseMEmu is to close existing MEmuplay.
- 2nd input CharacterNumber is to select which characters within that account, for example 1st character of MEmu1 to MEmu4 is group 1, 2nd character of MEmu1 to MEmu4 is group3 and so on, but only 4 characters in one account for the moment as the 5th characters need mouse click and drag which is a bit hard to estimate the drag.
- 3rd input CheckLoadComplete is to ensure the loading of the character is fully complete before the next code is start, you can set to 0 if you only want to refresh your alt.
- 4th input UpdateOnly can be use when you just want to update your Crusaders of Light, it will stop at the loading page and wait for you to press 'z' to go to the next instruction.
- 5th input is the MEmuplay you would like to launch, "1" is to launch and "0" is to skip, the total length of the string is base on total number of MEmuplay you have. "." will be omitted.
Code: Select all
CloseMEmu("0000.0000.0000.0000.0000.0000.0000.0000")
Code: Select all
LaunchMEmu(1, 1, 1, 0, "1111.0000.0000.0000.0000.0000.0000.0000")
- 1st input CloseMEmu is to close existing MEmuplay.
- 2nd input CharacterNumber is to select which characters within that account, for example 1st character of MEmu1 to MEmu4 is group 1, 2nd character of MEmu1 to MEmu4 is group3 and so on, but only 4 characters in one account for the moment as the 5th characters need mouse click and drag which is a bit hard to estimate the drag.
- 3rd input CheckLoadComplete is to ensure the loading of the character is fully complete before the next code is start, you can set to 0 if you only want to refresh your alt.
- 4th input UpdateOnly can be use when you just want to update your Crusaders of Light, it will stop at the loading page and wait for you to press 'z' to go to the next instruction.
- 5th input is the MEmuplay you would like to launch, "1" is to launch and "0" is to skip, the total length of the string is base on total number of MEmuplay you have. "." will be omitted.
-
- Posts: 12
- Joined: 28 Jun 2019, 17:08
- Contact:
Re: CoLFarmBot - Crusaders of Light, MEmuplay, multi-account farm bot
To start daily farming routine after server reset at 00:00, first login your main using Steam, then run heroic with these code:
1st 2 LaunchMEmu for group 1 (MEmu1 to MEmu4) and group 6 (MEmu21 to MEmu24) is just to login for warm up, because after server reset at 00:00, the first time login will have some random splash screen that changes every week, to workaround these splash screen just login 1 time and close and login again.
Here I use group 1 (MEmu1 to MEmu4) and group 6 (MEmu21 to MEmu24) to run heroic by using Group3HeroicRun where MEmu3 is the leading alt, you can queue up multiple group heroic run, for example 1st heroic run is group 1 (MEmu1 to MEmu4) and group 2 (MEmu5 to MEmu6), 2nd heroic run is group 3 (MEmu9 to MEmu12) and group 4 (MEmu13 to MEmu16), 3rd heroic run is group 5 (MEmu1-2nd alt to MEmu4-2nd alt) and group 6 (MEmu5-2nd alt to MEmu6-2nd alt). just create the same user function and queue them all up.
Code: Select all
LaunchMEmu(1, 1, 1, 0, "1111.0000.0000.0000.0000.0000.0000.0000")
LaunchMEmu(1, 1, 1, 0, "0000.0000.0000.0000.0000.1111.0000.0000")
Group3HeroicRun()
Here I use group 1 (MEmu1 to MEmu4) and group 6 (MEmu21 to MEmu24) to run heroic by using Group3HeroicRun where MEmu3 is the leading alt, you can queue up multiple group heroic run, for example 1st heroic run is group 1 (MEmu1 to MEmu4) and group 2 (MEmu5 to MEmu6), 2nd heroic run is group 3 (MEmu9 to MEmu12) and group 4 (MEmu13 to MEmu16), 3rd heroic run is group 5 (MEmu1-2nd alt to MEmu4-2nd alt) and group 6 (MEmu5-2nd alt to MEmu6-2nd alt). just create the same user function and queue them all up.
Code: Select all
Group3HeroicRun() ;will do heroic raid run, leader will be one of the alts
{
Lead := 3 ;assign Lead to MEmu3
MEmu_Lead := "(MEmu" . Lead . ")" ;assign Lead to MEmu3
TimeStamp := A_Now
StartTime := A_Now
FileAppend, %TimeStamp% - Group %Lead% Heroic Run`n, 99-Farm-Log.txt
LaunchMEmu(1, 1, 1, 0, "1111.0000.0000.0000.0000.0000.0000.0000")
Sleep, 10000
WinActivate, % MEmu_Lead
MakeSquad() ;make squad and invite 3 alts and main in Contacts 1st group
WinActivate, % MEmu_Lead
SelectStarSquad() ;select star circle of main character, if your main character is different class then you need to change this
Sleep, 5000
CloseMEmu("0010.0000.0000.0000.0000.0000.0000.0000") ;close all except lead which is MEmu3
Sleep, 10000
LaunchMEmu(0, 1, 1, 0, "0000.0000.0000.0000.0000.1111.0000.0000") ;launch next group MEmu21 to MEmu24
Sleep, 10000
WinActivate, % MEmu_Lead
MakeSquadCont() ;continue to make squad by inviting 4 more alts in Contacts 2nd group
WinActivate, % MEmu_Lead
Sleep, 300
ClearScreen()
Sleep, 300
MouseClick, left, 22, 233
Sleep, 300
CloseMEmu("0010.0000.0000.0000.0000.0000.0000.0000") ;close all except lead which is MEmu3
Sleep, 5000
WinActivate, % MEmu_Lead
GotoScarPlainsHeroic() ;goto scar plains heroic
WinActivate, % MEmu_Lead
EnteringRaid() ;this will loop and wait for entering raid button to appear
WinActivate, % MEmu_Lead
RunningRaid() ;once inside the raid, this will continue to click on the quest windows until finish
WinActivate, % MEmu_Lead
Sleep, 5000
ClearScreen()
ClearUseWindow()
WinActivate, % MEmu_Lead
GotoOtherHeroic() ;goto next heroic
WinActivate, % MEmu_Lead
EnteringRaid()
WinActivate, % MEmu_Lead
RunningRaid()
WinActivate, % MEmu_Lead
Sleep, 5000
ClearScreen()
ClearUseWindow()
GotoReavegdeFarm() ;after finish both heroic, go to reavegde farm for rest
Sleep, 10000
CloseMEmu("0000.0000.0000.0000.0000.0000.0000.0000")
Sleep, 10000
SteamCoLLeaveTeam() ;main will leave team
TimeStamp := A_Now
EndTime := A_Now
EnvSub, EndTime, %StartTime%, minutes
FileAppend, %TimeStamp% - %EndTime% Minute Elapse`n, 99-Farm-Log.txt
}
-
- Posts: 12
- Joined: 28 Jun 2019, 17:08
- Contact:
Re: CoLFarmBot - Crusaders of Light, MEmuplay, multi-account farm bot
After complete heroic run, you can continue for normal raid run, but if you only have 8 alt account, then you will have to wait 20 minutes after all your alt is fully logout from server before you proceed, but if you have 16 alts, after the 2nd heroic run, your 1st 8 alts should be already logout from server after 20 minutes. Here is the code to run for normal raid:
Example here is I am using MEmu1 to MEmu4 and MEmu21 to MEmu24 to do 2 consecutive normal raid. GroupNormalRun need 2 inputs, 1st is the leader where I use MEmu3 and MEmu23, 2nd input is go to farming area where 1 is for iron and 2 is for fine cotton.
Here is the complete description of GroupNormalRun:
Code: Select all
LaunchMEmu(1, 1, 1, 0, "1111.0000.0000.0000.0000.0000.0000.0000")
GroupNormalRun(3, 1)
LaunchMEmu(1, 1, 1, 0, "0000.0000.0000.0000.0000.1111.0000.0000")
GroupNormalRun(23, 2)
Here is the complete description of GroupNormalRun:
Code: Select all
GroupNormalRun(Lead, Farm) ;will do normal raid run, leader will be one of the alts
{
TimeStamp := A_Now
StartTime := A_Now
FileAppend, %TimeStamp% - Group %Lead% Normal Run`n, 99-Farm-Log.txt
MEmu_Lead := "(MEmu" . Lead . ")" ;assign one of the alt as leader
WinActivate, % MEmu_Lead
MakeTeam() ;make team base on contact 1st group
WinActivate, % MEmu_Lead
SelectStarTeam() ;select main character's star circle, if your class is different then you need to change this
WinActivate, % MEmu_Lead
Sleep, 300
ClearScreen()
Sleep, 300
MouseClick, left, 22, 233
Sleep, 300
WinActivate, % MEmu_Lead
GotoNormalRaid(4) ;goto normal raid, 4 is goblin camp
Hide(Lead) ;hide all other MEmu except for leader, this will help to save CPU consumption
WinActivate, % MEmu_Lead
EnteringRaid()
WinActivate, % MEmu_Lead
RunningRaid()
WinActivate, % MEmu_Lead
Sleep, 5000
ClearScreen()
ClearUseWindow()
WinActivate, % MEmu_Lead
GotoNormalRaid(3) ;goto normal raid, 3 is ancestral altar
Wake(Lead) ;wake all alts
Sleep, 10000
Hide(Lead) ;hide again
WinActivate, % MEmu_Lead
EnteringRaid()
WinActivate, % MEmu_Lead
RunningRaid()
WinActivate, % MEmu_Lead
Sleep, 5000
ClearScreen()
ClearUseWindow()
WinActivate, % MEmu_Lead
GotoNormalRaid(2) ;goto normal raid, 2 is dire gallon
Wake(Lead)
Sleep, 10000
Hide(Lead)
WinActivate, % MEmu_Lead
EnteringRaid()
WinActivate, % MEmu_Lead
RunningRaid()
Wake(Lead) ;wake all alts
WinActivate, % MEmu_Lead
Sleep, 5000
ClearScreen()
ClearUseWindow()
WinActivate, % MEmu_Lead
HandInOfferingQuestGroup(Lead) ;hand in offering quest for all alts
WinActivate, % MEmu_Lead
Sleep, 5000
ClearScreen()
ClearUseWindow()
GotoFarm(Farm) ;goto farming area, 1 for iron, 2 for fine cotton
Sleep, 10000
NumberID := 1
Loop % MaxMEmuCount ;this loop will collect mail, collect free lucky card flip and clear blue gear for every alts
{
MEmuID := "(MEmu" . NumberID . ")"
IfWinExist, % MEmuID
{
WinActivate, % MEmuID
Sleep, 50
MailCollect()
Sleep, 2000
LuckyCardFlip()
Sleep, 2000
ClearBlueGear()
}
NumberID := NumberID + 1
}
Sleep, 10000
CloseMEmu("0000.0000.0000.0000.0000.0000.0000.0000")
Sleep, 10000
SteamCoLLeaveTeam()
TimeStamp := A_Now
EndTime := A_Now
EnvSub, EndTime, %StartTime%, minutes
FileAppend, %TimeStamp% - %EndTime% Minute Elapse`n, 99-Farm-Log.txt
}
-
- Posts: 12
- Joined: 28 Jun 2019, 17:08
- Contact:
Re: CoLFarmBot - Crusaders of Light, MEmuplay, multi-account farm bot
After both heroic and normal run, all your alts is at farming location, use LaunchMEmu to open 1 group at a time, then position them nearby the iron or fine cotton node where the node is slightly to the left of the character. here you can also open 50-quickey.ahk, this is a set of quick key that is helpful for managing alts.
Always use 4 alts together for farming, 1 large node, 2 medium node and 1 small node, this is because when all 4 nodes is being farm at the same time the refresh rate will become much faster. Once you position all 4 alts, you can use one of the quick key to manage your alts
and then open the next group of alts to position and manage them.
Always use 4 alts together for farming, 1 large node, 2 medium node and 1 small node, this is because when all 4 nodes is being farm at the same time the refresh rate will become much faster. Once you position all 4 alts, you can use one of the quick key to manage your alts
Code: Select all
` & 3:: ;manage alts
if BuyingFood = 1
{
BuyFood() ;check hp and mana reserve, press x to buy hp food, c to buy mana food, other key to skip
}
ClearScreen()
OpenEvent()
ClaimActivityReward() ;claim all activity
ClearUseWindow()
Sleep, 2000
OpenDailyLoot() ;open daily loop to see if can buy secret currency chest, always standby 100 xtal for this, press z to go next
KeyWait, z, D
Sleep, 50
ClearScreen()
Sleep, 50
ClearScreen()
Sleep, 50
ClearScreen()
MouseClick, left, 956, 162 ;open daily rewards, press z to go next
Sleep, 50
KeyWait, z, D
Sleep, 50
ClearScreen()
OpenMenu()
MouseClick, left, 1148, 366 ;open equipment chamber, press z to go next
Sleep, 50
ClearUseWindow()
KeyWait, z, D
Sleep, 50
ClearScreen()
OpenMenu()
OpenArtifact() ;open artifact, 1st will go to daily free claim, 2nd will dismantle purple, 3rd to upgrade, press z every time to go next
KeyWait, z, D
Sleep, 50
ClearScreen()
MouseClick, left, 1182, 264
Sleep, 200
MouseClick, left, 999, 643
Sleep, 100
MouseClick, left, 796, 625 ;open bag and dismantle blue and below
Return
-
- Posts: 12
- Joined: 28 Jun 2019, 17:08
- Contact:
Re: CoLFarmBot - Crusaders of Light, MEmuplay, multi-account farm bot
Once all group is positioned and managed, you can use these script to do the farming.
Before running forging user function, please make sure the first item in the bag is the forging material:
Code: Select all
LaunchMEmu(1, 1, 1, 0, "1111.0000.0000.0000.0000.0000.0000.0000")
Farming(250, 15000) ;farm for 250 iterations with 15sec interval per iteration
Forging("2222") ;forging items 2 for each characters
Sleep, 480000 ;wait 8 minutes for crafting material
GotoReavegdeFarmAll()
Sleep, 20000
LaunchMEmu(1, 1, 1, 0, "0000.1111.0000.0000.0000.0000.0000.0000")
Farming(250, 15000)
Forging("2222")
Sleep, 480000
GotoReavegdeFarmAll()
Sleep, 20000
CloseMEmu("0000.0000.0000.0000.0000.0000.0000.0000")
Return to “Gaming Scripts (v1)”
Who is online
Users browsing this forum: No registered users and 10 guests