Why won't this mac work?

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

Iceassassin
a lesser mummy
a lesser mummy
Posts: 49
Joined: Tue Nov 05, 2002 11:40 am

Why won't this mac work?

Post by Iceassassin » Sat Nov 09, 2002 9:40 pm

I was trying to create an automatic shouter for the bazaar! It wouldn't work :( It said something about timers.. Please help me! And can u tell me conversions from delay units to time?

| - Auction.mac -
|

#chat auction


Sub Main


/auction WTS Fungi Tunic

/delay 55
/return

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

Post by Oid » Sat Nov 09, 2002 10:20 pm

I was just going to point and laugh, but... you did try to help yourself so...

Code: Select all

| Auction.mac

Sub Main
:loop
/auction WTS Fungi Tunic
|55 second pause
/delay 550
/goto loop
/return

Catt
a lesser mummy
a lesser mummy
Posts: 76
Joined: Mon Sep 16, 2002 2:49 am

Post by Catt » Sun Nov 10, 2002 5:14 am

Good for macro writing practice, bad idea for (ab)use.

A better way would be to look for "WTB Fungi" and alert you when it appears. Give that a go, and if you need help figuring it post what you have and I'm sure I or others will help fix it.

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Post by Fippy » Sun Nov 10, 2002 6:02 am

You might want to use events however to beep when you get a tell or if somebody says WTB Fungi

Code: Select all

| Auction.mac

#chat tell
#chat auction
#chat shout
#chat ooc
#chat chat
#define ITEM "fungi"

sub main

:loop

   | Send auction line
   /auc WTS ITEM

   | Delay for 40 - 90 seconds
   /delay $calc(40+$rand(50))s

   | Go back to start
   /goto :loop

/return

sub event_chat

  |Beep if we get a tell
   /if "$p0"=="tell" /beep

  | If we see the word fungi in ooc, chat,tell or auction beep
   /if "$p2"~~"fungi" {
      /beep
   }
/return
Fippy

This is my girl. But Rizwank had her first :-)
[img]http://www.btinternet.com/~artanor/images/fairy_bounce09.gif[/img]

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

Post by Oid » Sun Nov 10, 2002 8:56 am

I'm still gonna steal your girl =p

Iceassassin
a lesser mummy
a lesser mummy
Posts: 49
Joined: Tue Nov 05, 2002 11:40 am

Thank you!

Post by Iceassassin » Sun Nov 10, 2002 10:14 am

Thanks for help guys... BTW will this get busted by GM?

Lurker_005
a lesser mummy
a lesser mummy
Posts: 51
Joined: Thu Oct 17, 2002 12:08 pm

Post by Lurker_005 » Sun Nov 10, 2002 5:32 pm

It could, Don't run it unattended! Probably the best is to do a long random delay on the WTS 60 to 180 seconds. And have it primarily looking for someone looking to buy one. Make it stop trying to sell if it gets a bite, and keep beeping you till you check out what is happening. I would also /mqlog the relivant messages so you can look there and see everything, rather than trying to find it in the chat windows.

Catt
a lesser mummy
a lesser mummy
Posts: 76
Joined: Mon Sep 16, 2002 2:49 am

Re: Thank you!

Post by Catt » Sun Nov 10, 2002 8:18 pm

Iceassassin wrote:Thanks for help guys... BTW will this get busted by GM?
Dare I say it, Hopefully.