Selling items
Posted: Mon Jun 21, 2004 11:19 pm
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
one
/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
one
/echo No more to sell!!!
/endmacro
/return
| - 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
/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
/echo No more to sell!!!
/endmacro
/return