[AutoIt] CrayonCode Bot Project (OpenSource & Free)

06/28/2017 10:27 Cbiscuit#886
Quote:
Originally Posted by platinumdrgn View Post
works good except for when it tries to return to the mount. it is doing something wrong because it just starts running in a random direction instead of getting a mount path. i think it might be double right clicking, clearing the autopath. i tried adding a npc waypoint but those do the same thing.



that happens alot but it should autopath to the npc a 2nd time after it does a full screen rotation and it will get close enough the 2nd time.
We all seem to be having the same problem. i tried changing the back to mount to use a different method to click where i could control the speed better but nothing. I'm starting to think this is caused by a problem with the UI. I sometimes see 2 UI's running in task manager for this game. There is also a lock mouse in UI setting under GAME that might be worth messing with.

TLDR:: It's like the UI resets after the mouse has moved to location causing it to miss click. I've tested it so many times and it works fine until do the full repair/sell/broker then its 50/50.

Code:
Func BackToMount($Boat = 0)
	Local Static $HorseIni = StringSplit(StringStripWS(IniRead("config/resolution_settings.ini", "Restock", "Horse", "35, 124"), 8), ",", 2) ; x, y
	Local Static $BoatIni = StringSplit(StringStripWS(IniRead("config/resolution_settings.ini", "Restock", "Boat", "93, 123"), 8), ",", 2) ; x, y
	Local Static $SwapMounts = Int(IniRead("config/data.ini", "RestockSwapMounts", "Enabled", 0))
	Local Const $Mount[2][2] = [[$HorseIni[0] + $ResOffset[0], $HorseIni[1] + $ResOffset[1]], [$BoatIni[0] + $ResOffset[0], $BoatIni[1] + $ResOffset[1]]]
	Local $Sw = 0
	Sleep(1000)
	WaitForMenu(False)
	Sleep(1000)
	If Not VisibleCursor() Then CoSe("{LCTRL}")
	Sleep(2500)
	SetGUIStatus("Boat: " & $Boat & " Swap: " & $SwapMounts)
    $SwapMounts = 0
	MouseMove($Mount[$Boat][0], $Mount[$Boat][1])
	Sleep(2500)
	MouseDown("right")
    Sleep(2500)
    MouseUp("right")
    Sleep(2500)
	CoSe("t")
	CoSe("{ESC}")
	If VisibleCursor() Then CoSe("{LCTRL}")
	MapMovement()
	Return True
EndFunc   ;==>BackToMount
06/28/2017 16:09 metrosound#887
Quote:
Originally Posted by Cbiscuit View Post
We all seem to be having the same problem. i tried changing the back to mount to use a different method to click where i could control the speed better but nothing. I'm starting to think this is caused by a problem with the UI. I sometimes see 2 UI's running in task manager for this game. There is also a lock mouse in UI setting under GAME that might be worth messing with.

TLDR:: It's like the UI resets after the mouse has moved to location causing it to miss click. I've tested it so many times and it works fine until do the full repair/sell/broker then its 50/50.

Code:
Func BackToMount($Boat = 0)
	Local Static $HorseIni = StringSplit(StringStripWS(IniRead("config/resolution_settings.ini", "Restock", "Horse", "35, 124"), 8), ",", 2) ; x, y
	Local Static $BoatIni = StringSplit(StringStripWS(IniRead("config/resolution_settings.ini", "Restock", "Boat", "93, 123"), 8), ",", 2) ; x, y
	Local Static $SwapMounts = Int(IniRead("config/data.ini", "RestockSwapMounts", "Enabled", 0))
	Local Const $Mount[2][2] = [[$HorseIni[0] + $ResOffset[0], $HorseIni[1] + $ResOffset[1]], [$BoatIni[0] + $ResOffset[0], $BoatIni[1] + $ResOffset[1]]]
	Local $Sw = 0
	Sleep(1000)
	WaitForMenu(False)
	Sleep(1000)
	If Not VisibleCursor() Then CoSe("{LCTRL}")
	Sleep(2500)
	SetGUIStatus("Boat: " & $Boat & " Swap: " & $SwapMounts)
    $SwapMounts = 0
	MouseMove($Mount[$Boat][0], $Mount[$Boat][1])
	Sleep(2500)
	MouseDown("right")
    Sleep(2500)
    MouseUp("right")
    Sleep(2500)
	CoSe("t")
	CoSe("{ESC}")
	If VisibleCursor() Then CoSe("{LCTRL}")
	MapMovement()
	Return True
