• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver
Ninjadvloot.inc

Release Ninjadvloot.inc 2022-06-23

No permission to download
You know what would be really cool? Give loot to one group member until they are encumbered and then start giving it to the next group member until they are encumbered, etc. Then give a message that everyone is encumbered.

Yeah, that would be my over the top wish.
 
I know that with LORE items it would be awesome if it gave the 1st one to the master looter then if he has it move to 2nd toon in group, then 3rd, then 4th and so on... that way all 6 in party could end up with the same lore item.

If we are putting in requests is there any way to tell ninjaloot to loot only 1 of an item and then leave it if you have it: Tideworn armor drops are not lore and you only need 1 but with 6 toons in party you need each toon to get 1 and if you 6box on 1 pc you cannot do it at this time, was wondering if we can do a loot until X item count like this: Tideworn Boots=Keep,1
 
I would LOVE to see Ninjaloot do 1 thing, just 1 more thing.... how many times have you heard that... but in this case, its important and I mean it!

Can we add and item count to loot.ini
 
When does the item destroy actually happen? I had a lot of items marked for destroy, but they still end up piling up in my bags. I was thinking those items would get destroyed as soon as they are picked up. So instead, I started marking them Ignore. This of course end up causing a massive corpse pile up. Sell, Ignore, and SellStuff are working great though.
 
Destoyed happens soon as the item is picked up. Its destroyed instead of auto inventoried. Better check your ini file again and make sure you have the most recent version out of the compile. this is an older version i will post the new one here later today.
 
Does this work with the advanced loot window? It tries to loot the actual corpses when I want it to loot from the advanced loot window instead. I don't want it to go back to loot the actual corpse when all the loot is already in the window.
 
ninjadvloot_logo.png

Ninjadvloot.inc v5.2 Beta updated 06/07/2015

I have added support to NinjAdvLoot to use the new Advanced Looting System

Its needs the 5/18/2015 (or later) MQ2 Source code with all the new advloot TLO's.
NinjAdvLoot Ignores character Advanced Looting preferences. - Ninjadvloot will only use its own loot.ini file for looting. It just incorporates the Advanced Looting system to loot instead of /loot and opening the corpse.
A Master Looter must be assigned for it work with a group. - This is a group defined role like Puller, Main Assist, etc
It does not support the global wildcard loot feature yet.
It also ignores things like mobstooclose that really don't affect the new Advanced Looting system

TO use the Advance looting system instead of /call LootMobs use /call UseAdvLoot, you can integrate either with the following snippet

Rich (BB code):
/if (${Me.UseAdvancedLooting}) {
    /call UseAdvLoot
} else {
    /call LootMobs
}

5.2 06/07/15
Rewrote Adv loot routines to read loot list in reverse order. Idea shamelessly stolen from JudgeD lol
Worked out timing bugs.
Fixed Lore items in shared list it will now click /leave

Todo
Global loot for Adv Loot. 80% done but not yet implemented

5.1 Beta
Leave Ignored items in Shared Window fixed

5.0 Beta
Initial release
 

Attachments

ninjadvloot_logo.png

Ninjadvloot.inc v5.2 Beta updated 06/07/2015
My most recent version from Redguides.

Ninjadvloot.inc is an include file that adds looting functionality to any macro. It creates a loot.ini file that keeps track of each item as its looted and how you want to handle that item each time its 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.

Requirements: MQ2Moveutils
Usage: add the following code to your macro for looting functionality
Rich (BB code):
    #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
  • Rich (BB code):
    /if (${Me.UseAdvancedLooting}) {
        /call UseAdvLoot
    } else {
        /call LootMobs
    }
    - The actual command to call the routine to loot mobs.
Assign different ini files. Default is Loot.ini - New!
Examples:
Rich (BB code):
   /call SetupAdvLootVars "MyToonLoot.ini"
   /call SetupAdvLootVars "LootMesa.ini"
