forage.mac - The stupidest looking forage macro yet.

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

Moderator: MacroQuest Developers

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

forage.mac - The stupidest looking forage macro yet.

Post by Preocts » Tue May 18, 2004 12:55 pm

fuck it
Last edited by Preocts on Tue Jun 01, 2004 3:43 pm, edited 3 times in total.

shadowdragon
a lesser mummy
a lesser mummy
Posts: 63
Joined: Sun May 09, 2004 4:08 pm

Post by shadowdragon » Tue May 18, 2004 1:33 pm

not sure what i'm doing incorrectly, but i copy/pasted your code into a notepad file, saved it as forage.mac in the macros folder. when i type /macro forage.mac ingame, it says "the current macro has ended" and that's it. i seriously know nothing of coding for the macros and don't know what to do to fix it.

robdawg
a ghoul
a ghoul
Posts: 114
Joined: Tue Mar 23, 2004 11:54 am
Contact:

....

Post by robdawg » Tue May 18, 2004 1:56 pm

Damnit Preocts you didn't spoon feed everything to these people! WTF!@!@

Code: Select all

/declare IniFileName string outer ${Me.Name}_IniFile.ini
So in your case shadowdragon, it would be:

NOOB_IniFile.ini

Inside that INI file i am going to guess is should look like this:

Code: Select all

[Global]
Rabbit Meat=0
Plains Pebble=-1
Pod of Water=20
If not Preocts will tellz you!
ROBDAWG

[url=http://www.seathound.com]Seat Hound[/url]
[url=http://www.sportsrumormill.com]Sports Rumor Mill[/url]
[url=http://www.packerforum.com]Packer Forum[/url]

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Tue May 18, 2004 2:00 pm

Edit: fixed

robdawg: huh? :shock:

Shadow: Fixed the problem. Had a check there to see if the option for auto-forage was enabled and, of course, that was completely dependant on the rest of my macro being present. Removed it.

All:
There are no /echo's that will tell you this macro is currently running. It runs 100% quitely. :wink: If you want noise then add this to your ini file.

WhoEver_IniFile.ini

Code: Select all

[Settings]
Noise=1
Last edited by Preocts on Tue May 18, 2004 2:09 pm, edited 2 times in total.

robdawg
a ghoul
a ghoul
Posts: 114
Joined: Tue Mar 23, 2004 11:54 am
Contact:

....

Post by robdawg » Tue May 18, 2004 2:03 pm

Looked through the macro real quickly. Does it create the actual INI file for you if it doesn't exist? If so cool, and disregard by previous post. :)
ROBDAWG

[url=http://www.seathound.com]Seat Hound[/url]
[url=http://www.sportsrumormill.com]Sports Rumor Mill[/url]
[url=http://www.packerforum.com]Packer Forum[/url]

shadowdragon
a lesser mummy
a lesser mummy
Posts: 63
Joined: Sun May 09, 2004 4:08 pm

Post by shadowdragon » Tue May 18, 2004 2:10 pm

trying that now, thank you for the help

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Tue May 18, 2004 2:12 pm

We're all cross posting. How fun. :roll:

Interestingly enough you pointing out the problem fixed a few problems I was having with my personal macro. Completely unrelated to foraging but had to do with the fact that certain key option variables were global and not outer. heh. Yay.

shadowdragon
a lesser mummy
a lesser mummy
Posts: 63
Joined: Sun May 09, 2004 4:08 pm

Post by shadowdragon » Tue May 18, 2004 2:18 pm

/kneel, /grovel, /thank!!! it works PERFECTLY with the code change! thank you thank you thank you!!!

maybe someday in between time spent with kids and taking care of other things i'll have time to learn how to do all this from scratch, until then you all are the best for putting up with my Noobishness and helping me out. thanks very much for the code and the time, it's really appreciated.

edit: good question, do i need to manually create each char_inifile.ini or will it create them per char when using this macro?

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Tue May 18, 2004 2:29 pm

If you want to start learning this stuff DON'T use this as your example. :lol:

Use this one instead. ROFLMAO

Code: Select all

#Event Pocket "#*#You have scrounged#*#"

Sub Main
  :KeepsGoing

    /if (${Me.AbilityReady["Forage"]}) {
        /delay 5
        /doability "Forage"
        /delay 5
    }

  /doevents  
  /delay 1s
  /goto :KeepsGoing
/return

Sub Event_Pocket
  /delay 1s
  /echo Pocketing << ${Cursor.Name} >> for future enjoyment.
  :Going
    /autoinventory
    /delay 5
    /if (${Cursor.ID}) /goto :Going
/return
soooooo much simpler. :lol: Though I think even Oid would shudder at this small one. His would more likely be:

Code: Select all

  Sub Main
    :Loop
      /if (${Me.AbillityReady[Forage]}) {
        /doability Forage
        /delay 1s
        /autoinventory
      }
     /goto :Loop
  /return
hmmm... still 9 lines long.... I'm sure he could do it in 5. :wink:
/challenge

/ramble off

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Tue May 18, 2004 2:35 pm

shadowdragon wrote:/edit: good question, do i need to manually create each char_inifile.ini or will it create them per char when using this macro?
Everything will be created by the macro if it doesn't already exist. What to use one inifile for all your toons? Remove the ${Me.Name}_ part of the /declare statement.




((whew, rakin up the post counts today!))
Last edited by Preocts on Tue May 18, 2004 2:36 pm, edited 1 time in total.

shadowdragon
a lesser mummy
a lesser mummy
Posts: 63
Joined: Sun May 09, 2004 4:08 pm

Post by shadowdragon » Tue May 18, 2004 2:36 pm

kk, thank you for the info! run a few different foragers on the 3 computers i have, good to know!!

robdawg
a ghoul
a ghoul
Posts: 114
Joined: Tue Mar 23, 2004 11:54 am
Contact:

....

Post by robdawg » Tue May 18, 2004 2:39 pm

Looked through the macro real quickly. Does it create the actual INI file for you if it doesn't exist? If so cool, and disregard by previous post. :)
ROBDAWG

[url=http://www.seathound.com]Seat Hound[/url]
[url=http://www.sportsrumormill.com]Sports Rumor Mill[/url]
[url=http://www.packerforum.com]Packer Forum[/url]

firedancer
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Apr 14, 2004 4:00 pm

Re: ....

Post by firedancer » Fri May 21, 2004 2:51 pm

robdawg wrote:Looked through the macro real quickly. Does it create the actual INI file for you if it doesn't exist? If so cool, and disregard by previous post. :)
omg... look 2 posts above yours and dont be so FUCKING LAZY

firedancer
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Apr 14, 2004 4:00 pm

Re: ....

Post by firedancer » Fri May 21, 2004 2:54 pm

robdawg wrote:Looked through the macro real quickly. Does it create the actual INI file for you if it doesn't exist? If so cool, and disregard by previous post. :)
omg... look 2 posts above yours and dont be so FUCKING LAZY

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Re: ....

Post by Preocts » Fri May 21, 2004 3:55 pm

firedancer wrote:
robdawg wrote:Looked through the macro real quickly. Does it create the actual INI file for you if it doesn't exist? If so cool, and disregard by previous post. :)
omg... look 2 posts above yours and dont be so FUCKING LAZY

EAT GLASS AND DIE

I find it ironicly humorous that you doubled posted your flame at a double post.... but you can still die.