Payala Scavenger

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

noober
a lesser mummy
a lesser mummy
Posts: 71
Joined: Mon Mar 08, 2004 4:09 pm

Payala Scavenger

Post by noober » Sun Jun 27, 2004 2:04 pm

I wrote this to collect payala fruit to raise my brewing skill, ran good for me, has bits and pieces of a lot of macros so my hat goes off to all macroers that post here and specially to our mighty developers, thanks all and enjoy.

Code: Select all

/declare TargetDistance float global
Sub Main
       :Loop
       /Call TargetItem
       /Call MoveToItem
       /Call GetItem
       /Call Rest    
       /goto :loop
/return

Sub TargetItem
        /echo Targeting a shroom . . .
        /ItemTarget *Blue 
/return

Sub MoveToItem
       :keepmoving
       /varset TargetDistance ${Target.Distance}
       /face fast nolook
       /keypress forward hold
       /delay 5
       /call CheckIfStuck   
       /if (${Ground.Distance}>10) /goto :keepmoving
       /keypress back   
/return

Sub CheckIfStuck
       |/echo is ${TargetDistance} = ${Target.Distance} ? 
       /if (${TargetDistance}==${Target.Distance}) {
           /echo I am stuck
           /keypress back hold
           /delay 1s
           /keypress back
           /if (${Math.Rand[99]}>50) {
               /keypress strafe_right hold
           } else {
               /keypress strafe_left hold
           }
           /delay 2s
           /keypress strafe_right
           /keypress strafe_left
           /keypress forward hold
       }
/Return


Sub GetItem
       /click left item 
       /delay 1s
       /autoinventory
       /delay 1s 
       /autoinventory
       /keypress backspace
       /mapfilter ground hide
       /mapfilter ground show 
       /keypress backspace
/Return

Sub Rest
       /delay 10s
       /echo Getting next phat lewt!
/Return

mekaniak
a hill giant
a hill giant
Posts: 290
Joined: Thu Sep 18, 2003 3:21 pm

Post by mekaniak » Tue Jun 29, 2004 3:19 pm

im looking to collect the acorns in misty thicket but my char keeps running straight into the wall, how would i go about collecting the acrons only in a specific radius?
I love the Power Glove, it's so bad

Say hello to M.C. Smurf!

[quote]<mekaniak> adios guys.
<dont_know_at_all> idiot
* mekaniak is now known as mekaniak_dinner
<Jacensolo> me?
<dont_know_at_all> not this time
[/quote]

[quote]
<dont_know_at_all> A_Enchanter_00, how the fuck should i know? it's your code[/quote]

I love quoting IRC chat.

Programmer
a hill giant
a hill giant
Posts: 195
Joined: Mon Dec 01, 2003 2:41 am

Post by Programmer » Tue Jun 29, 2004 3:34 pm

/if (${Ground.Distance}>10) /goto :keepmoving
There are two (that I see) occurrances of your greater-than sign being replaced with html. Anyone pasting this needs to compensate or the macro will not work.

Caffeine
decaying skeleton
decaying skeleton
Posts: 6
Joined: Fri Jul 09, 2004 2:47 am

Misty Acorns

Post by Caffeine » Fri Jul 09, 2004 2:50 am

Hey Mek,
I haven't started making it yet, but I'm gonna make a Misty acorns macro like the one above. The solution I'm planning on using is an /if statement that compares the location of the target acorn with your own, and since the Y axis loc of the wall is fairly similar all the way down, I'll have it run to the gate entry, then through the gate in the event of an acorn on the other side.
If I feel the macro is worthy of posting, I will do so once I finish with it.

Added Saturday July 10th
Mek, I made a misty acorns one, its posted in forum. Just search for "misty acorn" Good luck.
Last edited by Caffeine on Sat Jul 10, 2004 10:57 pm, edited 1 time in total.

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Fri Jul 09, 2004 11:51 am

Attempted to run this and CTD, tried again, CTD.

The first time it picked up one and crashed, the second time it crashed as soon as it finished initializing.

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Fri Jul 09, 2004 11:57 am

Ok, may not be the macro... in fact I doubt it is.

Went back in game and did not start the macro just opened map and found groundspawn and right clicked on it and CTD. I can right click NPCs no problem.