Locked Home » Forums » Legacy & Archived » Archived Content » Vanguard » Vanguard Premium Discussions

Crafting Bot : Vanguard Premium Discussions

Posted: August 29th, 2007
Total Posts:266 Joined:2007
Ok, so I am working on a crafting bot, but no matter how well I get it working I keep running into the same wall. I cannot for the life of me figure out how to determine what order the events come in.

One workorder will have
Stage 1
Board

Stage 2
Vice

Stage 3
Fashion
Cleaner

Stage 4
Finish

But the next one has
Stage 1
Board

Stage 2
Cleaner

Stage 3
Vice
Fashion

Stage 4
Finish

So basically I have spent many hours doing basic scripts to see what I can get returned on functions and I cant find anything that works. I have tried:

'Function Crafting_StepHealth(step)
'Function Crafting_Stage
'Function Crafting_CurrentStageHealth
'Function Crafting_RecipeSectionName
'Function Crafting_RecipeDescription
'Function Crafting_RecipeName
'Function Crafting_ActionDescription(step)
'Function Crafting_RemedyDescription(step)
'Function Crafting_ToolTipDescription
'Function Crafting_ToolTipName
'Function Crafting_ActionName(step)

and on most of these I cannot get anything useful at all to return. I thought for sure that 'Function Crafting_ActionName(step) would be the way to go, but it either returns nothing at all or a series of ?????!??!?!?! which I have no idea what that means. As it is right now, I have to have 4 different macros it can run and pick which one to run based on the setup of the work order, in which case Im not real sure how much time I am really saving.

Does anyone have any insight into how I could get a return on anything useful. Would love to get a good working crafting bot going that can grab 3 workorders, run to the table, craft them out to at least a C grade, run back and turn them in, rinse and repeat.
Posted: August 29th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
You can get the ActionName which will return the name of the action that you can do.

Ie, type in /craftingselectstep 3
It will switch to (for instance) Fashion.
The Fashion, lets say has 3 actions. They are:
Fashion, Steadfast Fashion, and Slight Etching.

Once you have selected a crafting step, you can call the scripting api: Crafting.ActionName(xx) and it will return the name (ie steadfast fashion). You pass it in the # of the action you are interested in.

This way, you can get a ActionCount, and loop through all of the actions and get out their names. The best way is to build into your script what each action does.. Ie, Steadfast Fashion will Progress Low, Quality Low, and Cost 100.

You can then determine which of your available options you wish to use.

Just be SURE you have entered a /craftingselectstep XX so that it populates each action struct internally. If you dont, actionname will return garbage or a null string.

Now with all of that said.. I went ahead and added Crafting.StepName(xx) where xx is the # of the step you are interested in. Ie step 1 is Board, step2 = Vice, etc.



You may need to update the VGExtreme.exe if it is not returning correct values. Ie, delete everything but UpdateVGExtreme.exe and let it grab all new files.

_________________
Use Search first, ask questions later!
Posted: August 30th, 2007
Total Posts:266 Joined:2007
awesome, will get back to work on it today.
Posted: August 30th, 2007
Total Posts:266 Joined:2007
Crafting.StepName(xx) is working nicely for determining what step I am on. Now my next question is, what kind of function could I use to get information out of the righthand pane of the workorder person. So that when the bot runs back to the workorder giver and turns in the 3 you just did, I can put some kind of control in to make sure it does not grab weaponsmith orders if you are an armorsmith.

The information that would be useful is Difficulty and Skill, the rest doesnt really matter.
Posted: August 31st, 2007
sohocuba25
pretty sure you can only grab whatever you do ie: armor or weapon
Posted: August 31st, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
You can always dump out the tooltip, and hover the mouse over what you are looknig for. I have an API also for recipe description once you get the name from the tooltip. But I think soho is right. You can only get the ones you can do.

_________________
Use Search first, ask questions later!
Posted: September 1st, 2007
Total Posts:266 Joined:2007
The only problem is, when you have the WO screen up, there are no tooltips. So there is not a way right now to before you take the WO what the difficulty or skill is. Currently I could take the work order, run to the table, start to craft it, then call the Crafting_RecipeDescription function, see if it returns what I want it to. Then if it doesnt I would have to have the script abandon the WO, and go get another one. The problem being, once you abandon the WO it would show up back on the list and the script would end up getting it again.

As for the WO person only offering what is within your spec, maybe once you get to a certain level you can only get the ones for your spec, but of the 3 toons I am testing the program on, two are under level 20 crafting. And when your under level 20 the WO person has stuff for both specs and its up to you to make sure you dont get the wrong things.
Posted: September 1st, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
Ok, what would you like then?

I have to admit that I dont craft, but I can pretty much get anything out of the game that you need.

Just tell me what to look for and I can try to get it coded.

Please be as specific as you can as to what you are seeing on the screen and what you would like to be able to call via a API.

_________________
Use Search first, ask questions later!
Posted: September 1st, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
Actually, I took a look.

Here is what I'm fixing to add to VGExtreme:

crafting.AvailableWorkOrderName
crafting.AvailableWorkOrderDescription
crafting.AvailableWorkOrderDifficulty
crafting.AvailableWorkOrderSkill
crafting.AvailableWorkOrderNeededItems

It will return out what is in the right side of the pane when you click on a available work order before you accept it.

I think that is everything you are wanting?

if there is more, let me know. Eta is 1 day to push this out.

_________________
Use Search first, ask questions later!
Posted: September 1st, 2007
Total Posts:266 Joined:2007
that is exactly what I need, your the man wyvernx
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 4 guests
Locked