Page 1 of 1

Selling items

Posted: Mon Jun 21, 2004 11:19 pm
by seancraft04
Ive been trying to find a good sell macro but can't find a working one, the last one i tried was this. I don't have any errors but for some reason it thinks i have nothing of the specific item to sell. I've got all my bags open and everything it requires and still isn't working. Could use some help thanks in advance

| - SellItem.mac -
|
| Usage: /macro SellItem "XXXXX"



Sub Main

/declare OldMoney int local
/declare NewMoney int local

/call Sell
/return

Sub Sell
/autoinv

:Finding
/if (${FindItemCount[${Param0}]}==0) /goto :Done
/itemnotify ${FindItem[${Param0}].InvSlot} leftmouseup

:WaitFind
/if (${Bool[${SelectedItem}]}==FALSE) /goto :WaitFind

:Selling
/delay 1s
/vardata OldMoney ${Me.Cash}
/shift /notify MerchantWnd MW_Sell_Button leftmouseup

:WaitSell
/vardata NewMoney $(Me.Cash}
/if (${NewMoney}==${OldMoney}) /goto :WaitSell
/goto :Finding

:Done
/echo No more to sell!!!
/endmacro
/return

Posted: Tue Jun 22, 2004 12:50 am
by Oid
step 1, code tags.

Posted: Tue Jun 22, 2004 12:50 am
by Oid
step 2, define "isn't working"

Does it sell 1, does it not stop when there are no more, etc

Posted: Tue Jun 22, 2004 1:47 am
by Goofmester1
Do you have a merchant window open?

Posted: Tue Jun 22, 2004 2:05 am
by seancraft04
The only thing i meant by not working was that it says it didn't have anything of that name to sell in the inventory while i actually did and yes i had the merchant window open

Posted: Tue Jun 22, 2004 3:20 am
by Oid
Latest source? 20:1 thats your problem.

Posted: Tue Jun 22, 2004 4:41 pm
by seancraft04
it ended up being partly due to zip and the rest coding i figured it out tho thanks