• 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 (1 Viewer) 2022-06-23

No permission to download
Re: Ninjadvloot.inc v2.5 Updated 01/01/2 - NEW! Now handles buying items

The loot ini file does not do a perfect job putting items in alphabetical order making things hard to find sometimes. Use Ctrl +f to open the find window and see if "rabbit meat" is listed at the end or elsewhere. Happens to me a lot.
 
Re: Ninjadvloot.inc v2.5 Updated 01/01/2 - NEW! Now handles buying items

or you can set them in order
 
Re: Ninjadvloot.inc v2.5 Updated 01/01/2 - NEW! Now handles buying items

Rich (BB code):
[Settings]
|======================================================================|
Version=3.0
OpenAllBags=1
AddNewSales=1
LootForage=1
LootMobs=TRUE
CorpseRadius=100
MobsTooClose=100
CorpseRotTime=440s
ReportLoot=FALSE
LootChannel=g
LootForageSpam=1
[A]
|======================================================================|

|======================================================================|
[C]
|======================================================================|
[D]
|======================================================================|
[E]
|======================================================================|
[F]
|======================================================================|
[G]
|======================================================================|
[H]
|======================================================================|

|======================================================================|
[J]
|======================================================================|
[K]
|======================================================================|
[L]
|======================================================================|
[M]
|======================================================================|
[N]
|======================================================================|
[O]
|======================================================================|
[P]
|======================================================================|
[Q]
|======================================================================|
[R]
|======================================================================|

|======================================================================|
[T]
|======================================================================|

|======================================================================|
[V]
|======================================================================|
[W]
|======================================================================|
[X]
|======================================================================|
[Y]
|======================================================================|
[Z]
|======================================================================|
 
Re: Ninjadvloot.inc v2.5 Updated 01/01/2 - NEW! Now handles buying items

Yep, that would be the smart thing, then use the find function if you are lysdexic like me and can find it in the list.
 
Re: Ninjadvloot.inc v2.5 Updated 01/01/2 - NEW! Now handles buying items

I am also "lysdexic" I feel your pain
 
Re: Ninjadvloot.inc v2.5 Updated 01/01/2 - NEW! Now handles buying items

There is some kind of memory leak here. Turn loot on and you watch task manager and you see memory usage go up the entire time until you start fight once the mob is dead it loots and starts to go up again. It's like its searching for corpses the entire time which is causing memory issues.

Adding ${SpawnCount[npccorpse radius 20]} to the /call lootmobs line stops it from using more and more memory while not fighting, but it continues once the mob is dead until you loot. So say a corpse is there that you didn't loot everything on it will cause the memory issue or if you kill say 15 mobs at a time memory will go up fast until all the corpses are gone.
 
Last edited:
Re: Ninjadvloot.inc v2.5 Updated 01/01/2 - NEW! Now handles buying items

Doews the memory increase with out a macro running and corpses piling up?
 
Re: Ninjadvloot.inc v2.5 Updated 01/01/2 - NEW! Now handles buying items

No just when I have loot on if i turn loot off it doesn't increase. When I was watching it with loot on and no corpses it was going up just sitting afk.
 
Re: Ninjadvloot.inc v2.5 Updated 01/01/2 - NEW! Now handles buying items

Just to clarify maskoi even without killing if you just turn loot on and afk with no corpses around it consumes memory at a very fast pace. After about 2 hrs the screen on that eq window will go black.
 
Re: Ninjadvloot.inc v2.5 Updated 01/01/2 - NEW! Now handles buying items

the alert lists may not be clearing will have to check them
 
Re: Ninjadvloot.inc v2.5 Updated 01/01/2 - NEW! Now handles buying items

pete said it was probably the alert list as that is the only thing it adds to enough to do that.
 
Re: Ninjadvloot.inc v3.0 Updated 05/09/2013

Ninjadvloot.inc v3.0 Updated 05/09/2013 Uploaded
Clears alert list every 5 min to prevent memory increasing.
 
Re: Ninjadvloot.inc v3.0 Updated 05/09/2013

still leaking. After about 3 hrs eqgame.exe was using 1.4 gbs of ram and the screen went black on that window only.
 
Re: Ninjadvloot.inc v3.0 Updated 05/09/2013

There was a typo. The new version tested and uploaded.

