I only have fletching station, sewing machine and the smithing press to test with. I am assuming the other stations have the same description:
"Uses Remaining:" and then the number at the end of the description when you hover over with the mouse.
So for the Crisis Craft and Fill Spellbook script, the changes would happen in:
MWCraft
(set some variables here like the TYPE for the craft station)
This is the focal point where the logic would have to be changed.
I would do a fall back to the crafting tool (the script keeps 2 in your main backpack... which is acceptable), in the event that the crafting station is out of charges.
Maybe a new script idea is born from a script to replenish crafting stations until full...
Here is up the point where the change is required.
This routine would need to be modified to first validate the crafting station and how many charges are left on it.
I would add a variable:
set !ToolStationScribe OMIC
Other types to be added would be for each of the craft skills, but this is a scribe only script.
Other scripts that use this MWCraft routine would benefit from adding more variables for the other crafting stations:
set !ToolStationAlchemy TTHC
set !ToolStationFletching JGHC
set !ToolStationBlacksmithing LQGC
set !ToolStationTailoring BJGC
set !ToolStationTinkering ANJC
There is possibly a different type for the other orientation of the various stations. I do not have that many vet rewards to choose to setup a complete craft area with all the stations, so I would probably ask for you help on the ones you already have.
; Crafting Stuff
Sub MWCraft
; Gosub Craft (Tool) (Type) (Category) (Page) (Selection)
Namespace Push
Namespace Local Mwinc_Craft
set !Type N/A
set !Smelt False
set !MakeLast False
set !Enhance False
set !Craftmenu 530_497
set !Toolfletching UFG
set !Tooltailoring HAG
set !Toolalchemy RQF
set !Tooltinkering JTL
set !Toolblacksmithing OBG_FBG_TLH
set !Toolcooking OGG_DND_BCG
set !Toolcarpentry BIG_AIG_EGG_AGG_ZHG_CGG_CIG_IGG_WFG_KGG
set !ToolScribe PBG
set !ToolStationScribe OMIC
set !ToolStation !ToolStation . %1
set !Tool !Tool . %1
set !N_Variable %0
if %2 <> MakeLast && %2 <> Smelt && %3 <> Enhance
{
set !Type %2
set !Category %3
set !Page %4 - 1
set !Selection %5
}
if %2 = Smelt
{
set !Smelt True
set !Item %3
}
if %2 = Makelast
set !MakeLast True
if %3 = Enhance
{
set !Enhance True
set !Item %4
}
Finditem !ToolStation G_2
if #findcnt > 0
{
event property #findid
wait 5
; here pick off uses remaining number using str commands on #property or need to find a sub that does that...
; so we are going to use a new made up variable called %number_of_uses to hold that value
event property #findid
wait 5
str pos #property remaining:
set %left #strres + 11
str len #property
set %length #strres - %left
str mid #property %left %length
set %number_of_uses #strres
if %number_of_uses < 1
{
finditem !Tool C_ , #backpackid
if #findcnt < 1
{
display Out Of %1 Tools
halt
}
}
if #contsize = !Craftmenu
{
if !Last_Tool <> !Tool
{
gosub Click_Offset 50 50 R
wait 20
}
}
for #Findindex 1 #Findcnt
{
if #Findcol = 0
Break
}
if #findcol <> 0
{
display Out Of %1 Tools
halt
}
CheckScribe
(add a check for charges on the crafting station)
Even without the test for charges on the crafting station here, it would make 2 tools to sit in the backpack of the character, which is a good fall back. The primary will be to use the crafting station and the secondary would be to use the tool in backpack.
If you do not have tinkering on the character, then it will fail and CheckScribe would need the verification like what was added in MWCraft.
So that is an example on how to modify one of those to handle using the station (writing desk - in this case).
It needs some decisions and debugging/testing, but that is the idea.
If you need more assistance, I can play with and test later in the week.
To really test this out and be useful in all situations, there is probably a different orientation for each of the rewards that would have to be added to the Types above.