Register for your free account! | Forgot your password?

Go Back   elitepvpers > New Arrivals > Black Desert
You last visited: Today at 17:59

  • Please register to post and access all features, it's quick, easy and FREE!

 

[AutoIt] CrayonCode Bot Project (OpenSource & Free)

Reply
 
Old   #601
 
elite*gold: 20
Join Date: Jun 2015
Posts: 43
Received Thanks: 4
Amity bot please!



Acrediur is offline  
Old   #602
 
elite*gold: 0
Join Date: Jun 2007
Posts: 9
Received Thanks: 0
Ive noticed since patch 0.20 the feed workers havnt really been working because the feed worker and repeat all tasks button coords are too low


m00se is offline  
Old   #603
 
elite*gold: 0
Join Date: Apr 2008
Posts: 390
Received Thanks: 108
Quote:
Originally Posted by iNiperx View Post
It's going to be a paid bot sadly, randomized title says "pay", illuminati confirmed xD so far so good bro, if you aren't going to sell it you can always make it open source for others to learn and change to their likings (:
hehehe no xD i won't sell it it was meant from the beginning to be for learning purpose i just started learning c# 4 months ago and yea I'll release it for public wheb i get the maximum of it :3
ahmedwork is offline  
Old   #604
 
elite*gold: 0
Join Date: Jul 2008
Posts: 3
Received Thanks: 0
Bot no changes rods? Oh 0.21v not changed and not use foods, but in 0.18 perfect working


Excepter is offline  
Old   #605
 
elite*gold: 0
Join Date: Mar 2006
Posts: 2
Received Thanks: 0
Hi CrayonCode,

thanks for the open source of this program.

I was curious how you did the detection of the letters from the fishing mini game so I started looking into your code.

I understand how you did it from the top level but I am confused in some areas. I would appreciate it if you could PM me a quick explanation.

I dont understand some of the lines below except that you are taking a snapshot with FFSnapShot() and then saving the letter color into $LetterColor, but how you're using the functions with the parameters such as with FFSnapShot and FFGetPixel, and what $COffest is what I don't understand:

Code:
Local $C = FindRiddleAnchor()
If $C[0] = -1 Or $C[1] = -1 Then Return False
FFSnapShot($C[0] - 90, $C[1] - 90, $C[0] + $Spacing * 10 + 90, $C[1], $SSN)
$LetterColor = FFGetPixel($C[0] - 90 + $COffset[0], $C[1] - 90 + $COffset[1], $SSN)
Local $AnchorC[2] = [$C[0] - 90 + $COffset[0], $C[1] - 90 + $COffset[1]]
Then I see that you use Riddle() in a loop to find what the letters are where each time, you save the the letter into the $Word[] array as you increment to the next element:
Code:
For $i = 0 To 9 Step 1
        $Riddle = Riddle($AnchorC[0] + $Spacing * $i, $AnchorC[1], $LetterColor, $SSN)
        If $Riddle = 4 Then ; If unidentified exit loop
            $Word[$i] = $L[$Riddle]
            ExitLoop
        Else
            $Word[$i] = $L[$Riddle]
            $Wordlength += 1
        EndIf
    Next
I am mainly confused about what $C, $COffset,$AnchorC, and $C[0] -90 is (basically what are you passing into all the parameters of those functions used above?

By the way, does anyone have 1440p resolution settings? I searched the thread and found other people requesting but no .ini file yet.
ClientX is offline  
Old   #606
 
elite*gold: 0
Join Date: Mar 2006
Posts: 1,510
Received Thanks: 294
Quote:
Originally Posted by s3anlike View Post
Hey guys is it possible to upload the stats from bot on a ftp server to see what the bot did collect if you are not on pc?
A better solution is to "Send you the logs" as an SMS.

Pushbullet can do this.

Quote:
Originally Posted by Acrediur View Post
Amity bot please!
Amity? Like pressing F5?

Quote:
Originally Posted by ahmedwork View Post
hehehe no xD i won't sell it it was meant from the beginning to be for learning purpose i just started learning c# 4 months ago and yea I'll release it for public wheb i get the maximum of it :3
Github perhaps?
Im a VB guy since 2000s (Yea Im old, and still doesnt like scripting like language) so C# is not my main forte but I know some. Would be great start to learn C# botting and then move to C# when Im confident enough.

Quote:
Originally Posted by ClientX View Post
Snipped
The Riddle solver looks for the . (mid point of > V ^ <).
If Im correct, this has been explained by @ in earlier post.

Also in Page 23s, you can see the post of CrayonCode explaining how to Setup your own Resolution_settings.ini
killzone is offline  
Old   #607
 
elite*gold: 0
Join Date: Apr 2017
Posts: 108
Received Thanks: 185
Quote:
Originally Posted by ClientX View Post
I dont understand some of the lines below except that you are taking a snapshot with FFSnapShot() and then saving the letter color into $LetterColor, but how you're using the functions with the parameters such as with FFSnapShot and FFGetPixel, and what $COffest is what I don't understand:

Code:
Local $C = FindRiddleAnchor()
If $C[0] = -1 Or $C[1] = -1 Then Return False
FFSnapShot($C[0] - 90, $C[1] - 90, $C[0] + $Spacing * 10 + 90, $C[1], $SSN)
$LetterColor = FFGetPixel($C[0] - 90 + $COffset[0], $C[1] - 90 + $COffset[1], $SSN)
Local $AnchorC[2] = [$C[0] - 90 + $COffset[0], $C[1] - 90 + $COffset[1]]
I am mainly confused about what $C, $COffset,$AnchorC, and $C[0] -90 is (basically what are you passing into all the parameters of those functions used above?
That's one of the early functions I wrote for this project and a perfect display of the bad habits I started with. This is how it looks in the reworked version and should hopefully make things more clear.

Code:
Func Riddler() ; Solves the fishing letter minigame
	Local Const $AnchorOffset[2] = [16, 25] ; relative position to Anchor (pointing to center of the arrow beneath each letter)
	Local Const $Spacing = 35 ; Space between each Letter
	Local Const $L[5] = ["s", "w", "d", "a", "."] ; basic minigame letters ("." for unidentified)
	Local $Word[10], $LetterColor, $text, $Riddle, $Wordlength = 0, $SSN = 1

	Local $aAnchor = FindRiddleAnchor()
	If Not IsArray($aAnchor) Then
		SetGUIStatus("Perfect Catch?")
		Return False
	EndIf

	$aAnchor[0] -= 45 ; Base Offset to include letters since anchor is below
	$aAnchor[1] -= 60
	FFSnapShot($aAnchor[0] - 10, $aAnchor[1] - 10, $aAnchor[0] + $Spacing * 10 + 10, $aAnchor[1] + 40, $SSN)
	$LetterColor = FFGetPixel($aAnchor[0] + $AnchorOffset[0], $aAnchor[1] + $AnchorOffset[1], $SSN)

	; Riddle each letter position from left to right until one is unidentified or last position is reached.
	For $i = 0 To 9 Step 1
		$Riddle = Riddle($aAnchor[0] + $AnchorOffset[0] + $Spacing * $i, $aAnchor[1] + $AnchorOffset[1], $LetterColor, $SSN)
		If $Riddle = 4 Then ; If unidentified exit loop
			$Word[$i] = $L[$Riddle]
			ExitLoop
		Else
			$Word[$i] = $L[$Riddle]
			$Wordlength += 1
		EndIf
	Next

	; If Wordlenght is >= 2 Then send each letter
	If $Wordlength < 2 Then
		Return (False)
	Else
		For $i = 0 To 9 Step 1
			If $Word[$i] <> "." Then
				Sleep(50) ; TODO Settings
				CoSe($Word[$i])
				$text &= $Word[$i]
			EndIf
			Sleep(100)
		Next
		Return (True)
	EndIf
EndFunc   ;==>Riddler

PS: New version is delayed a little more due to the perfect weather. Cba to sit at home atm, sorry.
CrayonCode is offline  
Thanks
1 User
Old   #608
 
elite*gold: 0
Join Date: Apr 2013
Posts: 224
Received Thanks: 314
Quote:
Originally Posted by CrayonCode View Post
That's one of the early functions I wrote for this project and a perfect display of the bad habits I started with. This is how it looks in the reworked version and should hopefully make things more clear.

Code:
Func Riddler() ; Solves the fishing letter minigame
	Local Const $AnchorOffset[2] = [16, 25] ; relative position to Anchor (pointing to center of the arrow beneath each letter)
	Local Const $Spacing = 35 ; Space between each Letter
	Local Const $L[5] = ["s", "w", "d", "a", "."] ; basic minigame letters ("." for unidentified)
	Local $Word[10], $LetterColor, $text, $Riddle, $Wordlength = 0, $SSN = 1

	Local $aAnchor = FindRiddleAnchor()
	If Not IsArray($aAnchor) Then
		SetGUIStatus("Perfect Catch?")
		Return False
	EndIf

	$aAnchor[0] -= 45 ; Base Offset to include letters since anchor is below
	$aAnchor[1] -= 60
	FFSnapShot($aAnchor[0] - 10, $aAnchor[1] - 10, $aAnchor[0] + $Spacing * 10 + 10, $aAnchor[1] + 40, $SSN)
	$LetterColor = FFGetPixel($aAnchor[0] + $AnchorOffset[0], $aAnchor[1] + $AnchorOffset[1], $SSN)

	; Riddle each letter position from left to right until one is unidentified or last position is reached.
	For $i = 0 To 9 Step 1
		$Riddle = Riddle($aAnchor[0] + $AnchorOffset[0] + $Spacing * $i, $aAnchor[1] + $AnchorOffset[1], $LetterColor, $SSN)
		If $Riddle = 4 Then ; If unidentified exit loop
			$Word[$i] = $L[$Riddle]
			ExitLoop
		Else
			$Word[$i] = $L[$Riddle]
			$Wordlength += 1
		EndIf
	Next

	; If Wordlenght is >= 2 Then send each letter
	If $Wordlength < 2 Then
		Return (False)
	Else
		For $i = 0 To 9 Step 1
			If $Word[$i] <> "." Then
				Sleep(50) ; TODO Settings
				CoSe($Word[$i])
				$text &= $Word[$i]
			EndIf
			Sleep(100)
		Next
		Return (True)
	EndIf
EndFunc   ;==>Riddler

PS: New version is delayed a little more due to the perfect weather. Cba to sit at home atm, sorry.
No problem take your time !
†Deadly† is offline  
Old   #609
 
elite*gold: 0
Join Date: May 2017
Posts: 5
Received Thanks: 0
Quality before quantity, I don't mind waiting. In the meantime, if someone could help me figure out that PurpleBag missing thing, I would be thankful, tried everything (Well, obviously not since it isn't working but you get me); No resolution problems, correct image in RES folder, tried replacing it with a custom *.bmp, I am lost. I am a noob but I searched and have been patient

y'all enjoy the weather now
262626262626 is offline  
Old   #610
 
elite*gold: 0
Join Date: Mar 2014
Posts: 4
Received Thanks: 0
The bot works great but, sometimes its faster than the UI can load up when talking to NPC´s, that means that it gets stuck on these tasks, to get around this problem it would be nice if you could set a delay of maybe 2-3 seconds after each action. Or let the user self decide on how long the delay should be by adding a little tab under settings.

edit: the bot does also not collect the new Striker Event Seals (probably lack of image for the Seals)
Logilac is offline  
Old   #611
 
elite*gold: 0
Join Date: Jul 2007
Posts: 53
Received Thanks: 6
First of all, great job!!!- first free bot for bdo
I have found few bugs:
1. bot recognise event items as green fish, disabling looting green fish stops looting event items
2. when more than one event item appears in loot window bot loots only one and starts to bug itself- stops fishing and starting to cast fishing all the time

And I got few questions:
1. Does the selling fish to trade manager work?- also do I need to set up path to this npc- if yes: how?
THX a lot!!!

Edit: Also workers feeding does not work properly- it triggers, but it seems coordinates are wrong- cursor does not move in proper directions.
palancho is offline  
Old   #612
 
elite*gold: 334
Join Date: May 2011
Posts: 97
Received Thanks: 3
Can someone make a video tutorial on how to use this? Or at least kind of layout the steps? I only ask because I do not see a .exe so when looking at this I really am unsure what needs to be done. I can pay if need be.
vaandoom32 is offline  
Old   #613
 
elite*gold: 0
Join Date: Jul 2007
Posts: 53
Received Thanks: 6
Quote:
Originally Posted by vaandoom32 View Post
Can someone make a video tutorial on how to use this? Or at least kind of layout the steps? I only ask because I do not see a .exe so when looking at this I really am unsure what needs to be done. I can pay if need be.
Install Autoit- newest version.
Open Bot: Crayon Code
Setup Bot

Good luck.
palancho is offline  
Old   #614
 
elite*gold: 0
Join Date: Apr 2016
Posts: 39
Received Thanks: 3
Nice bot man. Awesome one.

Autofishing works like a charm!
Scrainer11 is offline  
Old   #615
 
elite*gold: 0
Join Date: Jul 2007
Posts: 53
Received Thanks: 6
Could anyone help me to fix workers feeding pls? Which line to edit and how? Thank You!!!


palancho is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Opensource] PokeMMO Autoit bots
DON'T USE THIS UNTIL WE FIND A WAY TO WORK AROUND THE CAPTCHA!!! Gnomepy's PokeMMO bot V6.1 *31 january 2013* Functions: -Heals when hp/pp...
117 Replies - Pokemon
[OPENSOURCE PROJECT] BROWSERGAME
HEYHO Leute :D , Ich suche Leute die Lust hätten mit mir ein eigenes Browsergame zu erstellen. Also ich bräuchte ein ganzes Team so wie Sponsoren...
8 Replies - Web Development
[OpenSource Project] C++ CoCore
Alright, I think I'm done with the lurking for now.. The main reason of me starting this project is to get some people to use C++ instead of C#....
59 Replies - CO2 PServer - Discussions / Questions
Farmville Automatizer OPENSOURCE free bot [AutoIT]
Farmville Automatizer released! Open Source >>> Download <<<
2 Replies - Facebook



All times are GMT +2. The time now is 17:59.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2017 elitepvpers All Rights Reserved.