Page 1 of 1

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

Posted: December 12th, 2018, 2:10 am
by DixonDT
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

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

Posted: December 13th, 2018, 2:23 pm
by Immortalbob
i believe salvage you gotta do without the material type....so you can only give all types at once, not just steel or mahogany...

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

Posted: December 13th, 2018, 2:42 pm
by Immortalbob
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...

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

Posted: December 13th, 2018, 6:53 pm
by DixonDT
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.

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

Posted: January 6th, 2019, 11:28 pm
by HarliQ

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.