Register for your free account! | Forgot your password?

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

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

 

[AutoIt] CrayonCode Bot Project (OpenSource & Free)

Reply
 
Old   #466
 
elite*gold: 0
Join Date: Apr 2017
Posts: 33
Received Thanks: 3
Quote:
Originally Posted by †Deadly† View Post
thank you, but there is some picture on the folder that use english, maybe it gonna be a problem with the french client no ?
I change nothing and it works perfectly

Quote:
Originally Posted by imedbox View Post
@CrayonCode, pls how to config the Func FastFindBidBuy for Fr client? the marketplace not work in Fr client i need to change something?
ty
pls help for this CrayonCode



imedbox is offline  
Old   #467
 
elite*gold: 0
Join Date: Apr 2013
Posts: 224
Received Thanks: 314
Quote:
Originally Posted by imedbox View Post
I change nothing and it works perfectly



pls help for this CrayonCode
you have to edit picture in the folder of the bot... And it's annoying lol that's why I prefer keep english client for that bot...


†Deadly† is offline  
Old   #468
 
elite*gold: 0
Join Date: Apr 2017
Posts: 33
Received Thanks: 3
Quote:
Originally Posted by †Deadly† View Post
you have to edit picture in the folder of the bot... And it's annoying lol that's why I prefer keep english client for that bot...
The bot with my resolution_settings.ini in Fr bdo client work very well i dont need change pic in res folder, the only problems is Marketplace the bot wont work in Fr Client, he dont see Buy/Bid/BidR in Fr language.

marketplace pic 1920/1080 BMP format in FR client 11.07MB in 7zip file :

imedbox is offline  
Old   #469
 
elite*gold: 0
Join Date: Apr 2017
Posts: 108
Received Thanks: 189
Yeah sorry for the marketplace. Since the window positions are sometimes context driven and there is only text on buttons instead of images I can use as anchor, I went mostly with searches. And I also used relative coordinates to get better performance on the Bid/Buy part.

At least the marketplace should support all resolutions as long as the client is English.

So I would have to do quite a lot of rework. But this is a problem for another time.


CrayonCode is offline  
Thanks
5 Users
Old   #470
 
elite*gold: 0
Join Date: Apr 2008
Posts: 451
Received Thanks: 137
Code:
Func AH()

$AH = Not $AH

If $AH = False Then

SetGUIStatus("Pausing AH")

Else

SetGUIStatus("Starting AH")

EndIf



While $AH = True

GetStateAH()

WEnd

EndFunc   ;==>AH



Func DetectStateAH(ByRef $C)

Local $SSN = 1

FFSnapShot(1273 + $ResOffset[0], 326 + $ResOffset[2], 1326 + $ResOffset[0], 736 + $ResOffset[1], $SSN)
; buttons region
$FF3 = FFColorCount($C[4], 10, True, $C[0], $C[1], $C[2], $C[3], $SSN)



Return $FF3



EndFunc   ;==>DetectStateAH



Func GetStateAH()

Local Const $PurpleBags = "res/marketplace_purplebags.bmp"

Local $x, $y, $IS

Local $auctionbid[5] = [1289, 340, 1315, 354, 0xB8B8B8] ;first button

Local $offsetbuy = 62 ;offset between buy-bid buttons

Local $SSN = 1, $FF



$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.")

$AH = False

EndIf



While $AH = True

SetGUIStatus("Marketplace is working")

Sleep(Random(400, 600))

MouseClick("left", 793, 775, 1, 1)

FFSnapShot(1275, 330, 1327, 860, $SSN)

$count = 0

For $j = 0 To 6 ; number of checks

$FF = FFColorCount($auctionbid[4], 10, True, $auctionbid[0], $auctionbid[1] + $offsetbuy * $j, $auctionbid[2], $auctionbid[3] + $offsetbuy * $j, $SSN)

If $FF > 5 Then

$count += 1

EndIf

Next

If $count >= 1 Then

Bid($auctionbid, $count)

EndIf



WEnd

EndFunc   ;==>GetStateAH



Func Bid($coords, $number)

Cr(@CRLF + $number)

For $i = 0 To $number - 1

MouseMove(Int($coords[0]), Int($coords[1]) + 62 * $i, 0)

Sleep(200)

MouseDown("left")

Sleep(200)

MouseUp("left")

Sleep(200)

CoSe("{ENTER}")

CoSe("{ENTER}")

Next

EndFunc   ;==>Bid
a simpler coder for ah to make it easy on ppl who wants to change or modify anything

Sent from my Redmi 4 using Tapatalk
ahmedwork is offline  
Thanks
1 User
Old   #471
 
elite*gold: 0
Join Date: Apr 2017
Posts: 33
Received Thanks: 3
wat can i do with this replace Func Marketplace code or just add them?

can you explane wat meane this code pls :

