Post your completed (working) macros here. Only for macros using MQ2Data syntax!
Moderator: MacroQuest Developers
-
MoonRaverX
- a ghoul

- Posts: 91
- Joined: Tue Dec 16, 2003 5:09 pm
- Location: Tampa, Fl
Post
by MoonRaverX » Thu Jun 03, 2004 6:09 am
Ok, everyone has such elaborate forage macros, though I'd release a nice, simple one that you can run anytime, and it never loses anything. You're required only to have free inventory space.
Code: Select all
| Name: KISS Forage
| File: forage.mac
| Ver : 1.0 Final
| Date: 6/3/04
| Auth: MoonRaver
| Desc: forage, autoinventory. keep it simple ...
Sub Main
:loop
/if (${Me.AbilityReady["Forage"]}) {
/call CheckCursor
/doability "Forage"
/delay 20
/call CheckCursor
}
/goto :loop
/endmacro
sub CheckCursor
:checkcursor
/if (${Cursor.ID}) {
/autoinventory
/goto :checkcursor
}
/return
Last edited by
MoonRaverX on Fri Jun 04, 2004 5:44 pm, edited 1 time in total.
-MoonRaverX
(Removed character from my sig due to owner of said character requesting me to.)
"ASCII stupid question, get a stupid ANSI"
-
Fuergrissa
- a grimling bloodguard

- Posts: 607
- Joined: Mon Dec 08, 2003 3:46 pm
- Location: UK
Post
by Fuergrissa » Thu Jun 03, 2004 8:50 am
MoonRaverX wrote:Ok, everyone has such elaborate forage macros, though I'd release a nice, simple one that you can run anytime, and it never loses anything. You're required only to have free inventory space.
Code: Select all
| Name: KISS Forage
| File: forage.mac
| Ver : 1.0 Final
| Date: 6/3/04
| Auth: MoonRaver
| Desc: forage, autoinventory. keep it simple ...
Sub Main
:loop
/if (${Me.AbilityReady["Forage"]}) {
[color=red] /call CheckCursor[/color]
/doability "Forage"
/delay 20
[color=red] /call CheckCursor[/color]
}
/goto :loop
/endmacro
sub ClearCursor
:checkcursor
/if (${Cursor.ID}) {
/autoinventory
/goto :checkcursor
}
/return
Did you run this before you posted it ?
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]
-
Oid
- a snow griffon

- Posts: 416
- Joined: Thu Oct 17, 2002 3:26 am
-
Contact:
Post
by Oid » Thu Jun 03, 2004 8:51 am
I am guessing..... no
Smokey the Lax says only you can prevent reproduction.
-
Glasscoin
- a lesser mummy

- Posts: 55
- Joined: Mon Jan 13, 2003 8:57 am
Post
by Glasscoin » Fri Jun 04, 2004 11:50 am
Code: Select all
| Name: KISS Forage
| File: forage.mac
| Ver : [color=red]1.0 Final[/color]
| Date: 6/3/04
| Auth: MoonRaver
| Desc: forage, autoinventory. keep it simple ...
Now it'll never be fixed!
-
Chill
- Contributing Member

- Posts: 435
- Joined: Fri May 07, 2004 5:06 pm
- Location: Erie, PA
Post
by Chill » Fri Jun 04, 2004 1:02 pm
Guys wtf? I'm telling you:
Code: Select all
Sub Main
:Loop[b]
/if (${Cursor.ID}) /autoinventory
/if (${Me.AbilityReady[Forage]}) /doability Forage[/b]
/goto :Loop
/return
/sigh
I
challenge anyone to break this code (before the next patch) or produce a dedicated forage macro that will produce more forages per hour.
If you want a KISS forage macro, why add the fluff?
-
Fuergrissa
- a grimling bloodguard

- Posts: 607
- Joined: Mon Dec 08, 2003 3:46 pm
- Location: UK
Post
by Fuergrissa » Fri Jun 04, 2004 2:09 pm
i think you have missed the point here, i made a comment because someone had posted NON WORKING macros in a section without even bothering to test the code, fixing the macro is easy but thats not the point. If your going to post macros at least run them first to see if they work.
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]
-
MoonRaverX
- a ghoul

- Posts: 91
- Joined: Tue Dec 16, 2003 5:09 pm
- Location: Tampa, Fl
Post
by MoonRaverX » Fri Jun 04, 2004 5:47 pm
don't ask me what i did... i SWEAR they matched prior... not quite final i guess, final now
-MoonRaverX
(Removed character from my sig due to owner of said character requesting me to.)
"ASCII stupid question, get a stupid ANSI"
-
MoonRaverX
- a ghoul

