Here's a crafting function to craft any item by name. I will add it to the bot one day but I thought it would be a good idea to start it as a userfunction for now so I can iron out the bugs and respond to user feedback.
Crafting an item
Requires you to be near the corresponding crafting tools.
Syntax:
craftItem ( _itemNameOrGUID [, _itemNumber] )
Arguments:
_itemNameOrGUID - The name of the item, or part of it, you want to craft. Or the GUID of the item. The GUID is the id of the recipe.
_itemNumber - The number you want to create. If equal to "all", it will create the maximum possible of that item. (optional) If omitted it will create only 1.
Note: If "all" is used, it will create all items that match the name eg. "Timber" will create all timbers. If a number is specified then it will only create the first item that matches.
Finding an item to craft
Should rarely be needed because you can check your inventory to see if you are ready to craft but I thought I'd throw it in anyway.
Search and create by GUID. That's the id of the recipe.
"all" now creates all items that match the search name. If a number is specified then it will create that many of only the first item that matches the name. eg.
will create all timber ie. "Ash Timber", "Chime Wood Timber", "Willow Timber", etc.
Other minor tweaks.
I think this is ready for addition to the bot so I'll add it in a couple of days if no one sees any bugs in this version.
Edit: Here's an example file you can use to turn all your harvested resources (wood, herbs and ore) to green resources in Logar. It starts at Matt Sorrun, converts all the resources to green then ends back near Matt Sorrun and goes to sleep.
Awsome!! I wish I'd seen this earlier. I spent a couple of hours figuring out how to extract recipes from the recipe book and using the CreateItemCraft function to make my own. Has this been added to the bot? Can I just use the craftItem() function from the bot now or do I need to download the addon?
Just found it and I love it! Always hated doing the crafting. For other german guys: in Logarcraft.xml you need to replace the names "Bundle" -> "ndel" [don't know if "bündel" works probably not?] / "Wood" -> "holz". Maybe this is obvious, but maybe it helps someone.
You can set up a house with all of the crafting processor stuff, I know a few houses on my server I can visit if I wanted like this. So no movement and you can craft anything or refine matts.
Just a question since function findItemToCraft(_itemNameOrGUID) uses find.string could you use findItemToCraft("") to find all
I know most of the in game functions I have used you can use "" instead of a name like "Iron Ore" and it will do the function for anything it can.
Remember no matter you do in life to always have a little fun while you are at it
The only problem with that is, if they also have tailoring, carpentry, armorcrafting recipes etc, I think it would produce them too. Of course if they only have mining, woodworking and herbalism tools in their house then that should work but otherwise I would just stick with using multiple commands.
I'd like to contribute my waypoint file, I really like this craftitem feature. I bought the 3 main crafting apparatus and put them in the house of an alt, so, in order to use that waypoint you should do the same or copy whatever you like.
Note: first four craftitem specifications are for german client. Apart from that it's set to produce the most valuable version of the resource and it's set to produce "Strong Stimulant" in the end as it's quite expensive on my server (Starkes Anregungsmittel). Enjoy