[AutoIt] CrayonCode Bot Project (Fish, Process, Etc) Fork (OpenSource & Free)

10/04/2017 22:55 dervd#1
Seeing as @[Only registered and activated users can see links. Click Here To Register...] is on hiatus right now and there's weren't any updates on CrayonCode I decided to put some time into it and update it. If and when he's back I'll retire this thread.

[Only registered and activated users can see links. Click Here To Register...]

Download link: [Only registered and activated users can see links. Click Here To Register...]
Tech support (sort of): [Only registered and activated users can see links. Click Here To Register...]

Requirements:
English/French/German Client (NA/EU) and 100% UI Scale. NO CUSTOM FONTS.
This doesn't work in the background, since it's screen-reading. You could smack it on VMWare but that's probably going to end up being unstable. For VMWare instructions please ask in the discord.


Instructions
Help! It's not working!

Current functionality
CrayonCode-Fishing:
  • Multiple-language support for fish-bot (EN, FR, DE)
  • Autofishes and completes fishing minigame
  • Classifies loot (Rarity, Specials, Event items)
  • Supports Kamasylvia Part 1 fish and specials including note in bottle
  • Supports custom image files to catch by putting an image in the res folder, ask on discord for instructions
  • Equip/discard fishingrods from Inventory (only discards unrepairable)
  • Uses buff food
  • Keeps track of your fishing stats
  • Stops when Free and Reserved Inventory is full or no fishing rods are available.
  • Reserve additional relic slots to stop fishing and only get event items and relics for long periods of fishing
  • Basic GUI [It's so shiny]
  • Feed Workers
  • Fish Drying feature
  • Improved diagnostics
  • Auto-updating of scripts

CrayonCode-Processing:
  • Processes timber, planks, ore, melted shards
  • Can create custom processes to make bronze, brass, steel
  • Multiple buff support (basic implementation, won't be able to buff during processing unfortunately)
  • Feed Workers

CrayonCode-Misc:
  • Snipes individual items on the marketplace (or tries its best to anyway)
  • Milks cows
  • Rolls with trade goods

Credits:
CrayonCode for all the groundwork, bot is basically his
S3anlike & Rodent11 for the initial edits
UJuliet for the French translation
Google translate for the German translation
Maximato for Processing UI enhancements and mouse movement randomnization
10/05/2017 15:03 Pallocy#2
how does sniper market work
sniper delay click update when item enters market does not buy
bot fishing works well
processing also processed
wood
How do you make milk?

Test Server S / A
10/10/2017 12:59 Juanpi094#3
I need help [Only registered and activated users can see links. Click Here To Register...]
10/11/2017 17:20 killzone#4
Quote:
Originally Posted by Juanpi094 View Post
I need help [Only registered and activated users can see links. Click Here To Register...]
Put the missing Fastfind dll in the same folder as the *.au3 file.
Run AutoIt as admin.
10/29/2017 09:40 QOOOOOOOOQ#5
I'm honestly surprised this isn't the new main post.
11/03/2017 20:13 dundandd88#6
Provide a link to this thread in the original post maybe? ^^

I'll check through the code later to make sure it's still safe (i'm paranoid) and i'll provide feedback when i can. Thanks to all of you for your hard work.
11/03/2017 23:28 entropy fear#7
Thanks for keeping this project alive. Nice job.
11/09/2017 17:25 QOOOOOOOOQ#8
Code:
01:32.46 FishingStandby detected.
01:32.46 Casting Fishingrod
01:32.55 Casting fishingrod failed.
01:32.57 Equipment found
01:32.59 rod_empty detected
01:32.59 Broken Fishingrod in Weaponslot detected.
01:32.59 Trying to swap Fishingrod. Discard = 0
01:32.59 Inventory closed
01:33.06 No usable Fishingrod found
01:33.06 Searching for unrepairable Fishingrod
01:33.14 No empty Fishingrod detected.
01:33.16 Inventory closed
01:33.16 SwapFishingrod failed. Stopping
After about 2 rods, it checks for another rod to replace, seems to close inventory instead of open so that it can find a rod, and stops because it thinks no rods could be found due to closed inventory.
11/09/2017 20:12 killzone#9
What type of rod you are using?
Its best that you update all your rod screenshots as well.
11/09/2017 20:38 QOOOOOOOOQ#10
Quote:
Originally Posted by killzone View Post
What type of rod you are using?
Its best that you update all your rod screenshots as well.
Balenos, but if it can detect a couple of the rods, why shouldn't it detect the others with different enchant levels?
11/10/2017 21:18 guifa11#11
There's some sort of watchdog system? because some people said that GM sometimes teleport players who is active fishing for a long time to a random island and if you stay fishing (on land) you will get banned.
11/17/2017 08:15 Rodent11#12
Hello,

I'm a bit lazy (don't judge me), and I don't know how to GitHub... but regarding the latest release:

Quote:
Worker feed method updated
I took a look at what you did, and I think that how I fixed it is a bit better solution. Please just take a look at it, and see what you think (this is for the "WorkerFeed(" function).

Code:
Local Const $WorkerIcon = "res/esc_worker.png"
Local Const $WorkerStamina = "res/worker_staminabar.png"
Local Const $WorkerOffsets[4][2] = [ _
		[-28, 453], _ ; Recover All
		[-299, -18], _ ; Select food
		[-243, 141], _ ; Confirm
		[61, 453]] ; Repeat All
Local $x, $y, $IS
SetGUIStatus(StringFormat("Feeding Worker [%.1fm CD]", $WorkerCD / 60000))
WaitForMenu(True)
$IS = _ImageSearchArea($WorkerIcon, 1, $Res[0], $Res[1], $Res[2], $Res[3], $x, $y, 10, 0)
If $IS = True Then
	VMouse($x, $y, 1, "left")
	Sleep(1500)
	$IS = _ImageSearchArea($WorkerStamina, 0, $Res[0], $Res[1], $Res[2], $Res[3], $x, $y, 10, "TRANSBLACK") ;			1523, 202
	If $IS = True Then
		VMouse($x + $WorkerOffsets[0][0], $y + $WorkerOffsets[0][1], 1, "left") ; Recover All					1495, 655
		VMouse($x + $WorkerOffsets[0][0], $y + $WorkerOffsets[0][1] + 10, 1, "left") ; Recover All DIFFERENT LANGUAGES FIX
		VMouse($x + $WorkerOffsets[1][0], $y + $WorkerOffsets[1][1], 1, "left") ; Select food					1224, 184
		Sleep(100)
		VMouse($x + $WorkerOffsets[2][0], $y + $WorkerOffsets[2][1], 1, "left") ; Confirm					1280, 336
		Sleep(1000)
		VMouse($x + $WorkerOffsets[3][0], $y + $WorkerOffsets[3][1], 1, "left") ; Repeat All					1584, 655
		VMouse($x + $WorkerOffsets[3][0], $y + $WorkerOffsets[3][1] + 10, 1, "left") ; Repeat All DIFFERENT LANGUAGES FIX
		CoSe("{ESC}") ; Close Worker List
		$WorkerFeedTimer = TimerInit()
		Return True
	Else
		SetGUIStatus("WorkerStamina missing")
		Return False
	EndIf
I've also updated the worker_staminabar.png image, and it's a bit bigger now, so the offsets were also changed. I've attached my staminabar image ([Only registered and activated users can see links. Click Here To Register...]). So again my changes are: New image, new offsets, and _ImageSearchArea transparency (last parameter) set to "TRANSBLACK"

Reason: The new image that you're using is of the beer recovery icon, which can be in two states, so yours potentially won't work if the first worker is not working and full on stamina: [Only registered and activated users can see links. Click Here To Register...]

If you don't want to use my change and want to stick with yours instead... I don't really care either way, do what you want. But I noticed this issue as well and came up with my own fix. I then decided to see if you had made the changes, and saw how you were doing it.
11/17/2017 20:03 killzone#13
Im thinking of making a launcher / downloader for this one where fixes gets downloaded instead.
Should be player friendly in that case I think.
11/25/2017 15:40 Avensurha#14
Quote:
Originally Posted by killzone View Post
Im thinking of making a launcher / downloader for this one where fixes gets downloaded instead.
Should be player friendly in that case I think.
That would be awesome. Just a heads up, I've been getting a variety of errors with the fishing function since the event started last week. Let me know if you want me to post the logs.
11/28/2017 11:23 holarandom#15
Hello! can anyone post an update on an event with a turkey? script with fishing does not get items