New Forage Macro: MyForage 2.1 By: Chaos12010

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

Moderator: MacroQuest Developers

Chaos12010
decaying skeleton
decaying skeleton
Posts: 4
Joined: Wed Jul 09, 2008 1:35 am

New Forage Macro: MyForage 2.1 By: Chaos12010

Post by Chaos12010 » Sun Jul 13, 2008 11:17 pm

What's up everyone I just wanted to say that I love MacroQuest2. I would like to share my macro with everyone I hope everyone enjoys it as much as I do. It took some time to modify and merge the code the way I wanted it. It might be a little confuseing but hey this is my first macro and I hope you all enjoy it. :?

Code: Select all

|MyForage.mac By: Chaos12010
|Version History: 0.5 Creation of MyForage.
|                 1.0 Modfications and adjustments to the code.
|                 1.5 Some More Modifications based off of YAFM and Forage Macros were added to the macro.
|                 2.0 Added the inate cammo to the code...
|                 2.1 A little bit of tweaking.

|Feature Realse: Would like to add the ability to section the MyForage.ini adding zones so it will become 

neater for the user to read.
|                I would also love to put in the Exoduse option and the ability to auto exit and end macro 

after Max is compleated.

|Purpose of this macro: The purpose of this macro is to auto forage any item based on the MyForage.ini file. 

This macro will also protect
|the user by casting Innate Cammo. Added the ability to turn on or of the cammo option. Modified and added new 

Timers that will slow down the macro
|a bit so it won't delete or inventory items wanted or items you don't want. This macro also sets your toon in 

afk mode. This can be
|changed or modified by the user as well. I hope everyone enjoys it. Also enhanced the output messages so that 

you actualy know clearly 
|what's going on.




sub Main
|Delares the statment that will be used to define true or false for cammo (This Can Be Changed By The User.) 
/declare set_MyCammo    bool outer TRUE


|MyForage Welcome.
/echo Welcome to MyForage 2.1.



|This if statement will only activate once per run in the macro. (If The User Expresses True.)
/if ((${set_MyCammo}) && (!${Me.Buff[Camouflage].ID})) /alt activate 80


|This can be commented out if the user would like. It the sets the afk mode on or off.
/afk Be Back Soon..... I Hope!
/delay 5 


|Begins the cleanup befor the actual forage loop begins. The user can again comment this out if they wish to 
|see there bags always open on the screen.
/cleanup


|This is where the actual codeing takes place for the forage loop. It steps throw etch line of code; then does 

the coresponding calls
|(ItemSort, Cammo). This Code Does Not Need To Be Changed.
  :Forage 
/delay 2
 /if (${Me.State.NotEqual[STAND]}) { 
      /stand 
      /delay 5 
    } 
    /delay 1s 
    /if (${Me.Skill[Forage]} > 0) /doability forage 
  } 
  /if (${Cursor.ID}) /call ItemSort
/call Cammo 
    /goto :Forage 
  :loop 
/return
 


|This is where the Items Get sorted if you want the item it gets put in inventory. If Not it destroys it. -1 

was added so it will never delete
|Items in inventory on accsedent. Normaly I have seen people set this to 1. YOu can set this at your own risk.
sub ItemSort 
  /delay 5 
  /if (!${Ini[MyForage.ini,ForageList,${Cursor.Name}].Length}) { 
    /ini "MyForage.ini" "ForageList" "${Cursor.Name}" "-1" 
  } else { 
    /if (${Ini[MyForage.ini,ForageList,${Cursor.Name}]}) { 
      /if (${FindItemCount["=${Cursor.Name}"]}>=${Ini[MyForage.ini,ForageList,${Cursor.Name}]} && 

${Ini[MyForage.ini,ForageList,${Cursor.Name}]}!=-1) /goto :Destroy 
    } else { 
      :Destroy 
      /echo Deleteing this item:    (${Cursor.Name}) 
      /destroy 
      /return 
    } 
  } 
  :LootIt 
    /echo Keeping this item:    (${Cursor.Name}) 
    /autoinventory 
    /delay 5 
    /if (${Cursor.ID}) /goto :LootIt 
