crimsonsoul24 I have had that issue too, currently Im going through the code again to see where I may have changed something by mistake, although its not everytime it does it.
As regards the NPC moving away, yes I too am getting a little frusterated by it losing the window and clicking thin air hehe, but I have a semi solution for you, not a great one but it helps most of the time.
Code: Register to unlock hidden link
'This turns in any completed work orders and gets new ones.
Sub Turnin()
MoveToMob getTarget
Mouse.LMouseClick LFW_X, LFW_Y, 1, 1
Mouse.LMouseClick CT_X, CT_Y, 1, 1
Mouse.LMouseClick FWO_X, FWO_Y, 1, 1
Mouse.LMouseClick CB_X, CB_Y, 1, 1
VGSendText "^+="
Turninerror
MoveToMob getTarget
Mouse.LMouseClick FWO_X, FWO_Y, 1, 1
Mouse.LMouseClick CB_X, CB_Y, 1, 1
VGSendText "^+="
Turninerror
MoveToMob getTarget
Mouse.LMouseClick FWO_X, FWO_Y, 1, 1
Mouse.LMouseClick CB_X, CB_Y, 1, 1
VGSendText "^+="
Turninerror
MoveToMob getTarget
Mouse.LMouseClick AT_X, AT_Y, 1, 1
Mouse.LMouseClick FWO_X, FWO_Y, 1, 1
Do Until (Crafting_AvailableWorkOrderDifficulty = "")
MoveToMob getTarget
Sleep 1500
If (Crafting_AvailableWorkOrderDifficulty = "Difficulty: Easy") OR (Crafting_AvailableWorkOrderDifficulty = "Difficulty: Very Easy") Then 'You can decide wether or not you can handle harder WO's here
If (Crafting_AvailableWorkOrderSkill = "Skill: Mineralogy ") OR (Crafting_AvailableWorkOrderSkill = "Skill: Artificing ")Then 'This is where you set what work order skillset you desire
'If (Crafting_AvailableWorkOrderSkill = "Skill: Blacksmithing ") OR (Crafting_AvailableWorkOrderSkill = "Skill: Armor Smithing ")Then
'If (Crafting_AvailableWorkOrderSkill = "Skill: Tailoring ") OR (Crafting_AvailableWorkOrderSkill = "Skill: Outfitting ")Then
'If (Crafting_AvailableWorkOrderSkill = "Skill: Carpentry ") OR (Crafting_AvailableWorkOrderSkill = "Skill: Artificing ")Then
Mouse.LMouseClick CB_X, CB_Y, 1, 1
MoveToMob getTarget
Mouse.LMouseClick FWO_X, FWO_Y, 1, 1
Else
Mouse.LMouseClick DA_X, DA_Y, 1, 1
MoveToMob getTarget
Mouse.LMouseClick FWO_X, FWO_Y, 1, 1
End If
Else
Mouse.LMouseClick DA_X, DA_Y, 1, 1
Mouse.LMouseClick DA_X, DA_Y, 1, 1
Mouse.LMouseClick DA_X, DA_Y, 1, 1
Mouse.LMouseClick DA_X, DA_Y, 1, 1
Mouse.LMouseClick DA_X, DA_Y, 1, 1
MoveToMob getTarget
Mouse.LMouseClick FWO_X, FWO_Y, 1, 1
End If
Loop
MovetoCT
End Sub
Basically what that does for those who dont understand scripting is makes it scroll down 5 times when looking for a WO till it finds your target difficulty, then individual scrolls there after. Not exactly a hard thing to do, but it saves a little time and most of the time the NPC hasnt ran off before you get all 3.