[AutoIt] CrayonCode Bot Project (OpenSource & Free)

04/11/2017 21:00 CrayonCode#91
Quote:
Originally Posted by s3anlike View Post
whats the randomization min and max default settings crayon?

PS: Crayon is it possible to press T if bot checked the red waypoint and then press t if not try again like pixelsearch on the map for the red waypoint?
I don't randomize so the default is 0.
It depends how human you would want it to look.
For the Riddle I would recommend 10/500 and for the ReelIn 0/5000.


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.
It already checks if a path is selected for the npcs because the name/Icon will have a different color in the NPC Search and then presses t. This doesn't work for the horse though.

Or are you talking about the party/guild ping?


Quote:
Originally Posted by 721560329 View Post
idk if im the only one having the issue but my worker button isnt on 4th slot its on 3rd maybe option to pick which slot to click on ?
I did not know that the order of horse/ship/worker could vary.
For now just edit the Worker Icon value for yourself. (211) try +/- ~50 should move once to the lef/right.

04/11/2017 21:54 s3anlike#92
Quote:
Originally Posted by CrayonCode View Post
V0.15 is out! Grab it while it's hot!
[quote=CrayonCode;35905564]I don't randomize so the default is 0.
It depends how human you would want it to look.
For the Riddle I would recommend 10/500 and for the ReelIn 0/5000.


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.
It already checks if a path is selected for the npcs because the name/Icon will have a different color in the NPC Search and then presses t. This doesn't work for the horse though.

Or are you talking about the party/guild ping?




Yes im talking about the party/guild ping much ppls using it for supporting and something like this here faster better more support fast feedback and so..

uhm i tryed the restock functions so i found a bad thing like if the character marks a new waypoint and hit "t" it works smoothless but idk why at the last npc it wanna mark the waypoint hitting "t" and then the waypoint disappears.. i think something is wrong with the "r" button for dialoge but i dont can find the code for this .. i hope u know what i mean :)
04/11/2017 22:40 killzone#93
@[Only registered and activated users can see links. Click Here To Register...]
Having 2 save button is redundant I think.
Perhaps, put the following buttons outside of the mainTab.
  • Clear (planned removal)
  • Start/Stop
  • Reset Session
  • Save
Also, add a hotkey to Start/Stop Test Auto-Restock.

Overall, new UI changes is good and organized.
Thanks!

Edit:
I also suggest to move the Auto Worker Feeder outside of the Main Loop.
Make it so that users can start/stop Auto Worker separately.
Because it is useful when user is not afk-fishing but doing something else like Cooking.
04/12/2017 00:08 rantobot1#94
hi CrayonCode thanx for your effort, i wonder if you will ever implement a marketplace bot, would be awsome, i did something myself and it's working but not as good as your fishing bot, if u are interested to help i can put here my little simple ah bot.

Best regards
04/12/2017 00:57 CrayonCode#95
Quote:
Originally Posted by rantobot1 View Post
hi CrayonCode thanx for your effort, i wonder if you will ever implement a marketplace bot, would be awsome, i did something myself and it's working but not as good as your fishing bot, if u are interested to help i can put here my little simple ah bot.

Best regards
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.
04/12/2017 08:40 iNiperx#96
Tried this for the first time (0.15), Casts perfectly, gets the mini games correctly and with ease, but for some reason it doesn't want to get the loot, it just keeps casting and not getting the fish.

The maintenance is in about an hour, so I'll check on this tomorrow.
04/12/2017 10:27 CrayonCode#97
Quote:
Originally Posted by iNiperx View Post
Tried this for the first time (0.15), Casts perfectly, gets the mini games correctly and with ease, but for some reason it doesn't want to get the loot, it just keeps casting and not getting the fish.

The maintenance is in about an hour, so I'll check on this tomorrow.
If you open the script in SciTE (rightclick the .au3 and click edit) and run it it from there (hit F5) you will see an output in the SciTE console.

Copy & Paste the lines with Loot: and Pick: in it so I can see if the Loot detection or the item filter is causing problems.
04/12/2017 10:38 killzone#98
@[Only registered and activated users can see links. Click Here To Register...]
I'll look into the Gui as AutoIt is not really my forte.
04/12/2017 13:06 killzone#99

@[Only registered and activated users can see links. Click Here To Register...]
Here's the UI I made using ISN AutoIt Studio
The IDE can be downloaded here: [Only registered and activated users can see links. Click Here To Register...]

Source
04/12/2017 16:03 KKK76#100
Ty for new version! Always perfect.
04/12/2017 18:09 iNiperx#101
Quote:
Originally Posted by CrayonCode View Post
If you open the script in SciTE (rightclick the .au3 and click edit) and run it it from there (hit F5) you will see an output in the SciTE console.

Copy & Paste the lines with Loot: and Pick: in it so I can see if the Loot detection or the item filter is causing problems.
Took me a second to get the output, I had to manually run SciTE as admin in order to get the output windows to work, or it'd say that it'd exited (0).