Func FastFindBidBuy($x, $y)
Local $Valid[2] = [0x979292, 0xB8B8B8]
Local $SSN = 1, $FF
Local $BidR[3] = [21, 12, 21]
Local $Buy[3] = [3, 12, 21]
Local $Bid[3] = [4, 12, 21]
Local $BuyOffset[3] = [78, 54, 62] ; x, y, height 7

i can change that to make marketplace work in fr client?
imedbox is offline  
Old   #472
 
elite*gold: 0
Join Date: Apr 2008
Posts: 451
Received Thanks: 137
Quote:
Originally Posted by imedbox View Post
wat can i do with this replace Func Marketplace code or just add them?

can you explane wat meane this code pls :

Func FastFindBidBuy($x, $y)
Local $Valid[2] = [0x979292, 0xB8B8B8]
Local $SSN = 1, $FF
Local $BidR[3] = [21, 12, 21]
Local $Buy[3] = [3, 12, 21]
Local $Bid[3] = [4, 12, 21]
Local $BuyOffset[3] = [78, 54, 62] ; x, y, height 7

i can change that to make marketplace work in fr client?
try the attached script, extract it inside ur current bot folder then use f5 to start the market place and btw it only works for single item
p.s resolution 1920*1080
Attached Files
File Type: zip CrayonCodeAH.zip (17.8 KB, 34 views)
ahmedwork is offline  
Thanks
2 Users
Old   #473
 
elite*gold: 0
Join Date: Apr 2017
Posts: 33
Received Thanks: 3
Quote:
Originally Posted by ahmedwork View Post
try the attached script, extract it inside ur current bot folder then use f5 to start the market place and btw it only works for single item
p.s resolution 1920*1080

ty loot of man it work 100%
imedbox is offline  
Old   #474
 
elite*gold: 0
Join Date: Apr 2013
Posts: 224
Received Thanks: 314
Quote:
Originally Posted by ahmedwork View Post
try the attached script, extract it inside ur current bot folder then use f5 to start the market place and btw it only works for single item
p.s resolution 1920*1080
I don't understand, how are you able to fix market place if the script use imagesearch ?
By the way, how can we add that our character have to dry everything ? also golden fish
†Deadly† is offline  
Old   #475
 
elite*gold: 0
Join Date: Apr 2017
Posts: 33
Received Thanks: 3
Quote:
Originally Posted by †Deadly† View Post
I don't understand, how are you able to fix market place if the script use imagesearch ?
By the way, how can we add that our character have to dry everything ? also golden fish
Tray this it for Fr Lang + AZERTY keyboard 1920/1080 and the market place work nice (ty to AH) ^^

CrayonCode_v0.20_1920_1080_For_FR_Client.rar
imedbox is offline  
Thanks
1 User
Old   #476
 
elite*gold: 0
Join Date: Apr 2008
Posts: 451
Received Thanks: 137
Quote:
Originally Posted by †Deadly† View Post
I don't understand, how are you able to fix market place if the script use imagesearch ?
By the way, how can we add that our character have to dry everything ? also golden fish
i'm only using imagesearch to know if ure on the correct window or not you can even remove that line if u want it's kinda useless and instead of using a specific color on a specific coords i'm counting a color on an area that's why it will work for most of the languages
ahmedwork is offline  
Thanks
1 User
Old   #477
 
elite*gold: 0
Join Date: Apr 2013
Posts: 224
Received Thanks: 314
Quote:
Originally Posted by ahmedwork View Post
i'm only using imagesearch to know if ure on the correct window or not you can even remove that line if u want it's kinda useless and instead of using a specific color on a specific coords i'm counting a color on an area that's why it will work for most of the languages
Thanks for answer,
And is there a way to dry gold fish too ? Max dry rarity is gold as I see
†Deadly† is offline  
Old   #478
 
elite*gold: 0
Join Date: Apr 2008
Posts: 451
Received Thanks: 137
Quote:
Originally Posted by †Deadly† View Post
Thanks for answer,
And is there a way to dry gold fish too ? Max dry rarity is gold as I see
the current bot is already drying golden fish no problem here
ahmedwork is offline  
Old   #479
 
elite*gold: 0
Join Date: Apr 2013
Posts: 224
Received Thanks: 314
Quote:
Originally Posted by ahmedwork View Post
the current bot is already drying golden fish no problem here
When I put max rarity golden fish, golden is in ? I tought he keep golden instead of Dry them
†Deadly† is offline  
Old   #480
 
elite*gold: 0
Join Date: Apr 2017
Posts: 108
Received Thanks: 189
Quote:
Originally Posted by †Deadly† View Post
When I put max rarity golden fish, golden is in ? I tought he keep golden instead of Dry them
For Looting there is the Min Rarity, which means pick up everything that is of equal or higher rarity.
For Drying it is Max Rarity, which means dry everything that is of equal or lower rarity.


CrayonCode is offline  
Thanks
1 User
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 +1. The time now is 17:01.


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

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