Loot.ini settings
Rich (BB code):
[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 mark all items you sell to a vendor as Sell in the ini file with an event when running a macro suing ninjadvloot.
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 is handling the item directly form the cursor.

Commands
Rich (BB code):
/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

Rich (BB code):
| 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
Rich (BB code):
| 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
Rich (BB code):
| 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
Rich (BB code):
/call Buy "Flask of Water" 40
 
Destoyed happens soon as the item is picked up. Its destroyed instead of auto inventoried. Better check your ini file again and make sure you have the most recent version out of the compile. this is an older version i will post the new one here later today.

I've been looking for a solution to kissassist not destroying items on pickup and followed advice in this thread and others, with no avail.
I'm using the most recent compile, although this issue existed prior to the latest compile as well.

My setup is simple, 2 bots 1 pullertank SK, 1 healer cleric, using wineq2.0

The cleric is designated as main looter in the group box, with /looton in the character .ini. When using the /lootdestroy function I confirm it's updating the loot.ini file within the macros folder.

These are fresh characters with no /advloot filters setup yet. Loot settings for the cleric in /advloot are all boxes check except for "confirm remove item" and master looter assigned. The SK /advl settings are "auto split coin," "auto remove looted lore," "auto loot all."

Currently what happens is that the /advloot window will stay open for a bit, until everything will be switched into the "personal" loot section and looted by the masterlooter (cleric). The message is "1 items (chunk of meat etc) given to you. it has been removed from your shared loot list.

Currently i've tried changing the version history to =0 as suggested here: http://www.redguides.com/community/showthread.php/27893-LootDestroy-Issues
I've also replaced the ninjadvloot.inc file included with the compile (dated 6/7/15) with the most recent one included in the 5.2 thread, to see if that fixed the issue. I note that the compile comes with a loot.ini file and a loot.mac file, the loot.mac file dated 1/25/14.

I assume there's nothing special we need to do to get ninjadvloot to work with kissassist with the vanilla compile, but perhaps I'm wrong?
 
Lot of stuff going on in that post. Is this what I am reading?

1. You are Using the Advanced Loot System
2. The Item is Marked =Destroy in your Loot.ini file
3. The master looter is NOT destroying the item
 
Yes that's correct, was giving as much information as possible. Last relevant piece, this is on tlp
 
I was trying to get forage working on my druid but couldnt figure it out. Do i have to copy and paste the forage code somewhere to get it to work? Sorry about all the questions. I've gotten pretty good with the basic stuff, trying to learn more features :)
 
I was trying to get forage working on my druid but couldnt figure it out. Do i have to copy and paste the forage code somewhere to get it to work? Sorry about all the questions. I've gotten pretty good with the basic stuff, trying to learn more features :)

One thing that always catches me is - make sure the forage skill is available in your actions window. You will probable have to copy/paste the code above using notepad and create/save a forage.mac file in your macros folder.
 
I was trying to get forage working on my druid but couldnt figure it out. Do i have to copy and paste the forage code somewhere to get it to work? Sorry about all the questions. I've gotten pretty good with the basic stuff, trying to learn more features :)
If you are using MQ2, you can have MQ2melee forage for you. In your MQ2 window, type
Rich (BB code):
/melee forage=1
then
Rich (BB code):
/melee save
you will now constantly forage when the skill is ready.
When you want to stop type
Rich (BB code):
/melee forage=0
then
Rich (BB code):
/melee save
again to leave it off.
 
I cannot get NinjaAdvLoot to work. I have this added to my macro:

#include Ninjadvloot.inc
/call SetupAdvLootVars
/call UseAdvLoot

I have a loot.ini file with items set to ignore and keep.

I run the macro and it just keeps using my Advanced Loot In-game window settings and NinjaAdvLoot seems to be doing nothing.

What am I doing wrong? Thanks!
 
I cannot get NinjaAdvLoot to work. I have this added to my macro:

#include Ninjadvloot.inc
/call SetupAdvLootVars
/call UseAdvLoot

I have a loot.ini file with items set to ignore and keep.

I run the macro and it just keeps using my Advanced Loot In-game window settings and NinjaAdvLoot seems to be doing nothing.

What am I doing wrong? Thanks!

Are you using KISS
Do you have loot=1
Do you have that character set as master looter?
 
Yes I did assign someone to master looter role. I am not currently using KISS I put this into another macro. Does it only work in KISS?
 
Hi guys,

Been using Kissassist for a few days now, and am having a few problems. One of my biggest is with Ninjadvloot

It seems that I have two issues:

1) My group is all casters- people with mana bars. No matter who I set to as the Master Looter, it always waits for them to be at 100% mana before looting the corpses. Obviously this is an issue as my group is constantly pulling, and none of them ever hit full mana. Sometimes if I stop KA and restart it, it will loot while less than 100%, but it always reverts back to the problem behavior after 1-2 rounds of working. I've found a setting called 'combatlooting', which I turned on, but I see nothing else that might fix this. The looting should be irrelevant to the amount of mana I have.

2) The /lootdestroy feature doesn't seem to work (always). I pick up an item, click lootdestroy, and see a message in the MQ window that makes it seem like it worked.. but then I keep looting and keeping the items. Even if I endmac and restart KA it still doesn't honor the rules in the INI. The strange thing is the lines DO wind up appearing in the loot.ini, they're just ignored. Again though- sometimes this works and sometimes it doesn't. I can't seem to figure out what makes the difference.
 
I know Kiss will not loot with mobs in camp - I have never had a mana issue (my mage loots). Do you have combat med on?

I did once mess up my loot.ini and had to delete it and start over. I then just used notepad to change items I auto picked up or ignored to the actual setting I wanted to keep my camp cleaned up.
 
Try editing Ninjadvloot.inc and change the MobsTooClose to 10 the default is 40.

With /lootdestroy make sure you get a response back in the MQwindow showing -- Setting Item Name to Destroy. Then if you want to go double check just edit the loot.ini file and search for the item name and see if it was set to destroy.

If none of this works. post a copy of your looters ini file.
 
I've noticed my looter will sometimes leave stuff set to Keep on corpses. Also, diamonds are still being left there, though that's generally not an issue as I have them set to AN and they're rolled on and looted, though occasionally they're left on a corpse as well.

Is there anything I can toggle on for debugging to try to find out why they're leaving items on corpses that shouldn't be?
 
What are /lootdestroy and /lootignore supposed to do? I've marked loot destroy and ignore, but it doesn't seem to do anything. Is there anything I can do to make it leave certain items on the corpse?
 
What are /lootdestroy and /lootignore supposed to do? I've marked loot destroy and ignore, but it doesn't seem to do anything. Is there anything I can do to make it leave certain items on the corpse?


the /lootdestroy and /lootignore commands should change the settings in your loot.ini file.

The settings look something like this:

Antipodal Light of the Heavens=Destroy
Animating Force=Keep
Authentic Treasure Map=Ignore
Alkalai Loam=Sell



First make sure you are looking at the right loot.ini file, I customize mine and occasional find myself looking in the wrong one. Second - I know there is coding in the macroquest.ini file that makes the commands work. I do not know what the coding is, but I have seen several posts referring to it and how to fix it. Something about deleting the version number in the loot file that forces the macro to recode the macroquest.ini file

You can manually change the settings with any text editor or use the in-game commands while the Ninjaloot macro is running. KissAssist automatically runs the ninjaloot macro.
 
if the item is in a stack you have to pick up just a single then do /lootdestroy to flag it correctly. after that it gets looted and destroyed
 
This also works well in conjunction with advloot. That way it isn't always kneeling to loot, and it will loot during combat. I use it on all my toons that way.
 
What are /lootdestroy and /lootignore supposed to do? I've marked loot destroy and ignore, but it doesn't seem to do anything. Is there anything I can do to make it leave certain items on the corpse?

Make sure you're running a macro that uses or includes ninjadvloot when doing /lootdestroy and /lootignore. I'm not sure if it works for others, but it only actually works for me when running a macro. If not, I'll get a single line saying that it was added to destroy/ignore/keep/sell, but it doesn't change the ini. If running a macro, you will get TWO lines, and the ini should be updated properly.
 
So, if I'm understanding this correctly, /lootdestroy, it should loot and then destroy the item, and for /lootignore, it should leave it on the corpse?
 
Yes. but /lootdestroy won't work if you're using the advanced looting system in game. It will only destroy if you're using old school looting. That's as far as I've seen anyways. I'd recommend using lootignore with advloot window and making use of a /hidecorpse all hotkey.
 
works with advloot, but you have to set the flag for "auto loot all" to off, the always need / greed / autoroll etc filters become useless though.

If you have an advloot filter set to never, it won't loot even if you have /lootdestroy set for that item.
 
Today i recogniced something. An bracer dropped, but ninjaadvloot did let the item on the corpse. I checked my loot.ini and the bracer was there as =keep.
I started to check the corpses around me, and there were several tradeskill and loot items on the corpses, which should have been looted (Around 10-20% of the corpses). I looted the bracer by hand (which was no problem (no lore item)).

Anyone did see that also? Or anyone got an idea how this can happen ?


loot.jpg

loot 2.jpg

loot 3.jpg

Edit it's not that he ALLWAYS ignore the item, most of the time he loot it. The energy shard he looted in hundreds.

I could add alot more examples, it doesent happen very rare. It's quite often.
 
Last edited:
not sure if this is related, (have not delved into ninjaloot) but using the /advloot commands the item in the shared list are sometimes off... example

Rich (BB code):
/bcaa //advloot shared 3 ag

on my crew USUALLY toggles everyone to put item 3 as always greed. Sometime it does item 6, or 2, or 14, or what ever. Not often, say like 1 out of 12-15 times or so. It may be simply an error in the way the item is displayed/listed/numbered

I normally keep the advloot window up (working some lowbies up so monitoring who gets what right now) so it has not really been an issue for me, but I had noticed it and figured it was worth mentioning here

when this happens I usually use the master looter to hand out loot/leave on corpse till the offending item is in slot 1. Never had an issue with the command going wonky on slot 1
 
Anyone did see that also? Or anyone got an idea how this can happen ?
One word...."LAG".
I have had this happen to me many times, any amount of lag at the time of "looting" can cause the Advloot system to have a hiccup.
Could be Serverside, clientside, network, processer, whatever....can cause it to "miss" an item.
Best solution: MORE LOOTERS. the more chances you have to "grab" the items, the better chance you will pick it up. I dont use Ninjaloot, just Advloot filters, and use AN/AG to sort thru stuff to send to particular characters, many times ill find lings on characters that they shouldn't have looted because another character was set at AN, have even watched it happen.. lagspike...messed up looting thru Advloot.
 
Been transitioning to more filters in game as well. The only drawback there really is the delay in waiting for the roll to happen if killing in a group. Have seen the ninjadvloot leave diamonds, blue diamonds, alaran fragments, etc on corpses. Really didn't want to miss out on the alaran frags, so made sure I had those marked as AN on my tank.
 
I have 30-35ms almost always ;P Should not be lag. I know i can or should switch to advloot, but currently i am to lazy to set it up :-) (means set who will get what).


One thing which would be nice: NinjaAdvloot should add the AG Flag the item if you want to keep/sell/destroy it. And the Never flag if you want to ignore it. That way you get an populated advloot list (not ninjaadvloot!).
 
Last edited:
Release Ninjadvloot.inc

Users who are viewing this thread

Back
Top
Cart