Locked Home » Forums » Legacy & Archived » Archived Content » Vanguard » VGExtreme Programs

VGExtreme Crafting Bot - Completed : VGExtreme Programs

Posted: September 8th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
I'm not sure if you have thought of this.. but have you tried doing a /follow on the NPC after you target him?

_________________
Use Search first, ask questions later!
Posted: September 8th, 2007
Total Posts:266 Joined:2007
Sky: It is giving you a file not found error most likely because you have not defined the correct path in the Logpath variable at the top of the script. Go to where you see Logpath = "and put here the path to the file"

the file you are looking for is VGLogDump.log, it is in the vgextreme1.13 folder.

Wyv: Actually, I have not tried to /follow because I just assumed you could not follow someone unless they were in your group. That is usually how it works, but if /follow works on NPC's that might be the solution. If /follow keeps you close enough to keep the window ipen :( Ill find out as soon as the UFC fight is over.
Posted: September 8th, 2007
Total Posts:266 Joined:2007
you cannot follow an NPC :((
Posted: September 9th, 2007
sky_genie
Thanks strabomeeks. It get past that part now. The next issue is when it finally gets to the table and starts work. This toon is a low level (4) outfitter and is picking work orders to suit fron the Finishing vendor. The script gets some wo's and runs over to the table and starts work. Stage one goes without an issue. Howerver, stage 2 and the rest bomb the script.

Error: Line 90, Char 12 :: Type mismatch: 'Crafting_StepName'

The offending line is:

If (Crafting_StepName(2) = "Solvent") Or (Crafting_StepName(2) = "Cleaner") Or (Crafting_StepName(2) = "Fuel") Or (Crafting_StepName(2) = "Oil") Then 'Utility

The step it is on is "Cleaner". If I manually do step 2 and start the script again for part 3, iot stops at the same line as in 2 above.

I was wondering if perhaps Sony changed some things or (more likely) I and my computer are out to lunch.

Thanks for your help.
Posted: September 9th, 2007
Total Posts:266 Joined:2007
interesting error, im going to start crafting with a toon of mine and see if its related to the fact that you are only level 4. Ill post findings in roughly 20 minutes.
Posted: September 9th, 2007
Total Posts:266 Joined:2007
ok, I ran it on a new outfitter from 3-6. I did not run into any script errors.

I did find that on "Prime" your station button, you will need to change it from using hotkey 2 to hotkey one because you do not have a second station button yet. Also, if your tool step comes before your utility step it will keep trying to use hotkey 3 and you do not have this tool button yet, so it will loop there. These problems are fixed around level 5 and 10 I think. Or you can just change the script so that instead of sending ^+- (for hotkey two) and ^+0 (for hotkey three) to VG it sends ^+= for hotkey one.

I never ran into a type mismatch error, that sounds like you accidentally changed the code somehow around that step. Did you maybe remove one of the quotes or parentheses? If you want you can copy and paste where you are getting the mismatch error and post it here and I will see what I can see.
Posted: September 10th, 2007
sky_genie
Thanks for the help, Strabomeeks. For the mismatch error, it passes through:
Sub Start_Crafting ()
and
Sub Craft_Stage_1()

It then hits:
Sub Craft_Stage_2() and dies on the first iteration of
Crafting_StepName(2)
on character 12 which to looks like the "_" character. Here is a full copy / paste:

Sub Craft_Stage_2()

If (Crafting_Stage = 2) Then
If (Crafting_StepHealth(2) < 100) And (Crafting_StepHealth(1) = 100) Then
If (Crafting_StepName(2) = "Solvent") Or (Crafting_StepName(2) = "Cleaner") Or (Crafting_StepName(2) = "Fuel") Or (Crafting_StepName(2) = "Oil") Then 'Utility
If (Crafting_Quality <26> 25) Then
VGsendText "^+="
sleep 2500
End If
ElseIf (Crafting_StepName(2) = "Sculpt") Or (Crafting_StepName(2) = "Smith") Or (Crafting_StepName(2) = "Form") Or (Crafting_StepName(2) = "Shape") Or (Crafting_StepName(2) = "Carve") Or (Crafting_StepName(2) = "Fashion") Or (Crafting_StepName(2) = "Develop") Or (Crafting_StepName(2) = "Tool") Or (Crafting_StepName(2) = "Fit") Or (Crafting_StepName(2) = "Size") Or (Crafting_StepName(2) = "Pattern") Then 'Tools 1
Tools
If (Crafting_Quality < 26) Then
VGsendText "^+0"
sleep 2500
End If

Thanks for all your help ans patience in this.
Posted: September 10th, 2007
Total Posts:266 Joined:2007
sky_genie wrote:Thanks for the help, Strabomeeks. For the mismatch error, it passes through:
Sub Start_Crafting ()
and
Sub Craft_Stage_1()

It then hits:
Sub Craft_Stage_2() and dies on the first iteration of
Crafting_StepName(2)
on character 12 which to looks like the "_" character. Here is a full copy / paste:

Sub Craft_Stage_2()

If (Crafting_Stage = 2) Then
If (Crafting_StepHealth(2) < 100) And (Crafting_StepHealth(1) = 100) Then
If (Crafting_StepName(2) = "Solvent") Or (Crafting_StepName(2) = "Cleaner") Or (Crafting_StepName(2) = "Fuel") Or (Crafting_StepName(2) = "Oil") Then 'Utility
If (Crafting_Quality <26> 25) Then
VGsendText "^+="
sleep 2500
End If
ElseIf (Crafting_StepName(2) = "Sculpt") Or (Crafting_StepName(2) = "Smith") Or (Crafting_StepName(2) = "Form") Or (Crafting_StepName(2) = "Shape") Or (Crafting_StepName(2) = "Carve") Or (Crafting_StepName(2) = "Fashion") Or (Crafting_StepName(2) = "Develop") Or (Crafting_StepName(2) = "Tool") Or (Crafting_StepName(2) = "Fit") Or (Crafting_StepName(2) = "Size") Or (Crafting_StepName(2) = "Pattern") Then 'Tools 1
Tools
If (Crafting_Quality < 26) Then
VGsendText "^+0"
sleep 2500
End If

Thanks for all your help ans patience in this.
There is something wrong with this right here, it is not what it should be.

If (Crafting_Quality <26> 25) Then

But regardless, I am uploading a new version in about 20 minutes, download it and see if that fixes the problem.
Posted: September 10th, 2007
Total Posts:266 Joined:2007
9-10-07: Added Refining for Blacksmith, Tailor, and Mineralogist. I need the names for the other classes just like I need them for finishing tasks. Also have a lot of code in there where I am working on buying new utilities, but it does nothing right now, dont mess with it until I get it working.
In order to use the refining, you will need to put the first name of the refining taskmaster in the variable WOpersonrefine, then define the waypoints to get to the refining taskmaster in the code towards the bottom in the sub MoveToWOrefine. Then before you run the script you either need to comment out one or the other of these.
MovetoWO
MovetoWOrefine
which can be found near the very top of the script. Whichever one you do not comment out will be the one that the script does.

Also fixed a problem where after changing tool belts or abandoning WO that was not complete, the script would stop if the logfile was empty. This should not happen anymore.
Posted: September 10th, 2007
crimsonsoul24
Somewhere at the top of the script it has a path for VGLogDump.log, change that to your exhume directory (ex: C:\Users\Namehere\Desktop\Exhume\VGLogDump.log) And it will work
sky_genie wrote:Hi. I haave been trying to make this thing work. Everytime I run it, it quits at:

Set objFile = objFSO.OpenTextFile(Logpath, ForReading)

The error in Exhume says:

Turning to Aru Greyfish
Error: Line 356, Char: ) :: Path not found
Error: Line 356, Char: ) :: Path not found
Failed to run script
End script

