Me.Merchandise

coolman

Active Member
I am writing an Autosell script . Can someone tell me how to determine the Quantity of Me.Merchandise (this is not eq2 Merchandise for broker)

After I sell no.1 item

Me.Merchandise[1]:Sell
then the no.2 becomes no.1 ,
Me.Merchandise[2]:Sell
actually sell the no.3 item.

so in Do ...while loop, it will just check and sell some of the items, not all of them.

Can I sell the item like in WoW, like this Inventorynobank[1,2,3...n]:sell
or like Inventorynobank[junk1,junk2,...junkn]:sell
 
Last edited:

Amadeus

The Maestro
Staff member
Something like this probably:
Code:
if ${Me.NumItemsICanSell} > 0
{
     do
     {
          Me.Merchandise[1]:Sell
          wait 5
     }
     while ${Me.NumItemsICanSell} > 0
}
Or...to be fancy (and this SHOULD work..though I can't test)
Code:
variable int i = 0
if ${Me.NumItemsICanSell} > 0
{
     do
     {
          i:Set[${Me.NumItemsICanSell}]
          Me.Merchandise[1]:Sell
          waitframe
          wait 100 ${i} > ${Me.NumItemsICanSell}
     }
     while ${Me.NumItemsICanSell} > 0
}
 
Top Bottom