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.