[AutoIt] CrayonCode Bot Project (OpenSource & Free)

04/12/2017 21:02 s3anlike#106
Please we need a Discord Channel! xD
04/12/2017 23:50 killzone#107
No need imo. Development for such project should remain accessible by all.
Not everyone likes to use discord. It defeats the purpose of having the forum in the first place.
04/12/2017 23:57 CrayonCode#108
Quote:
Originally Posted by ahmedwork View Post
@[Only registered and activated users can see links. Click Here To Register...] great work as usual dude :3

have a look to this code it was implemented to detect when the game dced we can use that and improve it with an autologin

what do you think

[Only registered and activated users can see links. Click Here To Register...]
Seems like the BDO-Watchdog basically just cmd netstats and it works perfectly. I translated this to au3.

Code:
Func IsProcessConnected($ProcessName)
	Local $PID = ProcessExists($ProcessName)
	If Not $PID Then Return -1
	Local $Pattern = "\s" & $PID & "\s"
	Local $iPID = Run(@ComSpec & " /c netstat -aon",  [MENTION=1024018]SystemD[/MENTION]ir,  [MENTION=330060]Sw_[/MENTION]HIDE, 4 + 2) ;  $STDERR_CHILD (0x4) + $STDOUT_CHILD (0x2)
	If Not $iPID Then Return -2
	Local $sOutput = ""

	While True
		$sOutput &= StdoutRead($iPID)
		If  [MENTION=2544426]Error T[/MENTION]hen ; Exit the loop if the process closes or StdoutRead returns an error.
			ExitLoop
		EndIf
	WEnd

	Return (StringRegExp($sOutput, $Pattern, 0)) ; Returns 1 if connceted, 0 if disconnected.
EndFunc   ;==>IsProcessConnected


@[Only registered and activated users can see links. Click Here To Register...]
Code:
12:05.07 Loot:[200][-200][-200][-200]
12:05.07 Pick:[1][0][0][0]
This says blue grade, no special, no event in the first slot and empty in the other three.
The filter decides to pick the first slot since its higher than green.
Sounds fine. The Mouseclick must somehow mess up.

Try settings to loot anything and then check what the bot does whenever it is time to loot. (Where the mouse moves to or if the camera moves)

Are you running windows 8? Most of those issues sound like admin-privilege problems.




I'm running little short on time today. I'll check out the ISN tool and killzones gui tomorrow.

I'd be ok with a good old irc chat. With discord you can't really escape people and they will bother you if you are there or not.

EDIT: Why the fuck is MENTION fucking with CODE ?
04/13/2017 01:36 721560329#109
hey just an idea... cant you use the patch icon to check if mout was selected for autopath ?

this is waht i mean: [Only registered and activated users can see links. Click Here To Register...]
04/13/2017 01:51 CrayonCode#110
Quote:
Originally Posted by 721560329 View Post
hey just an idea... cant you use the patch icon to check if mout was selected for autopath ?

this is waht i mean: [Only registered and activated users can see links. Click Here To Register...]
I have already talked about this. This icon is very unreliable and will cause more trouble then good.

Quote:
Originally Posted by CrayonCode View Post
The problem with the red waypoint icon is that is has low priority. So NPCs, other players, your char yourself and the camera angle can all hide it.
The interface can also be on top as well and it is not solid.
04/13/2017 04:51 iNiperx#111
Quote:
Originally Posted by CrayonCode View Post
@[Only registered and activated users can see links. Click Here To Register...]
Code:
12:05.07 Loot:[200][-200][-200][-200]
12:05.07 Pick:[1][0][0][0]
This says blue grade, no special, no event in the first slot and empty in the other three.
The filter decides to pick the first slot since its higher than green.
Sounds fine. The Mouseclick must somehow mess up.

Try settings to loot anything and then check what the bot does whenever it is time to loot. (Where the mouse moves to or if the camera moves)

Are you running windows 8? Most of those issues sound like admin-privilege problems.
I figured I had to show (toggle) my cursor on for it to work, otherwise the in-game camera would move (The program thinks it can move the mouse but its just moving the camera)
04/13/2017 05:58 laservic#112
Quote:
Originally Posted by CrayonCode View Post
It always helps. Else I have to do everything from scratch. And I'm not really playing BDO so I don't always know how to do things the best way.



@[Only registered and activated users can see links. Click Here To Register...] I wish I could do several things different. The whole KODA autoit GUI feels so stupid imho.
Doesn't even remember listview items on loading and stuff like that.
Never really did GUIs before.
If you want to help out feel free. You can open the CrayonCode.au3 with KODA and fiddle with it, or mock up a new one entirely.


@[Only registered and activated users can see links. Click Here To Register...] Did you convert the pictures somehow? They look like .jpg quality allthough they are in the .bmp format.
And the colors are absolutely inconsistent so I'm pretty sure there is some compression involved.
I send screenshots of the new in the format jpg, I really hope for you that you will help me and make a fishing script for the Russian version of the game! Thanks!
04/13/2017 08:13 CrayonCode#113
Quote:
Originally Posted by laservic View Post
I send screenshots of the new in the format jpg, I really hope for you that you will help me and make a fishing script for the Russian version of the game! Thanks!
No I need UNCOMPRESSED .bmp or .png
JPEG is no good at all.

