macro for selling all of a particular item to a vendor?

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

Kultar
decaying skeleton
decaying skeleton
Posts: 2
Joined: Thu Jul 01, 2004 11:37 pm

macro for selling all of a particular item to a vendor?

Post by Kultar » Thu Jul 01, 2004 11:39 pm

is there a way to sell all of a particular item to a vendor? i have no clue how to write one, i'm not too familiar with any of this. but anyone willing to help me with a macro?

GD
a snow griffon
a snow griffon
Posts: 353
Joined: Sat Jun 29, 2002 11:57 pm

Post by GD » Sat Jul 03, 2004 4:27 pm

That would be a good learning experience for you, so i'd suggest you take the time to write one.


It's much more gratifying making your own macro, rather than having people hand them out to you.
Opinions are like assholes, everyone has one, but most of them stink.

Space-Boy
a hill giant
a hill giant
Posts: 242
Joined: Wed Dec 04, 2002 12:53 pm
Contact:

Post by Space-Boy » Thu Jul 08, 2004 5:04 pm

wtf? is this or is this NOT the request depot? if it bothers you that people are asking for macros, dont come here, thats what this is for.


not my work but its great
usage /mac sellitem <name> ie /mac sellitem bottle

Code: Select all

Sub Main  

   /declare OldMoney int Outer    
   /declare NewMoney int Outer 
   /declare ItemToSell string Outer 
   /varset ItemToSell ${Param0}    

   /call Sell 
/return 

Sub Sell 
   /autoinv 

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

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

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

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

   :Done 
      /echo No more to sell!!!      
   /endmacro 
/return 
You have gotten better at Carpal Tunnel! (247)

Kultar
decaying skeleton
decaying skeleton
Posts: 2
Joined: Thu Jul 01, 2004 11:37 pm

Post by Kultar » Thu Jul 08, 2004 7:22 pm

thanks a lot. and GD, i would write one myself but some of us aren't well versed in C. Thanks again Space-Boy. Much appreciate it!

Epoch18
orc pawn
orc pawn
Posts: 16
Joined: Mon Sep 15, 2003 1:39 pm

Post by Epoch18 » Sun Jul 18, 2004 6:48 pm

I just used this macro, but all it seems to be doing is clicking on the specified item.... and that's it.

Suggestions?

zanomo
a hill giant
a hill giant
Posts: 285
Joined: Thu Jun 24, 2004 11:21 pm

Post by zanomo » Mon Jul 19, 2004 1:28 am

Increasing your selling delay might help. Try /delay 2s instead of 1s...

FrankJScott
naggy
naggy
Posts: 2349
Joined: Sun Feb 19, 2023 7:11 am

Useful Outdoor Clothing Website

Post by FrankJScott » Tue Oct 10, 2023 12:09 am

Please try Google before asking about Useful Outdoor Clothing Guide 9f252a1