Page 1 of 1

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

Posted: Thu Jul 01, 2004 11:39 pm
by Kultar
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?

Posted: Sat Jul 03, 2004 4:27 pm
by GD
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.

Posted: Thu Jul 08, 2004 5:04 pm
by Space-Boy
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 

Posted: Thu Jul 08, 2004 7:22 pm
by Kultar
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!

Posted: Sun Jul 18, 2004 6:48 pm
by Epoch18
I just used this macro, but all it seems to be doing is clicking on the specified item.... and that's it.

Suggestions?

Posted: Mon Jul 19, 2004 1:28 am
by zanomo
Increasing your selling delay might help. Try /delay 2s instead of 1s...

Useful Outdoor Clothing Website

Posted: Tue Oct 10, 2023 12:09 am
by FrankJScott
Please try Google before asking about Useful Outdoor Clothing Guide 9f252a1