Ninjadvloot.inc is an include file that adds looting functionality to any macro. It creates a loot.ini file in your macro folder that keeps track of each item as it's looted and how you want to handle that item each time it's looted. Choices are destroy, ignore, keep, or sell.
Ninjadvloot.inc was originally written by A_Druid_00 in 2005 at macroquest2.com. It has been revised and updated by many people over the years. Lots of great code snippets and features have been posted and suggested in the MQ2 forums but each one was separate. When I started to update ninjadvloot I went back through the years of posts and incorporated all the suggestions and code that made sense for looting.
I then added sell/guild bank features to it. Selling takes so long and now with 10 bags and up to 32 slots. I have always been a big fan of Ninjadvloot.inc and really surprised over the years no one has added code to actually sell to vendors. As I get lazier and bags get bigger I added more features to ninjadvloot to automate all boring loot and item stuff.
Ninjadvloot now handles foraged items. Will check cursor on a successful forage to see how to handle item if listed in loot.ini file Ignore,Keep,Destroy or Sell. If it is not listed then it will default to keep.
Usage: add the following code to your macro for looting functionality
#include Ninjadvloot.inc /call SetupAdvLootVars /call LootMobs
- #include Ninjadvloot.inc - command to include the file in your macro
- /call SetupAdvLootVars - Calls the routine to setup looting variables and default ini file or
- /call SetupAdvLootVars FileName.ini - Calls the routine to setup looting variables and custom ini file
- /call LootMobs - The actual command to call the routine to loot mobs.
Assign different ini files. Default is Loot.ini - New!
/call SetupAdvLootVars "MyToonLoot.ini"
/call SetupAdvLootVars "LootMesa.ini"
Loot.ini settings
[Settings] Version=2.5 LootMobs=TRUE CorpseRadius=100 MobsTooClose=20 CorpseRotTime=440s ReportLoot=TRUE LootChannel=bc OpenAllBags=1 AddNewSales=1 LootForageSpam=1 LootForage=1
Settings Version=2.5 - current verion LootMobs=TRUE - loot mobs TRUE/FALSE=on/off CorpseRadius=100 - radius around character to loot mobs MobsTooClose=20 - will not loot mobs if npcs are within this radius to prevent looting during combat CorpseRotTime=440s - time to ignore corpses already looted ReportLoot=TRUE - Reports loot left on mob. Items marked ignore in ini file or lore LootChannel=bc - channel to report items left on mob. g for group, bc for eqbc, fs for fellowship etc. OpenAllBags=1 - this will open and close all your bags in inventory =1/0 on/off AddNewSales=1 - This will marked all items you sell to a vendor as Sell in the ini file LootForageSpam=1 - Shows messages of foraged items in MQ2 window =1/0 on/off LootForage=1 - Turns on item handling of foraged items. Will check to see how to handle item if listed in loot.ini file Ignore,Keep,Destroy or Sell. If it is not listed then it will default to keep. Note: Ignore=Destroy for foraged items since it handling directly form the cursor.
Commands
/lootdestroy /lootignore /lootkeep /lootsell /sellstuff /depositstuff
Usage. Grab the item and put it on your cursor then use one of the following commands
/lootdestroy - Mark item on cursor as Destroy in loot.ini file
/lootignore - Mark item on cursor as Ignore in loot.ini file
/lootkeep - Mark item on cursor as Keep in loot.ini file
/lootsell - Mark item on cursor as Sell in loot.ini file
/sellstuff - Target a vendor and this command will sell any item in your inventory marked sell. Does not work with Veteran AA Resupply Agent.
/depositstuff Target your guildbanker and this command will deposit any item in your inventory marked keep into the guild bank.
Here are some simple macros as an example that shows how to use ninjadvloot in your macros.
Sellstuff.mac - will sell items, marked Sell, to vendor.
To use target the merchant you are selling to then type /mac sellstuff
| Sellstuff.mac v1.1 by Maskoi 11/27/2010 | Target the vendor you want to sell to and type /mac sellstuff | Required Ninjadvloot.inc v2.+ and a loot.ini file with items marked as sell #include Ninjadvloot.inc Sub Main /call SetupAdvLootVars /call DoLootStuff sell /return
Depositstuff.mac - will deposit items, marked Keep, into guild bank
Target the guild banker and type /mac depositstuff
| Depositstuff.mac v1.0 by Maskoi 11/27/2010 | Target the guild banker and type /mac depositstuff | Required Ninjadvloot.inc v2.1 and a loot.ini file with items marked as keep #include Ninjadvloot.inc Sub Main /call SetupAdvLootVars /call DoLootStuff deposit /return
Forage.mac
| Forage.mac v.1 by Maskoi 1/31/2013
| Forage using ninjadvloot.inc
#include Ninjadvloot.inc
Sub Main
/call SetupAdvLootVars
:Top
/if (${Me.Skill[Forage]} > 0) /doability forage
/doevents
/call LootMobs
/delay 10
/Goto :Top
/return
Buy stuff from vendors
/call Buy "Flask of Water" 40
