Alatyami
NotAddicted.com Engineer (Retired)
- Joined
- Dec 21, 2004
- RedCents
- 804¢
In the macro request thread we received ....
And here is the answer! I took some of ArmySoldier's tradeskill macro pieces and merged them into a simple (very simple) macro that will sell off one item. I modified the method of opening and closing of packs because with the original I was loosing one Bottle of Milk per cycle due the the right mouse click notify. This version checks to make sure that it is a container first then right clicks.
To use this macro as is, you must edit the macro where it says "Bottle of Milk" with the item of your choice, and have the vendor that you would like to make a transaction with targeted. When you fire off the macro it will open all of your packs, select the item, sell them all to the vendor, close out you packs and inventory.
I will probably make a plugin version of this if I get some extra time on my hands.
-Alatyami
Wondering if there is anyone out still willing to right simple macro's....
I am looking for a macro that will simple sell a particular item to a vender until I run out of them. I would need a way to input the item to be sold or a line that could be modified for the item would work.
I am workin on my tradeskills and once I fill my bags with the item I am crafting I would like to be able to sell all back to vender without clicking the mouse a zillion times.
Thanks for any help.
And here is the answer! I took some of ArmySoldier's tradeskill macro pieces and merged them into a simple (very simple) macro that will sell off one item. I modified the method of opening and closing of packs because with the original I was loosing one Bottle of Milk per cycle due the the right mouse click notify. This version checks to make sure that it is a container first then right clicks.
To use this macro as is, you must edit the macro where it says "Bottle of Milk" with the item of your choice, and have the vendor that you would like to make a transaction with targeted. When you fire off the macro it will open all of your packs, select the item, sell them all to the vendor, close out you packs and inventory.
I will probably make a plugin version of this if I get some extra time on my hands.
Rich (BB code):
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| QuickSell.mac - Alatyami, NotAddicted.com
| Released: January 2, 2009 (v1.0)
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Description: This macro will sell a given item to the targeted vendor.
| You must target the vendor prior to using the macro. This was done so
| that you can simply append this to your macro as QuickSell.inc and use
| it within your macros.
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Usage:
| /mac quicksell
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Note: This macro is an extract of ArmySoldier's Tradeskill Macros. I
| change the looping method for opening and closing packs. The
| previous version would RM on everything and not check to see if it
| was a container or not.
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Sub Main
/call Sell "Bottle of Milk"
/return
Sub Sell(string ItemToSell)
/echo Selling off ${ItemToSell}
/nomodkey /click right target
/delay 5s ${Window[MerchantWnd].Open}
/if (${ItemToSell.Equal[NULL]}) /return
/call OpenPacks
:Finding
/if (${FindItemCount[=${ItemToSell}]}) {
/echo Selling off ${FindItemCount[=${ItemToSell}]} ${ItemToSell}
/nomodkey /itemnotify ${FindItem[=${ItemToSell}].InvSlot} leftmouseup
/if (${SelectedItem.ID}==${FindItem[=${ItemToSell}].ID}) {
/nomodkey /shift /notify MerchantWnd MW_Sell_Button leftmouseup
/delay 25
}
/goto :Finding
}
/echo ${FindItemCount[=${ItemToSell}]} ${ItemToSell} to sell.
/nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp
/call ClosePacks
/doevents
/return
Sub OpenPacks
/declare i int local 0
/if (!${Window[InventoryWindow].Open}) /nomodkey /keypress inventory
/delay 3s ${Window[InventoryWindow].Open}
/for i 0 to 8
/if (${InvSlot[Pack${i}].Item.Container} > 0 && !${Window[Pack${i}].Open}) /nomodkey /itemnotify pack${i} rightmouseup
/next i
/return
Sub ClosePacks
/declare i int local 0
/if (!${Window[InventoryWindow].Open}) /nomodkey /keypress inventory
/delay 3s ${Window[InventoryWindow].Open}
/for i 0 to 8
/if (${InvSlot[Pack${i}].Item.Container} > 0 && ${Window[Pack${i}].Open}) /nomodkey /itemnotify pack${i} rightmouseup
/next i
/if (${Window[InventoryWindow].Open}) /nomodkey /keypress inventory
/delay 3s !${Window[InventoryWindow].Open}
/return
-Alatyami

