[AutoIt] CrayonCode Bot Project (OpenSource & Free)

12/21/2017 21:19 LuigiLC#1081
someone who can help me? I'm getting angry, nobody answers on discord and nobody knows how to fix the fucking purplebag problem.

I have already deleted all the discord channels, they are useless like the Papa cock, I have already lost more than 6 hours for these fucking bots; and nobody works.

I set everything correctly, ui scales 100%, autoarrange off, empty inventory etc .. what the fuck is the problem? Jesus Christ.
01/04/2018 18:01 Xeriiom#1082
Does the Snipebot work?
01/10/2018 21:01 SiReKpl#1083
It gets stuck on Waiting for registration count change, so probably this part of code needs to be updated, but im not programmer and dunno how it works, tying to figure it out:

Quote:
Func Marketplace()
Local Const $PurpleBags = "res/marketplace_purplebags.bmp"
Local $RegistrationCountOffset[4] = [70, -9, 110, 5]
Local $RefreshOffset[2] = [-440, 480]
Local $x, $y, $IS
Local $Diff[4]
Local $timer

$ResOffset = DetectFullscreenToWindowedOffset()
$IS = _ImageSearchArea($PurpleBags, 1, $ResOffset[0], $ResOffset[1], $ResOffset[2], $ResOffset[3], $x, $y, 0, 0)
If $IS = False Then
SetGUIStatus("No PurpleBags found. Stopping.")
$Marketplace = False
EndIf

Local $count = 0, $breakout = 0
While $Marketplace
SetGUIStatus("Waiting for Registration Count change")
$number = FastFindBidBuy($x, $y)
If $number >= 0 Then BuyItem($x, $y, $number)

$Diff[$count] = PixelChecksum($x + $RegistrationCountOffset[0], $y + $RegistrationCountOffset[1], $x + $RegistrationCountOffset[2], $y + $RegistrationCountOffset[3])
For $i = 0 To UBound($Diff) - 1
If $Diff[0] <> $Diff[$i] Then
If TimerDiff($timer) > 1000 Then
SetGUIStatus("Refresh (Registration Count change)")
MouseClick("left", $x + $RefreshOffset[0], $y + $RefreshOffset[1], 1, 0)
$timer = TimerInit()
Sleep(50)
ExitLoop
01/13/2018 17:38 killzone#1084
Market place images or at least something was changed in game.
The Marketplace bot is fucked as of this moment.
01/19/2018 19:07 killzone#1085
@[Only registered and activated users can see links. Click Here To Register...]
have any idea how he created the images?
Original Image: [Only registered and activated users can see links. Click Here To Register...]
Taken from NA.
My New Image: [Only registered and activated users can see links. Click Here To Register...]
Taken from another region.
It appears its not detecting.
Ive even tried recreating it pixel by pixel using the same exact color as original & the new region.
[Only registered and activated users can see links. Click Here To Register...]

Still says unidentified state.
01/23/2018 02:59 Rodent11#1086
Hey @[Only registered and activated users can see links. Click Here To Register...]

I did it like this:

Menu >> Settings >> Screen >> Adjust Gamma: -50% >> Adjust Contrast: +50%

This creates a nice black background. I would also look at a dark object/ scene, just to create a dark scene again. The reason that I did this is because I plan on using Photoshop's 'Select Color Range' tool.

So, once I have my nice dark background, I took the screenshot (as a PNG, that's important. Don't take your screenshots as JPG), and loaded it into Photoshop. Cropped the "Press 'Space'" part, then selected a color range on the 'Press' and on the 'Space' words. Make sure to select a fairly SOLID color, not a transitional pixel color (like off-yellow, try to get the yellowest yellow).

Copy each selection and paste into a new layer (Photoshop pastes in place for me). Then create a new layer, and set the background color to pure white (FFFFFF).

Save the image as a PNG, and you should be good to go.

Since I'm not great at explaining things, here's some pictures:

Step 1: Import screenshot to Photoshop, crop section: [Only registered and activated users can see links. Click Here To Register...]
Step 2: Open Select > Color Range... tool: [Only registered and activated users can see links. Click Here To Register...]
Step 3: Select SOLID color of the text, make sure to set fuzziness to 0: [Only registered and activated users can see links. Click Here To Register...]
Step 4: Make sure that your selection looks good: [Only registered and activated users can see links. Click Here To Register...]
Step 5: Copy and paste your selection. It should make a new layer that should be just that selection.
Step 6: Go back to main layer, and do the same thing for the other word.
Step 7: You should have two layers. Add a new one below those two, make it solid white: [Only registered and activated users can see links. Click Here To Register...]

In my test, I was able to find my image at 0 tolerance, even when the background was like this: [Only registered and activated users can see links. Click Here To Register...]

Here's my final image: [Only registered and activated users can see links. Click Here To Register...]

Here's the ImageSearch function that I used to test it:
Code:
Func _Search()
	Local $C[2]
	For $i = 0 To 255
		$IS = _ImageSearchArea($iSearch, 1, 0, 0, 1920, 1080, $C[0], $C[1], $i, "0xffffff")
		If $IS = False Then ContinueLoop
		If $IS = True Then
			MsgBox(0, '', 'Found it at ' & $i, 5)
			Exit
		EndIf
	Next
	MsgBox(0, '', 'Not found', 3)
EndFunc   ;==>_Search
The important thing to note here, is that for the _ImageSearchArea, we use "0xffffff" at the end, which is the hex code for the white transparency.

Hope that all makes sense for how I got there.

Thanks,
Rodent11
01/23/2018 07:31 killzone#1087
I guess I did the Color Selection wrong, that was the 1st thing I did prior to asking for help.
01/23/2018 08:06 Rodent11#1088
No problem, I think the most important thing with that is to make sure that fuzziness is set to 0, you don't want any selection 'feathering', or traces of the pixels next to the color you selected.

Also, try to keep the image as small as possible. I did some speed tests, and with the image that I attached previously, it was horrendously slow.

This new image: [Only registered and activated users can see links. Click Here To Register...] is leagues faster in detection, in my example.

If you can't get that to work though, upload an image of the text area you're trying to get, and I can see if I can get something that'll work when I have time.
01/25/2018 04:23 Jehano#1089
Is there any chance that you can set it up that it only fishes for relics instead of fishes etc?

Because im only interested in relics while auto fishing while im asleep.
04/12/2018 07:43 WarAssA#1090
I just got banned from using this.

Wasn't event playing anymore, just wanted to let you know.
04/14/2018 20:20 mithrelle#1091
Quote:
Originally Posted by WarAssA View Post
I just got banned from using this.

Wasn't event playing anymore, just wanted to let you know.
This convinces me that they don't have any foolproof detection method - they must be using the logs and banning people who fished too perfectly for too long. Because they've never caught me and I'm still not banned. The detection seems to be *behavioural*
04/14/2018 21:59 maestro1337#1092
Quote:
Originally Posted by LuigiLC View Post
someone who can help me? I'm getting angry, nobody answers on discord and nobody knows how to fix the fucking purplebag problem.

I have already deleted all the discord channels, they are useless like the Papa cock, I have already lost more than 6 hours for these fucking bots; and nobody works.

I set everything correctly, ui scales 100%, autoarrange off, empty inventory etc .. what the fuck is the problem? Jesus Christ.
Simplify UI? Actual full screen?
04/15/2018 01:32 dbogik#1093
Does it work on private serv 491 version?
08/08/2018 17:18 autkub101#1094
1440x900 resolution
How?
10/24/2018 08:38 killzone#1095
Request for this thread to be pinned.
For reference and for easier to find.