/return


 
|This section gets calld from within the Forage loop. Now your probably wondering why I placed the code for 

calling it at
|the bottom of the forage loop. If I put it at the top of the forage loop there will be timer issues that will 

kik the macro off.
|I tried to solve this problom by moveing the call code to the ending of the loop so it will not bother the 

forage code.
sub Cammo
 /if ((${set_MyCammo}) && (!${Me.Buff[Camouflage].ID})) { 
     /echo Enableing (Cammo AA)... 
     /alt activate 80 
     /delay 10 
  }
/return
Enjoy guys and gals! :smile:

Please post what you think..... :cool: [/code]
Why is it when shit hits the fan, it's always high and osculating???

Chaos12010
decaying skeleton
decaying skeleton
Posts: 4
Joined: Wed Jul 09, 2008 1:35 am

Sorry for the lines and spaces.

Post by Chaos12010 » Sun Jul 13, 2008 11:23 pm

Sorry for the lines and spaces. I wrote this in notepad and for some od reason it didint display right.. Sigh... But it does work :lol:

Ohh and heres the INI file MyForage.Ini

Code: Select all

[ForageList]
Bookworm=0
Pod of Water=0
Miller Carrot=0
Fishing Grubs=0
Griffon Eggs=0
Rabbit Meat=0
Green Apple=0
Mana Infused Pod of Water=0
Psilocybe of Magic=0
Vegetables=0
Desiccated Vegetables=0
Desiccated Fruit=0
Psilocybe of Rage=0
Desiccated Roots=0
Sundered Blade Shards=0
Desiccated Berries=0
Blood Tainted Pod of Water=0
Morning Dew=0
Mantrap Bud=0
Emerald Palm Root=0
Emerald Moss=0
Ancient Coin=0
Emerald Leaves=0
Trakanon Fern Root=0
Cockatrice Egg=0
Sylvan Berries=0
Rathe Berries=0
Pitaya=0
Pomegranate=0
Emerald Orange=0
Berries=0
Fruit=0
Lightning Stone=0
Rain Water=2000
Thunder Stone=0
Palm Leaf=0
Roots=0
A Broken Rallosian Blade=0
Tuft of War Boar Fur=0
Water Flask=0
Speckled Pine Fruit=0
Pieces of Shattered Armor=0
Ripened Heartfruit=0
Cinnamon Sticks=0

You can change the 0's to what ever 0 is off -1 is keep any amount 1 just keeps 1 and so forth.
Why is it when shit hits the fan, it's always high and osculating???

FrankJScott
naggy
naggy
Posts: 2382
Joined: Sun Feb 19, 2023 7:11 am

Awesome Tents Supplier In Saudi Arabia Info

Post by FrankJScott » Wed Apr 16, 2025 7:20 am

To the person inquiring about event tent wedding, deluxe tent rental, rent a tent for wedding near me, stage tent rental, tent rentals for parties near me, tent set up company, wedding tent outdoor, large outdoor tent rental, small wedding tent rentals, tent rentals, best tent rentals near me, arcum tent, tent in wedding, need a tent, wedding tents for sale near me, tents and events rentals, small tents for events, clear tent, create shade, wedding tent fabric, I recommend this web site about tents supplier in KSA forum for commercial tent accessories, white event tent, 20x20 wedding tent, tent trade show, structure tent rental, large white tent rental near me, buy large tents for events, cheap tent hire, clear wedding tent, hire tents for events, difference between tent and marquee, tents to rent for events, tents wholesale, shape of tent, 10x10 tent layout, best commercial tents, clear wedding tent rental, gigantic tent, wedding event tent, a shape tent, rent a big tent for wedding, big outdoor tents for sale, tables and tents for rent, also. See More Best Platelet Rich Plasma Therapy For Men Sarasota Tips b3ce3c8