Entering trader mode in a busy bazaar

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

morannon
a lesser mummy
a lesser mummy
Posts: 57
Joined: Sun Nov 03, 2002 3:50 pm

Entering trader mode in a busy bazaar

Post by morannon » Tue Dec 30, 2003 7:49 am

I got very annoyed today, when the bazaar had 550 people in trader mode already, so quickly knocked this up, and figured it may be useful to someone else :

Code: Select all

#event maxtrad "maximum number of traders"

Sub Main
  /declare mRunning global
  :mainloop
  /click left
  /varset mRunning 0
  /delay 20
  /doevents
  /if @mRunning==1 {
    /echo Not in trader mode. Retrying.
  } else {
    /echo Made trader mode. Ending.
    /endmacro
  }
  /goto :mainloop
/return

Sub Event_maxtrad
  /varset mRunning 1
  /return
It does assume your cursor is over the 'Begin Trader' button, left it running and 2 mins later I was in trader mode.

I couldnt find a way of seeing if you could tell if someone was in trader mode, else rather than use events, I'd have targetted self and checked for trader status -- if anyone knows a better method, please let me know !

Kaitain
a ghoul
a ghoul
Posts: 109
Joined: Fri Oct 10, 2003 1:49 pm

Post by Kaitain » Tue Dec 30, 2003 8:53 am

<deleted>
Last edited by Kaitain on Thu Apr 15, 2004 5:05 pm, edited 1 time in total.

battaile
Contributing Member
Contributing Member
Posts: 40
Joined: Tue Dec 09, 2003 10:55 am

Post by battaile » Wed Dec 31, 2003 12:44 pm

Cool, I'll be using this...just wanted to go to bed the other night and sat there trying to get my trader in for 20 minutes...argh...