sellitem.macro

Macro depository for macros written before the user variable changes that broke all of them.

Moderator: MacroQuest Developers

kndzakndza
orc pawn
orc pawn
Posts: 12
Joined: Wed Aug 21, 2002 2:59 am

sellitem.macro

Post by kndzakndza » Wed Aug 21, 2002 3:18 am

I have a question,
I am trying to ues the /macro sellitem that came with the trial, but cant quite figure it out. I know it is right in front of me and I can't see it, I want to be able to click on the merchant then sell the "bottle" to him and sell all the "bottles" until my backpacks are empty, am I doing this right?
If not could someone maybe help :( where it says (name) do i put the vendors name?
when i did it said could not find null ...
/emo pulls out hair




Code: Select all

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

#include routines.mac

Sub Main
   /varset v1 "$cursor(name)"
   /click left auto
   /click right target
   /delay 5
   /sendkey down shift
   :Selling
      /finditem "$v1"
      /if $find()==FALSE /goto :Done
      /click left merchant sell
      /delay 2
   /goto :Selling

   :done
   /sendkey up shift
   /press esc
/return

User avatar
RPZip
a lesser mummy
a lesser mummy
Posts: 63
Joined: Sun Aug 11, 2002 11:31 pm

Post by RPZip » Wed Aug 21, 2002 10:39 am

A better way to do it would to be...

Code: Select all

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

#include routines.mac 

Sub Main 
   /varset v1 "$cursor(name)" 
   /click left auto 
   /press u
   /press u
   /press u
   /press u
   /press u
   /sendkey down shift 
   :Selling 
      /finditem "$v1" 
      /if $find()==FALSE /goto :Done 
      /click left merchant sell 
      /delay 2 
   /goto :Selling 

   :done 
   /sendkey up shift 
   /press esc 
/return

kndzakndza
orc pawn
orc pawn
Posts: 12
Joined: Wed Aug 21, 2002 2:59 am

Post by kndzakndza » Wed Aug 21, 2002 4:45 pm

:) :)

Thanks !
it is working now :wink: