Locked Home » Forums » Legacy & Archived » Archived Content » Vanguard » VGExtreme Programs

VGExtreme Crafting Bot - Completed : VGExtreme Programs

Posted: October 10th, 2007
Total Posts:266 Joined:2007
Im pretty sure I already answered that but Ill give it another answer anyway. Yes, code could be written to stop the bot when you run out of utilities, I have not written that code because I already have the code set to do something else when you run out of utilities but it wont work till a Vendor Tooltips API gets completed.
Posted: October 10th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
And for all you other people.. that was a subtle poke at me.. hehe.

Yes I havnt forgotten. Just been dealing with RL problems this past 2 weeks.

_________________
Use Search first, ask questions later!
Posted: October 11th, 2007
bashes
stuarcl wrote:Alright, I'm having an issue so that whenever I'm in the middle of crafting and I run out of a utility, it just keeps trying to do the crafting action forever. Is there a way to cancel out in that instance?
Also if your just running out cause you used more then the whole stack while in that session you could allways have it add more utilities so you dont run out by adding like /additem Solvant as an example on the proper hotkey you have to do that then instead of just loading the norm you will load extra. and until the api is made you can always run around with 32 slot bags carrying only your utilities which will hold you off for the better part of a Day !
Posted: October 11th, 2007
stuarcl
Well I leave it running while I'm at work and alot of times, I'll come back to an open crafting session, with the bot attempting to do the Emery(just an example) step for no telling how long without canceling out or anything because it used up the last of the emery while in that step. Just wondered if there was an easy line of code to add to quit out of the game or something until the new api is ready.
Posted: October 12th, 2007
acidxian
stuarcl wrote:Well I leave it running while I'm at work and alot of times, I'll come back to an open crafting session, with the bot attempting to do the Emery(just an example) step for no telling how long without canceling out or anything because it used up the last of the emery while in that step. Just wondered if there was an easy line of code to add to quit out of the game or something until the new api is ready.
You have to use the Errors sub in yur VGCraftingBot.vbs file. Do something like the following:

intMatch = InStr(strSearchString, "don't have enough of that resource")
if intMatch > 0 then
VGSendCommand "/camp"
Sleep 30000
end if

Bear in mind I am not in front of a comp that can tell you what the actual search parameters are for log file. I've tinkered with the CraftingBot enough to make it do the following:
1. Skip "bonus" comps.
2. Kill comps until they are gone.
3. Replenish out of stock crafting mats.

I used this one until I got the replenishing mats script completed.
Posted: October 12th, 2007
stuarcl
I figured something out thanks. Here's something I added for normal recipes if anyone cares. I used it on the quest items "Practice Select Planks" for the caravel quest so I wouldn't have to sit there and do em all. It could be used for any mass quantity produced item though.

In the CraftingBot script I added the following variable between the two lines that are already present

WOpersonrefine = "namehere"
'Recipe_Type = "Leveling"
Recipe_type = "+'Practice Select Plank+'"
CQ = 25

Please note, 'Leveling is what I use for the default crafting bot to do with workorders and such. For a recipe name, I used the second Recipe_Type "+'Practice Select Plank+'" You have to put the +' to make quotes in the game

In the vginclude script I changed to the following

If Crafting_State = 4 Then
If Recipe_Type = "Leveling"
Mouse.LMouseClick RL_X, RL_Y, 1, 1
Mouse.LMouseClick WO_X, WO_Y, 1, 1
Else
VGSendCommand "/RefineSetRecipe " Recipe_Type
End If
Mouse.LMouseClick OK_X, OK_Y, 1, 1
sleep 1000
VGsendText HK7
sleep 1000
Mouse.LMouseClick OK_X, OK_Y, 1, 1
sleep 2000
End If

The above should set the recipe you want and assuming you have your bot set up the way you want, it will give you the preferred quality.

I made 45 practice planks(enough for all 3 continental quests) in about 10 minutes using this. Obviously it could be set up for any mass refined product.

Please note though, I am writing this from memory from work so it may not be completely right. But it's in that same format.

Hope this helps somepeople.
Posted: October 13th, 2007
Total Posts:266 Joined:2007
hehe wyv :P

Also note with the crafting bot, anything I add from here on out will have to be tested by others just to see if it works, I closed my vanguard account. Theres just not enough to do in the game, but Ill still try to support the bot best I can.
Posted: October 16th, 2007
drivenva
Strabo,
Sorry to hear you are bored with the game. I am just going to start trying out your bot with my 19 leatherworker. Did you still need anything from this profession as far as step names go?
Posted: October 19th, 2007
xxdeepestbluexx
Hi all, great script and I've managed to get it to create items but I'm having a bit of trouble when it comes to end of the crafting session.

It seems when crafting is complete and Vanguard closes the crafting table and bringing up the loot table, the script is already trying to start a new recipe. The result is that the script clicks to select a receipe when the the window hasn't had a chance to pop up yet. The script the goes to click cancel, and runs to get another work order.

Is there a sleep command I need to pop in somewhere?

Let me know if this is not clear - Been using the script for just 3 days. =)
Posted: October 20th, 2007
rmyers70
No clue what I am doing wrong, but when a Comp pops it moves the curser way too high up for where the comp area is. I don't see anywhere where you can put the cords either. I'm running in 1024X768 in Window Mode....[/code]
Posted: October 20th, 2007
stuarcl
the comps set up is designed for the default ui. there is an errors routine that sets the place to click as an offset of the toolbags. you'd have to change that if you're using a different ui.
Posted: October 21st, 2007
stupidhead64
Is it possible to add a timed event? And if so, how? I hate harvesting, so I want to set an even every few hours or so to send a message to the auction channel saying like "Paying 2g for stack of soandso please send cod"
Posted: October 22nd, 2007
yizzer
Every so often I get this error:

Code: Register to unlock hidden link

Error: Line: 184, Char:4 :: Permission denied
Which is this line:

Code: Register to unlock hidden link

Set objFile = objFSO.OpenTextFile(Logpath, ForWriting)
The log file is setup in the script, it does exist, and there is some stuff inside it. So apparently it isn't always erroring when trying to write to it. Every time I've run into this I've either ran out of a component, or had the wrong toolbelt equipped thus the "missing tool" error.

Thanks.
Posted: October 23rd, 2007
stupidhead64
yizzer wrote:Every so often I get this error:

Code: Register to unlock hidden link

Error: Line: 184, Char:4 :: Permission denied
Which is this line:

Code: Register to unlock hidden link

Set objFile = objFSO.OpenTextFile(Logpath, ForWriting)
The log file is setup in the script, it does exist, and there is some stuff inside it. So apparently it isn't always erroring when trying to write to it. Every time I've run into this I've either ran out of a component, or had the wrong toolbelt equipped thus the "missing tool" error.

Thanks.
I get that objFSO. logpath error thing all the time. Im logged in as admin.
Posted: October 24th, 2007
Total Posts:266 Joined:2007
your getting the error when YOU try to write it, theres stuff in the file because Vanguard writes to it, its basically a log file for vanguard - everything that shows in your chat will be in that file. Your error is coming up when you try to clear whats in there. Its a problem somewhere on your end, with your permissions or whatever else.
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 1 guest
Locked