Ninjadvloot.inc v3.1 Updated 05/11/2013
 
Found a bug where if you attempt to use /call DoLootStuff sell and one of the items you are attempting to sell is an attuned item you are already wearing (e.g. defiant gear). Ninjadvloot will attempt to sell the attuned version that you are wearing rather than the ones in your inventory.

Thought i would inform the powers that be.
 
There is also a bug where if it tries to loot a corpse and gets you cannot loot this corpse the next time it loots a corpse it will get stuck it wont loot any of the items and will just stand there in the loot window.
 
Out of out town this weekend but i will defiantly look at these soon as i get back
 
Ninjadvloot.inc v3.2 Updated 09/07/2013 Uploaded
Fixed buying 1 item.
Fixed a leak in You can't afford event that was causing macros to randomly end
Some minor fixes I don't remember
Added some debugging
 
You are looting too much crap then. i run my crew like 2 day and bags never fill up. Get like 2 tradeskill extraplanar bags at least. get all your big bags from /claim and destroy any quest, low level tradeskill and shit that is less than 30 plat
 
I am filling 2 characters with all pocketed journeymans bags and destroying all the crap. Most of it is elegant, elaborate and spells all selling for more than 100 plat each or tributes for more than 80. I do keep a bit of the trade stuff which ends up in trader bags and am using it to skill up all my alts in trades. I really am filling up 300+ slots a day on 2 characters. The alchemy and rogue drops which sell for a fortune are the biggest problem. There are so many different ones and they are so rare that they fill up the bags too fast. There have been days that I can fill 6 bags on those alone in 2-3 hours. I just thought it would be a nice feature.
 
That feature I would code in to kiss. Ninjadvloot is just the mechanism to loot kiss controls it
 
attachment.php

NinjAdvLoot 4.6.2 11/15/2014
The most recent version is included in our compile.

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
  • /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
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 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
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.

Buy stuff from vendors macro syntax
Rich (BB code):
/call Buy "Flask of Water" 40

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

Buystuff Macro
Rich (BB code):
| Buystuff 2.0 by Maskoi 12/15/2013
| Exclusive macro for members of Redguides.com
| Don't steal it or we'll punch your fase!
| Usage:
| Target your vendor
| /mac buystuff "water flask" 100

#include ninjadvloot.inc

sub main

/declare StuffToBuy string outer
/declare AmountToBuy int outer

    /if (${Defined[Param0]}) {
        /varset StuffToBuy ${Param0} 
    }
    /if (${Defined[Param1]}) {
        /varset AmountToBuy ${Param1} 
    } 
    
/call SetupAdvLootVars
        /call npc "${Taget.CleanName}"
        /call Buy "${StuffToBuy}" ${AmountToBuy}
/return

NinjAdvLoot 4.6.1
Fixed some annoying errors in the npc and buy routines.
I may have added a wildcard global section to the loot.ini. DON"T USE IT!

NinjAdvLoot 4.6.2
hard coded 1 second delay between loot and corpse item retrieval to resolve loot latency issue.
Resolves corpse closing before looting is started on some older systems.
 

Attachments

Last edited by a moderator:
There is a specific line in KISS that toggles loot off if your inventory is full. Can always comment that out yourself and test it. I have been working on a side project to help me make the most plat off my group. I have a looter order that toggles in order that I specify. I also set my loot value to only things worth 5+ or 10+ depending on the zone.
 
Thanks, I'll look for that inventory full line. I've recently moved to another zone and I'm not filling up on elaborate and elegant anymore so it is not nearly as bad, but then again my bazaar mule is getting empty.
 
Just noticed something strange with 3.2. SK is pullertank and a second toon is set to loot. Both are running KISS 6.8.1. Tank is paused and dead mob is 40 feet away from loot toon. She runs 1/2 way to dead mob then turns around and runs back to camp. Does this over and over. I reverted to 3.0 and the problem is gone.
 
Re: NinjAdvLoot 4.3 beta 09/25/2013 Please try then post

Hi Maskoi

I'm having a few problems with sellstuff.mac. I keep getting stuff like this spammed in the logs:

Rich (BB code):
[MQ2] Selling Titanium Gears

Invalid item slot 'null'