- Posts: 91
- Joined: Tue Dec 16, 2003 5:09 pm
- Location: Tampa, Fl
Post
by MoonRaverX » Fri Jun 04, 2004 5:48 pm
oh, and what heppens to you macro when you have multiple items on your cursor?
-MoonRaverX
(Removed character from my sig due to owner of said character requesting me to.)
"ASCII stupid question, get a stupid ANSI"
-
Glasscoin
- a lesser mummy

- Posts: 55
- Joined: Mon Jan 13, 2003 8:57 am
Post
by Glasscoin » Fri Jun 04, 2004 6:16 pm
It will go through the loop and /autoinventory until there's nothing left on the cursor.
-
Chill
- Contributing Member

- Posts: 435
- Joined: Fri May 07, 2004 5:06 pm
- Location: Erie, PA
Post
by Chill » Sat Jun 05, 2004 4:24 pm
MoonRaverX wrote:oh, and what heppens to you macro when you have multiple items on your cursor?
Nothing. Foraging only ever finds 1 item. So if its running on its own, it will only ever get 1 item per cycle. You could have something on your cursor before you start, but my macro checks the cursor before it tries to forrage, so that takes care of that.
Of course there is the timing issue and there could be a bit of lag before the item appears, but the only time the cursor needs to be empty is immediately before you attempt to forage so that the forrage attempt is not wasted. Again, putting the /autoinventory just before the forage line takes care of that.
-
NBarnes
- orc pawn

- Posts: 19
- Joined: Wed Jan 28, 2004 10:46 pm
Post
by NBarnes » Sat Jun 19, 2004 11:22 pm
Chill wrote:Guys wtf? I'm telling you:
Code: Select all
Sub Main
:Loop[b]
/if (${Cursor.ID}) /autoinventory
/if (${Me.AbilityReady[Forage]}) /doability Forage[/b]
/goto :Loop
/return
/sigh
I
challenge anyone to break this code (before the next patch) or produce a dedicated forage macro that will produce more forages per hour.
If you want a KISS forage macro, why add the fluff?
I am not that familiar with the technicalities of this, but... won't this run in an uncontrolled loop? Would adding a /delay call to this be a good idea, to let the rest of the system catch a breath from running this loop? Again, I don't know, it's certainly possible that MQ2 takes care of that iteself and you know that and I don't so I'm being ignorant in my paranoia, but I am concerned.
-
Fuergrissa
- a grimling bloodguard

- Posts: 607
- Joined: Mon Dec 08, 2003 3:46 pm
- Location: UK
Post
by Fuergrissa » Mon Jun 21, 2004 5:59 am
NBarnes wrote:Chill wrote:Guys wtf? I'm telling you:
Code: Select all
Sub Main
:Loop[b]
/if (${Cursor.ID}) /autoinventory
/if (${Me.AbilityReady[Forage]}) /doability Forage[/b]
/goto :Loop
/return
/sigh
I
challenge anyone to break this code (before the next patch) or produce a dedicated forage macro that will produce more forages per hour.
If you want a KISS forage macro, why add the fluff?
I am not that familiar with the technicalities of this, but... won't this run in an uncontrolled loop? Would adding a /delay call to this be a good idea, to let the rest of the system catch a breath from running this loop? Again, I don't know, it's certainly possible that MQ2 takes care of that iteself and you know that and I don't so I'm being ignorant in my paranoia, but I am concerned.
Not technically no, the code here:
Code: Select all
/if (${Me.AbilityReady[Forage]}) /doability Forage[/b]
will only do forage if it is available, it is a loop of course but not Uncontrolled.
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]
-
Noobalicious
- decaying skeleton

- Posts: 7
- Joined: Tue Jul 27, 2004 6:15 pm
Post
by Noobalicious » Wed Jul 28, 2004 11:35 am
So I save this code in a file forage.mac and stick it in the macrs folder, right? But what do I do then?
-
Fuergrissa
- a grimling bloodguard

- Posts: 607
- Joined: Mon Dec 08, 2003 3:46 pm
- Location: UK
Post
by Fuergrissa » Wed Jul 28, 2004 12:58 pm
Noobalicious wrote:So I save this code in a file forage.mac and stick it in the macrs folder, right? But what do I do then?
What you need to do then is
Read and Inwardly Digest the manual.
We are not here to hand to you ON A PLATE ways for YOU to Cheat in Everquest. Learn Like every other person here has too, I don't mind helping but YOUR takin the piss.
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]