Selling items

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

seancraft04
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sat Jun 05, 2004 11:58 pm

Selling items

Post by seancraft04 » 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 :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

Oid
a snow griffon
a snow griffon
Posts: 416
Joined: Thu Oct 17, 2002 3:26 am
Contact:

Post by Oid » Tue Jun 22, 2004 12:50 am

step 1, code tags.
Smokey the Lax says only you can prevent reproduction.

Oid
a snow griffon
a snow griffon
Posts: 416
Joined: Thu Oct 17, 2002 3:26 am
Contact:

Post by Oid » Tue Jun 22, 2004 12:50 am

step 2, define "isn't working"

Does it sell 1, does it not stop when there are no more, etc
Smokey the Lax says only you can prevent reproduction.

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Post by Goofmester1 » Tue Jun 22, 2004 1:47 am

Do you have a merchant window open?

seancraft04
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sat Jun 05, 2004 11:58 pm

Post by seancraft04 » Tue Jun 22, 2004 2:05 am

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

Oid
a snow griffon
a snow griffon
Posts: 416
Joined: Thu Oct 17, 2002 3:26 am
Contact:

Post by Oid » Tue Jun 22, 2004 3:20 am

Latest source? 20:1 thats your problem.
Smokey the Lax says only you can prevent reproduction.

seancraft04
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sat Jun 05, 2004 11:58 pm

Post by seancraft04 » Tue Jun 22, 2004 4:41 pm

it ended up being partly due to zip and the rest coding i figured it out tho thanks