vendor trash.inc REQUEST*

unknownerrors

New member
Joined
May 16, 2007
Messages
202
Reaction score
5
Points
0
Location
Las Veags NV, USA
Website
unknownerrors.net
i have made a few farming macro's now, i have the farming part down. but i leave my toon farming for so long my inventory gets full. so what i'd like to see is a inc file that will sell off all my vendor trash.. it should work some thing like.
Code:
#event Sell "#*#Item has dropped to the ground#*#"

sub Event_sell 
/delay 1s 
/target vendor of choice
/warp t 
/delay 1s 
/keypress back hold
/delay 1s 
/keypress back 
/face
/stick
/stick 10
/nomodkey /click right target
/delay 5s ${Window[MerchantWnd].Open}
/call vendortrash
/return

it should sell everything in packs 2-8 leaving the items in pack 1 alone, anything that doesn't sell should be destroyed.
 
Last edited:
might be me but I think you are missing part of your macro
 
thats just the part when my inventory is full and needs to be unloaded to a vendor.

the farming macro isn't ready for public use because its very personalized, and a few settings need to be tweaked so it can be used by other toons.
 
I was referring to your /call vendortrash
 
/call vendortrash
would be were it calls the inc file to sell off the trash. and get rid of the rest.


there is a macro found here that does what i'm looking for but its a macro, i need a inc file to be called from my farming macro's it would also be great if it used ninjaloot's ini file now that it supports a sell option.
 
Rather than wait until you drop something, I'd add a check for ${Me.FreeInventory}, and if it's 0, call the sell routine.

Here's how I would do it:
Code:
Sub SellStuff
/target ${Ini[SellStuff.ini,${Zone.ID},Vendor]}
/delay 3s ${Target.ID}==${Spawn[${Ini[SellStuff.ini,${Zone.ID},Vendor]}].ID}
/if (${Target.ID}!=${Spawn[${Ini[SellStuff.ini,${Zone.ID},Vendor]}].ID}) /return
/usemerch
/delay 4s ${Window[MerchantWnd].Open}
/if (!${Window[MerchantWnd].Open}) /return
/declare x int
/for x 1 to ${Ini[SellStuff.ini,List,Count]}
 /if (${FindItemCount[=${Ini[SellStuff.ini,List,${x}]}]}) {
  :sellLoop
  /itemnotify ${FindItem[=${Ini[SellStuff.ini,List,${x}]}].InvSlot} leftmouseup
  /delay 3s ${SelectedItem.InvSlot}==${FindItem[=${Ini[SellStuff.ini,List,${x}]}].InvSlot}
  /nomod /shift /notify MerchantWnd MW_Sell_Button leftmouseup
  /delay 3s !${SelectedItem.ID}
  /if (${FindItemCount[=${Ini[SellStuff.ini,List,${x}]}]}) /goto :sellLoop
 }
/next x
/nomod /notify MerchantWnd MW_Done_Button leftmouseup
/delay 3s !${Window[MerchantWnd].Open}
/squelch /target clear
/return

Just made that up in the text box, so it probably has a typo or two, but that's basically how I would do it.
 
you want to run sell routine before you hit 0 free inventory or you can run into issues with items on cursor.
 
Why not modify the sell.inc from Armysoldier's TS macros?
 
that'd be a great idea, but i haven't a clue on how to do that.

i can plan it out..
Code:
Sub Sell(string ItemToSell)
needs to be reading from loot.ini, all items = to sell.

aside from that, I don't think anything else needs to be changed.
 
Rather than wait until you drop something, I'd add a check for ${Me.FreeInventory}, and if it's 0, call the sell routine.

Here's how I would do it:
Code:
Sub SellStuff
/target ${Ini[SellStuff.ini,${Zone.ID},Vendor]}
/delay 3s ${Target.ID}==${Spawn[${Ini[SellStuff.ini,${Zone.ID},Vendor]}].ID}
/if (${Target.ID}!=${Spawn[${Ini[SellStuff.ini,${Zone.ID},Vendor]}].ID}) /return
/usemerch
/delay 4s ${Window[MerchantWnd].Open}
/if (!${Window[MerchantWnd].Open}) /return
/declare x int
/for x 1 to ${Ini[SellStuff.ini,List,Count]}
 /if (${FindItemCount[=${Ini[SellStuff.ini,List,${x}]}]}) {
  :sellLoop
  /itemnotify ${FindItem[=${Ini[SellStuff.ini,List,${x}]}].InvSlot} leftmouseup
  /delay 3s ${SelectedItem.InvSlot}==${FindItem[=${Ini[SellStuff.ini,List,${x}]}].InvSlot}
  /nomod /shift /notify MerchantWnd MW_Sell_Button leftmouseup
  /delay 3s !${SelectedItem.ID}
  /if (${FindItemCount[=${Ini[SellStuff.ini,List,${x}]}]}) /goto :sellLoop
 }
/next x
/nomod /notify MerchantWnd MW_Done_Button leftmouseup
/delay 3s !${Window[MerchantWnd].Open}
/squelch /target clear
/return

Just made that up in the text box, so it probably has a typo or two, but that's basically how I would do it.

what would SellStuff.ini look like?