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   #76
 
elite*gold: 0
Join Date: Mar 2006
Posts: 1,510
Received Thanks: 294
@
In order to make it easier to port with lower resolution, perhaps add textboxes for users to input the X/Y coordinates manually or by using a Timer with HotKey.
You must register and activate your account in order to view images.
I made this auto worker feeder prior to the release of your script.

Just make a helpfile or a tutorial where to find the image in your screen and let the user find it themselves so the script will work on any resolution.

The sample HotKey for clicking the "..." to find the Worker Icon.
Code:
        workHotkey = GetAsyncKeyState(Keys.Insert)
        numWorkX.Value = MousePosition.X
        numWorkY.Value = MousePosition.Y
        Status.Text = "Locate worker icon && press {INS} Key to save."
        If workHotkey = True Then
            workHotkey = False
            tmrWorkerHotkey.Stop()
            Status.Text = "Worker Icon location has been saved."
        End If
So yea, with this we can make a universal resolution script.
Of course you'll have to add each X/Y textboxes for each Pixel/images to find.

This will save time into converting the script and less support given to the users who is using your script because they can now tweak the script at will without touching the source directly.



killzone is offline  
Thanks
1 User
Old   #77
 
elite*gold: 0
Join Date: Apr 2017
Posts: 108
Received Thanks: 185
@ No I can't Imagesearch for the cursor. Neither FastFind nor Imagesearch will capture the mouse when they take a screen. It is not detectable like that.

Loot is already returned individually. If only the second slot meets the lootfilter it will only pick the second. If the first and the third slot meet the lootfilter it will pick both of those but not the second. Like I said before, each slot is handled individually.

@ I'm more interested in solving the logic and exploring features at the moment.
Support for different resolutions and languages will follow later.
Everything takes time and I'm not payed to do this, nor am I specifically trained. So you will have to be patient.


CrayonCode is offline  
Old   #78
 
elite*gold: 0
Join Date: Mar 2006
Posts: 1,510
Received Thanks: 294
Fair enough. Its good to know there's a future plan for supporting multiple resolutions.
killzone is offline  
Old   #79
 
elite*gold: 0
Join Date: Jun 2008
Posts: 64
Received Thanks: 2
Ok here is my updated comment on v0.14

Firstly, the bot does not discard useless junk. Also I could not get it to leave 2 open slots for drying idk why. So inventory just gets full of fish. The reeling and loot function work really well.

Gonna keep using v0.12 for a while as it works the best atm for me.


sunny55 is offline  
Old   #80
 
elite*gold: 0
Join Date: Mar 2006
Posts: 1,510
Received Thanks: 294
@
You must register and activate your account in order to view images.
Inventory count gets negative.

Scenario:
Was changing settings while I have 68 Slots, I counted from Potions, Rods & Beers a total of 18 Slots. So I used the 18 slots as "reserved slots" thus making it 50/50 (68-18).
I restarted the bot, didnt changed any value and hit F4.
Bot detects inventory is full.
Opened inventory, then scrolled down until it sees the "unopened slots" (those slots with white squares in middle denoting its closed).
Closes inventory, then detecting "undefined" and trying to use the rod and continue fishing.
Then bot updates the counter into what the image shown above.

My attempt was hoping it will detect that the inventory was full and do the drying process then resumes the fishing.

Edit:
Im very sure this is not the bot's issue but mine as Im very sure it has to do with my inventory settings & reservation of slots which I am not familiar with.

So, any tip? Has total of 68 slots (with value pack).
Then currently has 17 extra items in inventory including 8 rods, beer, pet food, dried fish, key, relic & lamp oil.
How much reserved slots will I put, 17 or 20 to make sure?


@

BUG REPORT
Version: 14
Status: Drying Fish
Scenario: Bot tries to Dry fish while player is equipped with fishing rod.
Possible solution: Allow the bot to do 2 checks, if check returns true on both check it will process the fish.

Example idea:

Code:
If IsEquippedRod = True And IsInventoryFull = True Then
	UnEquipRod()
	sleep(3000)
	DryFish()
else
	StopFishing()
End If
killzone is offline  
Old   #81
 
