[AutoIt] CrayonCode Bot Project (OpenSource & Free)

07/02/2017 18:34 Saizur#901
work in SA Server?
07/02/2017 21:40 IDontKnow0223#902
ty i got it working ty verry much

Well i tought it was working but its not :P when i do start fishing it says my ui scale must be 100%
but it is and also im playing at fullscreen window mode what could be wrong ?
sorry im verry new to this

23:43.43 Starting...
23:43.44 Fullscreen detected (1920x1080) - No Offsets
23:43.44 Detecting free inventory space
23:43.44 Inventory closed
23:43.54 22 empty slots
23:43.54 Game connected: 1
23:43.54 Unidentified state. Trying to equip fishingrod.
23:43.57 Inventory closed
23:44.19 Detection Error. UI Scale must be at 100%

after equiping the rod it just open and close my inv the whole time.
07/03/2017 11:02 woodyfly#903
I thought I had it fixed but the misclicking problem on the github version is back. It was working on my win 7 machines flawlessly but now it's misclicking. The 0.21 version works for everyone, it's the newer github version that has this click issue only. Can't figure out what it is
07/04/2017 08:14 everknown#904
Wow i used the github version and it trashed one of my Epheria rod away once it ran out of durability since the pixel detection detected the mini clock + red background. Not caring what type of rod it is.

And locking the item to prevent trashing will result in script cannot detect Epheria rod due to the lock icon appearing on the location the script is searching for on the rod image.


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

Is OCInventory the part that scan inventory for free slots?
I'll see if i can modify it a little bit so it can work for me. Because sometimes i see some unnecessary actions.

Code:
Func SwapFishingrod($discard = False)
	Local $Fishingrods[5] = ["res/fishing/rod_default.png", "res/fishing/rod_balenos.png", "res/fishing/rod_calpheon.png", "res/fishing/rod_epheria.png", "res/fishing/rod_mediah.png"]

	SetGUIStatus("Trying to swap Fishingrod. Discard = " & $discard)

	Local $C = SearchInventory($Fishingrods, 20)
	If IsArray($C) Then
		SetGUIStatus("Equipping Fishingrod")
		MouseClick("right", $C[0], $C[1])
		If $discard = True Then DiscardEmptyRod()
		OCInventory(False)
		Return True
	Else
		SetGUIStatus("No usable Fishingrod found")
		[COLOR="Red"]If $discard = True Then DiscardEmptyRod()
		OCInventory(False)[/COLOR]
		Return False
	EndIf
EndFunc   ;==>SwapFishingrod
Red text: unnecessary task? End of fishing bot, no need to continue with no rod detected, why discard instead let human do it?

And where it went wrong with (deleting) fishing rod when the image aren't accurate:

-Like when item (fishing rods) are locked(Shift-right click), they are not detected due to lock icon.
-Or in my case, the Epheria Fishing Rod image was just outside of the rod_default_discard.png top corner. So script only detected the red layer etc and not the top corner as well where the Epheria rod image pixel is located at. and by that i mean this:
[Only registered and activated users can see links. Click Here To Register...]
Blue is the Epheria rod image (the balenos etc rods are also same pixels, so i assume will have the same result?).
Yellow is the Exclamation mark while Black is the whole item.
Red + part of the yellow corner is the rod_default_discard.png search image.
So it kinda just skips over the repairable rods.


So what i did so far is commented the Discard rod part in Else statement for SwapFishingrod function. And I made a new Epheria rod image with Lock Icon. Locked item cannot be trashed. So i will test it out again to see if this can solve the issue for now.

Worse case is that the script will get into a bug where it cannot throw away the Epheria rod and get stuck once durability runs out.

But from what i conclude is that it will simply just ignore it due to the search area for red layer rod. So i'll have to make a new image of this as well to prevent the bug.

