Bob!RynthidZerzelikyrAyanAerlintheNeftetgearknightsdarkisleSanctuary

Help getting a Meta to Select or Give a bag of salvage

Unofficial support for the creating and editing of metas.
DixonDT
Posts: 15

Help getting a Meta to Select or Give a bag of salvage

Post#1 » December 12th, 2018, 2:10 am

Hey! Another noob question I hope can be answered here.

I'm trying to create a meta to auto mule my bags of full salvage. I was able to use the line /vt mexec trytoselect[wobjectfindininventorybyname[ALL OBJECTS BESIDES SALVAGE LOL]] with success.. But I can't get it to select bags of salvage, and i've tried just about every combination I could think of with the wording of it.

I would be happy to be able to select them, and then issue a command to hit "G" (My "Give selected item to target" key) Because I felt it would be easier than coding the Vtank line for give item, But if someone wants to explain that method, I'd be so happy.

Either way, Thank you all for the help, and please forgive me for all the noob questions!

-Vinny
0 x

User avatar
Immortalbob
Site Admin
Posts: 603
Contact:

Re: Help getting a Meta to Select or Give a bag of salvage

Post#2 » December 13th, 2018, 2:23 pm

i believe salvage you gotta do without the material type....so you can only give all types at once, not just steel or mahogany...
1 x
Immortalbob of MT

User avatar
Immortalbob
Site Admin
Posts: 603
Contact:

Re: Help getting a Meta to Select or Give a bag of salvage

Post#3 » December 13th, 2018, 2:42 pm

nevermind, i found a solution

expression:

Code: Select all

actiontrygiveitem[wobjectfindininventorybytemplatetype[20988], wobjectfindnearestbynameandobjectclass[24, name of character]]


20988 is the "Type" id for mahogany, you can find others by doing a /vt propertydump on them.

I know this doesn't solve giving only full bags...
1 x
Immortalbob of MT

DixonDT
Posts: 15

Re: Help getting a Meta to Select or Give a bag of salvage

Post#4 » December 13th, 2018, 6:53 pm

Thanks buddy!

I found a solution using MagTools, but it required creating two different metas. One for the Mule, and one for the char muling.

Set the main macro to /tell the mule "SALVAGE" triggering a "set state" on the mule with a "Seconds in state >= 15"

After telling the mule "SALVAGE" I used /mt give Salvage to MULE NAME

I couldn't find a way to have it switch states after it ran out of bags of salvage, Since I had no way of using "Item in inventory <=" because I couldn't find a way to have Vtank identify each bag, So it just goes into the MT "Unknown Command!" when it runs out, and after 15 seconds, the Mule char does a /r MOVE ON, Triggering a Meta State switch on the main macro. After that, it was easy, because the only other thing I usually mule are Peas and Little Green Seeds, both of which Vtank can Identify and use the <= command.

Anyway, Just wanted to share this in case someone else wanted to try it.

Thanks for all the help IB!

EDIT: I also have the mule char set up with a loot profile to auto salvage all the partial bags the Main Char gives it. It's not perfect, but its easy enough to unload the full bags and leave the partials on the mule manually, once i have a good number of them.
0 x

HarliQ
Posts: 5

Re: Help getting a Meta to Select or Give a bag of salvage

Post#5 » January 6th, 2019, 11:28 pm

Code: Select all

wobjectfindininventorybytemplatetype[20988]==7

That will see if you have any in your inventory. Use that in a checkinventory state, and if true send it to a give state using the command IB said, then return it to checkinventory state. That will give all of your salvage.
0 x

Return to “VT: Meta Support”

Who is online

Users browsing this forum: No registered users and 0 guests

cron

Login  •  Register