I'll then stop the macro, it will carry on for a few more items and then spam the same thing about Selling Diamond. Sorry I know you mentioned in another thread that you are aware there are problems with Diamonds but thought it might be useful to know of other items it is tripping up with. It also doesn't seem to like Ambers

Rich (BB code):
[MQ2] Selling Amber

Invalid item slot 'null'
 
Re: NinjAdvLoot 4.3 beta 09/25/2013 Please try then post

Something recently changed in game that is causing that with gems specially diamonds. I have no clue what it is yet I hope to look into it this weekend.
 
Re: NinjAdvLoot 4.3 beta 09/25/2013 Please try then post

Hi Maskoi

Did you get a chance to look at the diamonds/Titanium Gears etc. problems? Also, I'm having issues with it not looting if there are more than one of something on a corpse (i.e. a stack of 2). If I flip over to the char who is doing the looting I see the confirmation box come up that you get when you click on something that is stacked showing number of items in the stack with an OK/Cancel style of dialog box. If I quickly press the OK button it will carry on fine. If I don't press the OK button then the window stays there for a few seconds, then disappears and the char logs "XXX item left on corpse". It is doing this with anything that there is more than one of on a corpse.
 
Re: NinjAdvLoot 4.3 beta 09/25/2013 Please try then post

I have not been able to find a fix for the diamond thing yet. I have not experienced problems trying to loot stacks. Still working on it though.
 
Re: NinjAdvLoot 4.3 beta 09/25/2013 Please try then post

I feel like this question is covered somewhere, but how do I change it so that it loots all no drop / quest items instead of ignoring them?
 
Re: NinjAdvLoot 4.3 beta 09/25/2013 Please try then post

Change the item in your loot.ini file to loot instead of ignore
 
Re: NinjAdvLoot 4.4 12/15/2013

is there a way to set it up just to loot something if its worth more than say 14pp.. could have sworn I read something a few days ago like that as I was skimming through and now I dont remember where it was
 
Re: NinjAdvLoot 4.4 12/15/2013

I have not added a plat value yet.
 
Re: NinjAdvLoot 4.4 12/15/2013

Hi Maskoi

Did you get anywhere with the gems problem? Not been able to use this really for the last couple of months as it goes into the invalid item slot loop every time I try to /mac sellstuff.
 
Re: NinjAdvLoot 4.4 12/15/2013

no not yet and it just seems to be diamonds. i sell all those first then it works fine
 
Re: NinjAdvLoot 4.4 12/15/2013

is there a way to set it up just to loot something if its worth more than say 14pp.. could have sworn I read something a few days ago like that as I was skimming through and now I dont remember where it was

That would be a great feature. Pain to code, but say put a value per slot at X, stackables would have to be worth >(X/stack size), and non-stackables worth >X, great way to quickly mess with vendor trash.
 
Re: NinjAdvLoot 4.4 12/15/2013

It happens to me with lots of different items unfortunately :( Gold Nuggets, Titanium Gears, Snake Fangs, Bone Chips, Snake Scales are some examples from when I've tried to use it recently.

[2014/01/07 00:13:46] [MQ2] Selling Bat Fur

[2014/01/07 00:13:48] [MQ2] Selling Snake Scales

[2014/01/07 00:13:50] [MQ2] Selling Snake Scales

[2014/01/07 00:13:51] Invalid item slot 'null'

[2014/01/07 00:13:53] [MQ2] Selling Snake Scales

[2014/01/07 00:13:53] Invalid item slot 'null'

It is like it tries to sell it twice or something.
 
Re: NinjAdvLoot 4.4 12/15/2013

You can try to increase the /delay between picking up the item and trying to sell it

Rich (BB code):
Sub SellToVendor(ItemToSell)
    /if (${Window[MerchantWnd].Open}) {
    :sell
        /echo Selling ${ItemToSell}
        /nomodkey /itemnotify ${FindItem[=${ItemToSell}].InvSlot} leftmouseup
        /delay 5
        /nomodkey /shiftkey /notify merchantwnd MW_Sell_Button leftmouseup
        /delay 2s
    /if (${FindItem[${ItemToSell}].InvSlot}) /goto :sell
    }
/return

Increase the /delay 5 to /delay 1s and see if it's better.
 
Release Ninjadvloot.inc

Users who are viewing this thread

Back
Top
Cart