elite*gold: 0
Join Date: Mar 2017
Posts: 25
Received Thanks: 5
While drying takes a step forward, especially when the fish are of the same type. I think you just decrease the time between press "L" to open the processing window

Sorry for my bad english.
KKK76 is offline  
Old   #82
 
elite*gold: 0
Join Date: Feb 2009
Posts: 54
Received Thanks: 2
I have the same problems with the inventory...it does not recognize when the inventory is full and so auto-restock doesnt work...but aside from that Crayon did an amazing job kudos to you!
limital is offline  
Old   #83
 
elite*gold: 0
Join Date: Mar 2011
Posts: 96
Received Thanks: 4
Hey Killzone how u changed the routines for npcs? i need to change it to for better experiences

PS: Restock Option, after trading items on Trader bot goes to the Blacksmith and typing 3 times the same npc name Blacksmith ..
s3anlike is offline  
Old   #84
 
elite*gold: 0
Join Date: Apr 2017
Posts: 108
Received Thanks: 185
Quote:
Originally Posted by s3anlike View Post
Hey Killzone how u changed the routines for npcs? i need to change it to for better experiences

PS: Restock Option, after trading items on Trader bot goes to the Blacksmith and typing 3 times the same npc name Blacksmith ..

Code:
Func Restock()
	Local $RestockSettings = IniReadSection("config/data.ini", "RestockSettings")

	If $RestockSettings[1][1] = 0 Then Return False
	SetGUIStatus("Restocking...")
	WinActivate("BLACK DESERT - ")
	Sleep(500)
	$Fish = True


	If $RestockSettings[3][1] = 1 Then ; Trader
		SetGUIStatus("Selling Fish.")
		If SellFish($RestockSettings[4][1]) = True Then SetGUIInventory(0)
	EndIf
	If $RestockSettings[5][1] = 1 Then ; Repair
		SetGUIStatus("Repairing.")
		RepairInv($RestockSettings[6][1])
	EndIf
	If $RestockSettings[7][1] = 1 Then ; Auction
		SetGUIStatus("Auctioning Relics.")
		BrokerRelics($RestockSettings[6][1])
	EndIf
	If $RestockSettings[9][1] = 1 Then ; Bank
		SetGUIStatus("Storing Relics & Money.")
		If BankRelics($RestockSettings[6][1]) = True Then SetGUIInventory(0)
	EndIf
	SetGUIStatus("Autopathing to mount.")
	BackToMount($RestockSettings[2][1])
	SetGUIStatus("Autopath to mount complete.")
	Return True
EndFunc   ;==>Restock
Search this function and just swap the position yourself. Next version will have an option for npc order.




Next version will be out sometime today with some additions but mostly fixes.
CrayonCode is offline  
Thanks
3 Users
Old   #85
 
elite*gold: 0
Join Date: Jun 2008
Posts: 64
Received Thanks: 2
Man you work so fast ****. I have no knowledge about coding but it looks so smooth. Keep up the good work
sunny55 is offline  
Old   #86
 
elite*gold: 0
Join Date: Feb 2014
Posts: 31
Received Thanks: 5
Congratulations for your work, I look forward to other resolution ^^
.
Slayve is offline  
Old   #87
 
elite*gold: 0
Join Date: Jan 2012
Posts: 2
Received Thanks: 0
Thank you so much for making this! I can finally make decent money from fishing while doing something else at home, or simply working. I have no knowledge about coding, but if you need any help in the future, anything that I can help you with, just let me know!
3XE is offline  
Old   #88
 
elite*gold: 0
Join Date: Apr 2017
Posts: 108
Received Thanks: 185
V0.15 is out! Grab it while it's hot!
CrayonCode is offline  
Thanks
3 Users
Old   #89
 
elite*gold: 0
Join Date: May 2011
Posts: 1,655
Received Thanks: 911
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 ?
721560329 is offline  
Old   #90
 
elite*gold: 0
Join Date: Mar 2011
Posts: 96
Received Thanks: 4
Quote:
Originally Posted by CrayonCode View Post
V0.15 is out! Grab it while it's hot!
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?

PS: Crayon u need a Discord channel! xD


s3anlike 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.