If the picture is 1920x1080 .bmp it should be 8 MB in size, but yours have less than 6 MB.



@[Only registered and activated users can see links. Click Here To Register...] Try running the script as admin. It looks like the controlsend command is being ignored that taps CTRL to make the mouse appear and hide.
04/13/2017 08:47 iNiperx#114
Quote:
Originally Posted by CrayonCode View Post
@[Only registered and activated users can see links. Click Here To Register...] Try running the script as admin. It looks like the controlsend command is being ignored that taps CTRL to make the mouse appear and hide.
Ummh, I dont use CTRL as my cursor toggle, I use Button 4 from my mouse (extra buttons), I'll have to change it.
04/13/2017 09:18 limital#115
After testing the script for some time, these are the problems i've found:
- Worker feeding does not work for me, maybe it's because of the location of the button...im not sure
- even though i selected only selling fish in the restock option, it still goes to blacksmith, market and storage...
- the Restock-Function itself gets stuck very often and would need some rework. Most important in my opinion is the ability to stop it :D it's always a fight against the script when it gets stuck. Maybe also stop restock with F4?

other than that, great work Crayon! Thank you!
04/13/2017 10:02 CrayonCode#116
Quote:
Originally Posted by limital View Post
After testing the script for some time, these are the problems i've found:
- Worker feeding does not work for me, maybe it's because of the location of the button...im not sure
- even though i selected only selling fish in the restock option, it still goes to blacksmith, market and storage...
- the Restock-Function itself gets stuck very often and would need some rework. Most important in my opinion is the ability to stop it :D it's always a fight against the script when it gets stuck. Maybe also stop restock with F4?

other than that, great work Crayon! Thank you!
Good catch. Fixed in the next version.

Is your worker icon not the 4th position from the left? (Horse/Ship/House/Worker/Pet)
I'll probably change the worker feeding to use ESC -> Workerlist in the future.
04/13/2017 10:17 laservic#117
Quote:
Originally Posted by CrayonCode View Post
No I need UNCOMPRESSED .bmp or .png
JPEG is no good at all.

If the picture is 1920x1080 .bmp it should be 8 MB in size, but yours have less than 6 MB.



@[Only registered and activated users can see links. Click Here To Register...] Try running the script as admin. It looks like the controlsend command is being ignored that taps CTRL to make the mouse appear and hide.
Do you need such screenshots?
04/13/2017 10:21 limital#118
Great, Thanks! My Icon is in 3rd position. Guess thats why it doesnt work :)
04/13/2017 12:34 rantobot1#119
Quote:
Originally Posted by CrayonCode View Post
It always helps. Else I have to do everything from scratch. And I'm not really playing BDO so I don't always know how to do things the best way.

Pm sent
04/13/2017 13:07 killzone#120
Quote:
Originally Posted by CrayonCode View Post
Good catch. Fixed in the next version.

Is your worker icon not the 4th position from the left? (Horse/Ship/House/Worker/Pet)
I'll probably change the worker feeding to use ESC -> Workerlist in the future.
Right-clicking a BEER from inventory opens worker list too.

Quote:
Originally Posted by limital View Post
Great, Thanks! My Icon is in 3rd position. Guess thats why it doesnt work :)
Find this from CrayonCode.au3
Code:
[211, 118], _ ; Worker Icon
Then open your C:\Program Files (x86)\AutoIt3 and run "Au3Info_x64.exe".
While the BDO window is open (full window Screen)
Click & Drag the Finder Tool Icon from Au3Info_x64.exe and drag it over to your Worker List icon.
It will tell you exactly where its located and copy the X/Y Position.
Then replace:
Code:
[211, 118], _ ; Worker Icon
Into:
Code:
[NEWX, NEWY], _ ; Worker Icon
Save and start the bot again.

Quote:
Originally Posted by laservic View Post
Do you need such screenshots?
Screenshots should not be compressed. Jpgs are compressed format.
Go in game -> options -> screenshot -> select PNG or BMP.

Zip your screenshots and upload it so the compression is untouched.

Quote:
Originally Posted by 721560329 View Post
hey just an idea... cant you use the patch icon to check if mout was selected for autopath ?

this is waht i mean: [Only registered and activated users can see links. Click Here To Register...]
In general, the auto path (finding NPC) is not reliable itself.
Sometimes you have to single click the icon to auto path.
Sometimes you need to double click the icon to auto path.
Sometimes double clicking cancels the auto path.
Sometimes single clicking cancels the auto path.

Although I agree it needs improvement but I dont think it has a higher priority.
You can just fish with Blue minimum rarity and dry the blue fishes.
Drying the blue fishes gives purpose to making dry fish crates.
With the crates, it also adds silver to your daily afk routines.