----edit 3
meanwhile i typed the text above, i tested with new image of Epheria rod and bought 1 normal Fishing rod for testing purpose:
this is the log:
Code:
10:38.01 Casting Fishingrod
10:38.11 Casting fishingrod failed.
10:38.13 Equipment found
10:38.14 rod_empty detected
10:38.15 Broken Fishingrod in Weaponslot detected.
10:38.15 Trying to swap Fishingrod. Discard = 0
10:38.15 Inventory closed
10:38.19 Equipping Fishingrod
10:38.20 Searching for unrepairable Fishingrod
10:38.25 Discarding Fishingrod.
10:38.30 Inventory closed
10:38.30 SwapFishingrod successful.
I have discard rod option Off as you can see above Discard = 0 (false).
And yet it threw away that Fishing Rod once it broke.
07/04/2017 18:36 ecafila#905
@[Only registered and activated users can see links. Click Here To Register...] have you tried shift + RMB on the rod from the inventory? It should lock the item
07/04/2017 18:50 javalover#906
We would need an update, so many features doesnt really work properly :
- Auto Relogin : Doesnt work
- Auto sell : Doesnt work
- Auto list auction house : Doesnt work
- Auto feed workers : Doesnt work
07/04/2017 20:44 Collz#907
Anyone knows why I have a lot of bad catches lately?

Sometimes the fisher fails the 'spacebar' action a few times in a row. It's too slow with the spacebar, so I can't catch fishes...
I didn't have this problem last week. Maybe it's something with the latest patch?
07/04/2017 23:29 skoscap1#908
What i need for make this function work (Drying feature)? I have the fish but it just don't start drying the fish
07/05/2017 05:01 everknown#909
Quote:
Originally Posted by ecafila View Post
@[Only registered and activated users can see links. Click Here To Register...] have you tried shift + RMB on the rod from the inventory? It should lock the item
here is someone who just skips over the text instead reading it all...
07/05/2017 09:14 MaxLogic#910
This is the best working bot i have used (v0.21) I love that you give us the source so i can do some small changes to make it less likely to be detected.

There are some issues:
Quote:
Auto-Pathing Bugs where it wont set the path but enables auto-run. (Maybe try to detect the red path in the minimap?
Auto-Parthing getting stuck on rocks, ect.. (Might just be the games pathing)
Resolution Detection issues, the only one i can get working is 1280x726 windowed
Fish Detection sometimes discards blue, yellow, green fish... (might be error in the loot settings)
Auto-Relog does not work (tested on EN, Trying to join a Olivia server. Logs in and get stuck at start screen)
Sometimes doesn't use the Buff
*RARE* Sometimes will not detect fishing rods
*RARE* Sometimes will trash fishing rods, even if the are repairable or not fully broke.
Some things i recommend adding/changing:
Quote:
Randomize Mouse Input (Make more human, have it click different areas of the button, move around while waiting)
Auto-Randomize Timers (Make more human)
Auto-Pot Have a feature that detects low HP/MP/ECT... and uses a pot automatically
Auto-Gift Letter Bot (Open mail get gifts, Send letters back to senders if you get one. The user can open them when they want because they stack.)
Better Logging
Hope the dev sees this, also hope they aren't gone.... No updates for a while...
07/05/2017 10:47 Shuntiago#911
Any reason why the code on github doesn't match the current v0.21?
07/05/2017 15:00 everknown#912
Quote:
Originally Posted by Shuntiago View Post
Any reason why the code on github doesn't match the current v0.21?
Because it's different. Github one is for fishing+Workers feed + pet feed/buffing and Drying fish only.

The v0.21 has milking and other stuff in it. But the fishing part with auto restock etc isn't that good compared to github version for fishing.
07/05/2017 19:16 Mordii#913
Actually, how big is the chance to get like.. banned with this? Sorry, I'm new to the Botstuff in BDO =)
07/05/2017 19:51 xICEMANx117#914
if your not willing to get banned don't bot there's always a chance of some bullshit happening.
07/05/2017 21:08 MaxLogic#915
Since 7/5 patch, it will not auto-path to trade fish. It opens the NPC menu then the mouse moves to the level and it loops that.

Coder seems to of died... Sucks this was the only free bot that sold the fish/item automatically. Made some good profit.