Anyways, this is what it says:
Code:
12:04.59 Solving riddle.
12:05.03 Evaluating loot.
12:05.07 Loot:[200][-200][-200][-200]
12:05.07 Pick:[1][0][0][0]
12:05.08 Ready for fishing.
12:05.08 Casting Fishingrod
12:05.15 Currently fishing. (0s)
The minimum rarity is set to greens, but even if I set it to white it still doesn't get the loot.

I've also had cases where I try to pause the bot, or close out of it and it wont, it just keeps fishing and such and the only way out is to force-quit the app by exiting the script from the tray system.
04/12/2017 19:51 ahmedwork#102
@[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...]
04/12/2017 20:17 kingsland#103
Everything is working fine so far, the only thing that is slow for me is the captcha. It is so slow that time runs out and I fail the catch. I'm running this on a vm, though not getting 60fps, could that be the reason?

Edit: Seems to be fine after a few throws, thanks for this awesome bot :)
04/12/2017 20:50 killzone#104
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...]
Would it be the same if the bot checks your Internet Connection, instead of specifically checks the game's connection?

Ive been keeping this for ages, this was part of a bot last 2007. lmao
Code:
Func CheckConnection()

FileChangeDir ($currentdir)

RunWait(@ComSpec & " /c " & "netstat.exe -na -p TCP > ip.txt",""  [MENTION=330060]Sw_[/MENTION]HIDE)
sleep(1000)

If FileExists("tantraip.txt") Then
        ;Msgbox(0,"Info", $currentdir)

	$file = FileOpen("tantraip.txt", 0)
	; Check if file opened for reading OK
	If $file = -1 Then
	   MsgBox(0, "Error", "Unable to open file.")
	   Exit
	EndIf

	While 1
	   $line = FileReadLine($file)
	   If  [MENTION=299637]ErRoR[/MENTION] = -1 Then ExitLoop
           ;MsgBox(0, "TantraIP", $line)
	   $fileip = FileOpen("ip.txt", 0)
	   If $fileip = -1 Then
	      MsgBox(0, "Error", "Unable to open ip.txt file.")
	      Exit
	   EndIf
	   While 1
		$ipline = FileReadLine($fileip)
		If  [MENTION=299637]ErRoR[/MENTION] = -1 Then ExitLoop
                If StringInStr($ipline,$line) > 1 then
		  FileClose($fileip)
		  FileClose($file)
		  Return 1
		EndIf
	   Wend
	Wend
        FileClose($fileip)
	FileClose($file)

Else
	MsgBox(4096,"Warning", "dialog.txt file does not exist. Unable to continue")
EndIf

Return 0

EndFunc

Func checkifdisconnected()
	CheckIfPause()
	If GUICtrlRead($checkboxautologin) = 1 Then
	    If CheckConnection() = 0 Or Not WinExists(GUICtrlRead($wintitle)) then
                ;If Not WinExists(GUICtrlRead($wintitle)) then
		;   GUICtrlSetData($wintitle, "Tantra Launcher")
		;EndIf
		$handle = WinGetHandle(GUICtrlRead($wintitle))
		$PID = WinGetProcess(GUICtrlRead($wintitle))
                If $PID then
		   ProcessClose($PID)
		   ProcessWaitClose($PID)
                EndIf
		$internectcheckcount = 1
		Do
		  GUICtrlSetData($statuslabel,"Checking internet connection..."&String($internectcheckcount)&" sec/s")
		  $internectcheckcount = $internectcheckcount + 1
		  Sleep (1000)
		Until CheckInternetConnection() = 1
		GUICtrlSetData($statuslabel,"Checking internet connection..."&" OK")
                Sleep(Number(GUICtrlRead($autologindelay)))
		Call ("Login")
	    	Call ("_getDialogQuestion")
	    	_OpenFileDialog()
		$count2 = 0
 	 	_writeValue(_GetAddressOffset($baseAddressDialogTrade,$TradeOffset), 49)
		$dialogTradeRequest = _GetDialogData(_GetAddressOffset($baseAddressDialogTrade,$TradeOffset))
		$maxHP = _GetData($baseAddressCharacter,$myMaxHPoffset)
		_writeValue(_GetAddressOffset($baseAddressDialog,$invitedPartyOffset), 49)
		$dialogParty = _GetDialogData(_GetAddressOffset($baseAddressDialog,$invitedPartyOffset))
	    EndIf
	EndIf
EndFunc
Full source:
[Only registered and activated users can see links. Click Here To Register...]
04/12/2017 20:52 ahmedwork#105
Quote:
Originally Posted by killzone View Post
Would it be the same if the bot checks your Internet Connection, instead of specifically checks the game's connection?

Ive been keeping this for ages, this was part of a bot last 2007. lmao
getting dc is not always cos of internet connection :D so the better is checking exactly the game connection :3