Note that Aru is the NPC that gives work orders. On the screen the bot searches and finds the NPC, opens the wo dialog, selects the top wo and dies...

Any help would be greatly appreciated. Also note that I am not a programmer (which should be obvious)
Thanks
Posted: September 10th, 2007
extremeshannon
This looks like what I have been looking for. Thanks for all the hard work everyone. I was wondering if I change my Resolution to the same as what you have for the script would I not have to change all the mouse pounts? If so what resolution do you have it set to. I am new to this and I am trying to figure it out so any help on helping me set it up in Vis Exch as a Armorsmith would be great.

Thanks alot
Posted: September 11th, 2007
Total Posts:266 Joined:2007
You could try setting your res to the same as mine, but you would also need all your windows placed exactly where mine are too. Not sure how that would work out for you but my resolution is:

1440 X 900

or you can go through and change all the X,Y for your particular setup. ACTool is a real easy thing to use to get this done. Just open it up, change back to VG, put your mouse where you want to get the X,Y for - alt+tab over and hit Cntrl+M. Then rinse and repeat for each loc.
Posted: September 11th, 2007
Total Posts:266 Joined:2007
I still need the finishing steps for:

Outfitter
Weaponsmith

and the Refining steps for:

Outfitter
Weaponsmith
Carpenter