EndFunc   ;==>BackToMount
You just need to add couple of line of conditional "If" decision statement to check. aka the holy grail as CrayonCode mentioned somewhere on this thread and it will run perfect without that 50/50 chance
06/28/2017 16:49 platinumdrgn#888
ya i have played around a bunch with the sleep timers to get clicks to register more accurately. the bdo client is just very laggy and buggy. ive gotten autorestock to work like 75% of the time.
06/28/2017 19:17 falsiane#889
Quote:
Originally Posted by platinumdrgn View Post
ya i have played around a bunch with the sleep timers to get clicks to register more accurately. the bdo client is just very laggy and buggy. ive gotten autorestock to work like 75% of the time.
Thanks brotha. Mind sharing your code?
06/28/2017 19:22 kingsland#890
Quote:
Originally Posted by falsiane View Post
Is this project still ongoing? It's been a while since last update.
He moved to github I believe, there's a link to the project in the first post.
06/28/2017 21:01 falsiane#891
Quote:
Originally Posted by kingsland View Post
He moved to github I believe, there's a link to the project in the first post.
Yeah, i know, but last commitment was 19 days ago.
He must be busy with something else.
But ok, let's hope this is not the end. This is an awesome project.
06/29/2017 01:53 HEL_Master#892
Really looking forward to market improvements. Especially if it can autobuy items on the notice/favorite list. This is the main feature I am looking for in a bot, and haven't found any effective ones yet.
06/29/2017 08:41 Sonata Arctica#893
this is opensource you can add the feature yourself
06/29/2017 11:52 platinumdrgn#894
Kakao has done something possibly to screw with the bots. the nearby npc window now opens in a different location every time you open it. so now the autorestock doesnt work at all for me.
06/29/2017 12:31 everknown#895
Weird stuff going on with the github fishing bot version...
I got like 6 Thick fishing rods in my inventory and 1 equipped.
Before it even depleted, the bot upon done checking which fish to dry will auto swap for new rod every time and continues to fish since there are still inventory slots free.

But got says in log 0 inventory slot remaining while there is still 4 slots free. 0 fish dried. And there is 71 images, where few are seaweed and keys that are stack-able.
There is 2 empty image that screenshot the beach sand.
3 Keys, 1 fish bone.
And in the log, i think i saw it scan for inventory free slots in total of 2 times.

[Only registered and activated users can see links. Click Here To Register...] -> With 32min CD on Dry fish Maximum White rarity.
[Only registered and activated users can see links. Click Here To Register...] -> With 5minute CD on Dry Fish Maximum Green rarity.
It caught 1 green but it didn't not dry it.
Inventory had enough free space left as well. But it went to unequip my Thick Fishing Rod before it started to check inventory to dry fish. Then after done checking, it went to scan inventory for free slots again and closed inventory then re-opened when no rod was equipped to equip a new rod.
This repeats whenever it's time to dry fish.

Anything i'm doing wrong?
06/29/2017 16:51 corncake55#896
Great bot, made 3mil from afk fishing
06/30/2017 18:37 macsimvld#897
how can i fix Fullscreen detected (1920x1080) - No Offsets for feed worker and autorestok
07/02/2017 14:50 killzone#898
Depends on version you are using.
Get the newest version it works on all resolutions.
07/02/2017 17:11 IDontKnow0223#899
hello! ive got a question and you probaly heard it much already and get sick of it :P ive tried to search for the answers but dmnn. idk how to install this when i try to open this Run CrayonCode.au3 to start the GUI. it says select an program to open it with idk what to do xD
07/02/2017 18:32 killzone#900
Quote:
Originally Posted by IDontKnow0223 View Post
hello! ive got a question and you probaly heard it much already and get sick of it :P ive tried to search for the answers but dmnn. idk how to install this when i try to open this Run CrayonCode.au3 to start the GUI. it says select an program to open it with idk what to do xD
Download & Install AutoIt.
[Only registered and activated users can see links. Click Here To Register...]
Then Right Click "CrayonCode.au3" and select "run script".