yeah thats what i am trying to figure it out, i wanna stand in front of ghom instead of loop around him
yeah thats what i am trying to figure it out, i wanna stand in front of ghom instead of loop around him
Hey, first of all thank you for your fantastic contribution. I have been using this script for sometime, and have found it to be most satisfactory. I have around 500 successful runs so far on T3.
However, I am encountering issues with selling/salvaging items.
The character will go to my battle standard and open the edit screen instead of actually going to stash or vendors.
6/3/2014 6:04:35 PM Looting
6/3/2014 6:04:43 PM Start : BK Ghom Bot v20140528
6/3/2014 6:04:43 PM MaxRunTime : 14400000,18000000
6/3/2014 6:04:43 PM RestTime : 300000,600000
6/3/2014 6:04:43 PM Battle.net : D:\Battle.net\Battle.net Launcher.exe
6/3/2014 6:04:43 PM FightPosition : 1282,100
6/3/2014 6:04:43 PM KeyForceToMove : V,56
6/3/2014 6:04:43 PM KeyForceToStand: SHIFT,10
6/3/2014 6:04:44 PM Leave Game
6/3/2014 6:04:45 PM Leaving Game
6/3/2014 6:05:00 PM Set Quest
6/3/2014 6:05:02 PM Creating Game
6/3/2014 6:05:18 PM Check Inventory
6/3/2014 6:05:22 PM Stashing Legendary and Set Items
6/3/2014 6:05:27 PM Error: Could not open Stash
6/3/2014 6:05:27 PM Goto Keep Depths Level 3
6/3/2014 6:05:37 PM Error: Could not go to Keep Depths Level 3
Any help is appreciated. Thank you.
Edit: The second error presented is due to the battle standard screen being open, and covering the game.
Last edited by Saderzz; 06-03-2014 at 05:27 PM. Reason: clarification
FightPosition=1282,10
FightPositionTimer=1300
Are the things you want to modify.
Basically, Fightposition simply moves the mouse to point in that direction. (1282,10) is a coordinate a little to the right-of-center, almost at the top of the screen.
FightPositionTimer is the amount of time in milliseconds, it will walk towards the position.
This is extremely, TRIAL and ERROR unfortunately as there is no good means of forcing the bot to move to an exact "X,Y coordinate on the map"
What Toon are you playing? A melee? a Range?
For melee, you should also use MaxDistance variable (measurements in pixel not yards).
If bot is too far away, it will move towards Ghom (once is every 5 secodns).
Try this which I use on a Crusader with +22% movement speed
FightPosition=1292,280
FightPositionTimer=750
Last edited by burgaud; 06-03-2014 at 07:07 PM.
edit screen?
What is that?
To check inventory, BKBot does not send/press "i" key, but rather click on the Inventory icon:
Code:MouseClick("left",1183,1030,1,0) ;open backpackBy Battle Standard, you are referring to Banner?6/3/2014 6:04:35 PM Looting
6/3/2014 6:04:43 PM Start : BK Ghom Bot v20140528
6/3/2014 6:04:43 PM MaxRunTime : 14400000,18000000
6/3/2014 6:04:43 PM RestTime : 300000,600000
6/3/2014 6:04:43 PM Battle.net : D:\Battle.net\Battle.net Launcher.exe
6/3/2014 6:04:43 PM FightPosition : 1282,100
6/3/2014 6:04:43 PM KeyForceToMove : V,56
6/3/2014 6:04:43 PM KeyForceToStand: SHIFT,10
6/3/2014 6:04:44 PM Leave Game
6/3/2014 6:04:45 PM Leaving Game
6/3/2014 6:05:00 PM Set Quest
6/3/2014 6:05:02 PM Creating Game
6/3/2014 6:05:18 PM Check Inventory
6/3/2014 6:05:22 PM Stashing Legendary and Set Items
6/3/2014 6:05:27 PM Error: Could not open Stash
6/3/2014 6:05:27 PM Goto Keep Depths Level 3
6/3/2014 6:05:37 PM Error: Could not go to Keep Depths Level 3
Any help is appreciated. Thank you.
Edit: The second error presented is due to the battle standard screen being open, and covering the game.
Hmm... perhaps a mouse click problem...
When Bot enters a game, the mouse is circling around the center, this so happens to be where the "Banner" is also located at the time of joining, and when it tries to open the inventory, perhaps, it was not able to move mouse to that position and clicked right away (and so happened it clicked on the Banner)
Does this happen LOTS of time? (warrant a immediate fix)
Or just this once? (maybe just a latency issue)
Then again, I will modify the code to instead of using mouseclick, will use pressing on "I"
Last edited by burgaud; 06-03-2014 at 07:25 PM.
Thanks richard! most appreciated!
Heads up:
Upcoming version will enable you to:
1. use all 4 stash tabs in round robin manner. (it was an unfinished code as of released version)
2. bot 7 heroes, one at a time of course. ie, bot Hero1 for Y hours, then bot Hero2 for Y hours, then bot Hero3 for Y hours.....you can choose which heroes (or hero) to bot
Hey thanks for your response. Yes I am referring to the banner. It will open the banner edit screen instead of going to stash as intended.
This happens ONLY when there are 3 slots from full in my inventory. Its trying to ensure there is enough room to grab the next boss loot, realizes im almost full and attempts to stash/sell/salvage.
This is happening 100% of the time when inventory is full. If inventory is empty or not close to being full there is no problem. I have since set my script to only pick up legendaries and set items, and leave yellows/blues on the ground. This is currently the only way I can ensure the bot continues with kills.
For clarification:
100% of the time it will go to banner instead of stash when 4 slots from full in inventory. This has been tested about 30 times.
No errors other than when stash/salvage/sell is required.
I have ensured I am in the correct resolution, turned graphics way down to minimum, and also tried with fully accelerated graphics.
Edit: There is NO problem with opening and viewing characters immediate inventory. The issue occurs when it attempts to move to the stash/inventory.
Last edited by Saderzz; 06-03-2014 at 07:40 PM.
In other words, you need a immediate FIX "now".
Here is what you should do:
edit the BKBot.au3: look for this line:
remove that line!Code:MouseClick("left",1183,1030,1,0) ;open backpack
And change it with
it should press "I" instead of using mouse click.Code:Send("i") ;open backpack
Then let me know asap. I will be offline in a few minutes.
Wait...
Does it always OPEN the banner screen when it enters the game?
Do you see it opening the Backpack?
If I understand you just now, this is only happening, when the backpack is full! this implies that it is opening the backpack properly.
But it is not opening the stash! (my mistake for not understanding you the 1st time!)6/3/2014 6:05:22 PM Stashing Legendary and Set Items
6/3/2014 6:05:27 PM Error: Could not open Stash
Hmm.. will check why this is happening.
Must be a problem LOCATING the stash. Can yuo confirm it is NOT opening the stash?
Last edited by burgaud; 06-03-2014 at 08:03 PM.
100% confirmed it does NOT open stash I can see it "click" or attempt to move there, but the stash is never actually clicked. Instead it clicks the banner and opens the edit screen breaking the bot.
The inventory opens fine, and it knows its full. The only issue thus far is moving character TO stash, and stashing items!
Thanks for the reply.
On an unrelated note, I was also able to insert the following lines into the script and run without issue. I have since removed the "click" to open inventory, and now just uses I key instead without any issues.
@ Saderzz
OK! Understood you completely now!
Change this:
ToCode:MouseClick("left", 575, 240, 3, 0) ; Move and Open Stash
Before running bot, ensure you got items on the lower RIGHT corners (4 items) on your backpack (or put a 2 slot item above the Blood Shard currency symbol) , then run bot,Code:MouseMove(550, 200, 0) Sleep(5000) MouseClick("left", 550, 200, 1, 0) ; Move and Open Stash
It will run through its paces, create game, join game, check inventory (at this time it shuold detect FULL), and decides to stash
Be attentive and see where the MOUSE hovers
is it on the stash? Did the mouse turn into a Hand?
If so, then problem solved. -> remove that lengthly Sleep(5000) and you are good to go.
if not on stash, then you will need to redo those coordinates (550, 200). I suggest doing a screen shot, and check the coordinate
BTW. When it joins a newly created game, did you include any code to make bot MOVE? if so, that would screw up the locations
Last edited by burgaud; 06-03-2014 at 08:20 PM.
No modifications have been made for movement. When the game joins, checks inventory and realized I am full, it will attempt to click stash, but clicks just before and ends up clicking banner instead. It looks like either it does not have a long enough delay, or simply the coordinates its trying to pick are incorrect, causing it to go to banner instead.
Its either clicking too early before it highlights stash, or its clicking halfway between banner and stash.
I have included the changes recommended. I do the delay for mouse click, and it is NO LONGER clicking on the banner.
It is now clicking just below Cain's ID book next to stash. Seems the error is the coordinates its being told to click!
I can check a screenshot and try to get the proper coordinates so the stash is clicked. I do see there was one other user in this forum that reported the same problem. Assuming I can get the correct coordinates, I should be able to fix this and post here any progress.
Thank you once again Burgaud.
Can you post a screen shot just after joining the game? (upload here are ownedcore as against at imageshack which modifies uploaded pictures)
I would like to know if we have a different screen.
ie, the coords i use are based on what I am getting. perhaps, each machine/paragon have different spawn position?
perhaps in next release, I would use an auto-search algo instead:
ie, move the mouse around until it sees the word "Stash" (much the same way as the Create Game Quest List auto search algo is doing)