Can someone get these for me?
Posted: September 11th, 2007
extremeshannon
Thanks for the reply. I am so happy there is a script like this. I am new to Scripts and games but do have a little programming background. Few things I am not sure of and not sure what I have to do make this work. If you could just let me know what has to be changed. I am working with a Tailor lvl 24 IN Vish Exch and he like to go around in Circles when running the Script. I have figure out how to change the mouse points. I have Change the Script so it knows I am a Tailor and he will run to Shere Click on Available WO's and Then goes to Current and Errors out.

Error: Line 390, Char:0 :: Path not found
Error: Line 390, Char:0 :: Path not found


1 other thing When I select the Work order I want to use and Select Begin on the Crafting Setup Window the Next Window Craftin Table set up Window moves up and to the left so the Begin button is in a different place.


Any help would be great.

Thanks
Posted: September 12th, 2007
ve_necro
Once again good work on this strabomeeks, I have been tweeking it a bit myself so anything I find I will send your way, trying to make it a little more interactual in the sence of how many times to loop, making it switch between finishing and refining etc. I did have an issue about the waypoints not being followed right a while back and forgot to post my fix. In the section where it moves back to the crafting table, I added an extra line to make it target and move to, here is my code so others can copy, doing it this way stopped the issues of it not moving to the table correctly or sometimes facing the wrong way. All you have to do is change the name to the table you wish to use, technically I could have written them all down and commented them out, but right now Im only focusing on my armour smith.

Code: Register to unlock hidden link

'This moves back to the Crafting Table
Sub MovetoCT()
    MoveTo -77120, 7158 
    'MoveTo -22991, -15936 'Near tree
    'MoveTo -23270, -18282 'Corner of building
    'MoveTo -27380, -17528 'Near WOrefine
    'MoveTo -25049, -17718 'Near forge
    'MoveTo -24837, -16575 'Sculpting Table
    'MoveTo -24334, -16901 'Forge
    'MoveTo -23398, -14484 'Fitting Table
    'MoveTo -23849, -17000 'Smelter
    'MoveTo -23556, -15612 'Shaping
    'MoveTo -23433, -16084 'Material
        VGSendCommand "/target  Blacksmith Forge"
        Sleep 2000
        MoveToMob getTarget
    Sleep 1000
    Start_Crafting
End Sub
Im crafting in HZ atm so no need for more than 1 waypoint, I know its likely to get caught there afk, but like I said before I am always near my screen to deal with tells etc.
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 2 guests
Locked