• 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
Resource icon

Release MQ2AutoLoot

Is this plugin supposed to work in raid format? I haven't been able to get it to work in a raid at all.
 
Maybe something to do with ISboxer or maybe just the in game windows and how MQ2 uses it. I use ISboxer, main on it's own screen, rest of the toons on a second screen. My main is the one that will not loot no-drop without me clicking yes on the no-drop pop up window. Also, when I have the Maps window up, other windows in the game are blank (no words). So maybe it goes beyond autoloot.

Toons on my other monitor don't have that problem and just tried setting on of them as master looter and it loots no-drop fine, but seems like when there is a no-drop that is lore and none can loot, it won't just leave it.
 
Maybe something to do with ISboxer or maybe just the in game windows and how MQ2 uses it. I use ISboxer, main on it's own screen, rest of the toons on a second screen. My main is the one that will not loot no-drop without me clicking yes on the no-drop pop up window. Also, when I have the Maps window up, other windows in the game are blank (no words). So maybe it goes beyond autoloot.

Toons on my other monitor don't have that problem and just tried setting on of them as master looter and it loots no-drop fine, but seems like when there is a no-drop that is lore and none can loot, it won't just leave it.

Are you unable to loot no drop items always or just when other screens are blank on your main toon?
 
I was having an issue with it looting the tier 1 eok armor and it being flagged as quest items (so defaults to keeping 10)
 
On my main toon, he doesn't loot no drop items at all. I can close Maps down and text work fine, but still will not loot no drops.
 
I seem to have fixed the issue, the changes have been pushed to the repository. But, you can use the attached dll till the next patch. Please let me know if there are any issues.
 
Last edited:
plure, can you provide us with the class syntax for the lines where we enter things like:

Scale Touched Tunic Facet=Gear|Classes|CLR|DRU|ENC|WIZ|BRD|BER|NumberToLoot|1

Is it CLR or CLE for cleric, BRD or BAR for bard, SHA or SHD for shadowknight, etc? Could you list out for all classes for our reference?

I had mine set to this, and it passed over my cleric and druid, and gave to my enchanter.. now.. my enchanter was next down in my grp list from my grp leader / ML... Is that how it is supposed to work, or for these types of lines, should give out in the order of listed for classes?

Love having this feature BTW! :)
 
plure, can you provide us with the class syntax for the lines where we enter things like:

Scale Touched Tunic Facet=Gear|Classes|CLR|DRU|ENC|WIZ|BRD|BER|NumberToLoot|1

Is it CLR or CLE for cleric, BRD or BAR for bard, SHA or SHD for shadowknight, etc? Could you list out for all classes for our reference?

I had mine set to this, and it passed over my cleric and druid, and gave to my enchanter.. now.. my enchanter was next down in my grp list from my grp leader / ML... Is that how it is supposed to work, or for these types of lines, should give out in the order of listed for classes?

Love having this feature BTW! :)

WAR|CLR|PAL|RNG|SHD|DRU|MNK|BRD|ROG|SHM|NEC|WIZ|MAG|ENC|BST|BER

Yes it sorts by group number and checks if they are the right class.
 
hmm i am getting a CTD when loading this lastest dll and cant log back in with it loaded, i have some dmp files if needed
 
The dll i posted was only good till the patch on 1/5. Those changes are in the regular red guides download now.
 
Hey Plure

Anyway we could get the option to set the gear tags from the command line? So I could just type /SetItem Gear|Classes|CLR|NumberToLoot|1
I've been using these tags to control who gets what and when and have been editing the file as I go but it would be nice to just target a group member and use a hot key like /SetItem Gear|Classes|${Target.Class.ShortName}|1
This would be handy for like new tradeskill items, I funnel my TS stuff to different characters and when new stuff drops this would make setting that on the fly a breeze.
Anyhow much thanks for this plugin
 
MQ2AutoLoot - Version 1.10

Purpose
This plugin is designed to handle loot from within the advanced looting window. It uses a loot.ini file located in your macro folder to define what your characters should do with each item. It can be setup to handle looting if your soloing, in a group, or a raid. If you use the advanced loot list for an item, that action is takes precedence over of this plugin. IE if you have set an item to Always Need/Always Greed/Never/Autoroll that action will be done as opposed to what you have set in your loot.ini. This means that this plugin will only work on items you have not previously specified an action for on the advanced loot list.

The master looter will keep looting items until their number of free bag slots reaches SaveBagSlots. You can set up to 2 different bag to not count when checking for free bag space with ExcludeBag1/ExcludeBag2. If the master looter can't loot or doesn't want (ie items set to quest/gear) the item he will try to pass it out to others in the group. The rest of the group will either set the item to need or no.

When passing out loot the ML waits DistributeLootDelay (default is 5 seconds) for group members to set need/no before passing out items. If two items comes up it waits the value set by DistributeLootDelay for the first item, then passes it out. After that they go to the next item to be passed out and again wait the value set by DistributeLootDelay before passing out that item. If you have any problems with this taking too long you can shorten DistributeLootDelay.


Usage
1. Turn on advanced looting.
- Type: /advloot​
- Click the Loot Settings Button on the Advanced Loot Window​
- Select Use Advanced Looting​
2. Load the plugin.
- Type: /plugin MQ2AutoLoot​
3A. If your in a group set someone to be the master looter. If you don't the leader of the group will assign himself to be the master looter.
3B. If your in a raid set someone to be the master looter. If you don't the leader of the raid will act as the master looter.

Settings - MQ2AutoLoot.ini
1. lootini= XXX absolute path to your Loot.ini file
- /AutoLoot lootini FILENAME -> Will set your loot ini as FILENAME.ini in your macro folder​
2. UseAutoLoot=[0/1] turns [off/on] MQ2AutoLoot. Default is on.
- /AutoLoot turn [on|off] -> Toggle autoloot​

General Settings - Loot.ini
1. RaidLoot= [0/1] turns MQ2AutoLoot [off/on] when your in a raid. Default is off.
- /AutoLoot raidloot [on|off] -> Toggle raid looting on and off​
2. SpamLootInfo= [0/1] turns [off/on] loot action messages to the MQ chat window. Default is on.
- /AutoLoot spamloot [on|off] -> Toggle loot action messages​
3. LogLoot=[0/1] turns [off/on] logging loot action messages for the master looter. Default is off.
- /AutoLoot logloot [on|off] -> Toggle logging of loot actions for the master looter​
4. CursorDelay=#n time delay in seconds before MQ2AutoLoot auto inventory items on your cursor. Default is 10 seconds.
- /AutoLoot cursordelay #n -> You will wait #n seconds before trying to auto inventory items on your cursor​
5. DistributeLootDelay= #n time delay in seconds before the master looter will attempt to distribute items to others in the group/raid. Default is 5 seconds.
- /AutoLoot distributedelay #n -> Master looter waits #n seconds to try and distribute the loot​
6. NoDropDefault= XXX default loot action for new no drop items. Default is quest.
- /AutoLoot nodropdefault [quest|keep|ignore] -> Will set new no drop items to this value​
7. QuestKeep= #n if nodropdefault is set to quest the quantity to keep will be #n. Default is 10.
- /AutoLoot questkeep #n -> If nodropdefault is set to quest your new no drop items will be set to Quest|#n​
8. SaveBagSlots= #n will stop looting when #n is the number of open bag slots, not including excludedbag1/excludedbag2. Default is 0.
- /AutoLoot saveslots #n -> Stops looting when #n slots are left​
9. ExcludeBag1= XXX will exclude bags named XXX when counting open bag slots. Default is Extraplanar Trade Satchel.
- /AutoLoot excludedbag1 XXX -> Will exclude bags named XXX when checking for how many slots you are free​
10. ExcludeBag2= XXX will exclude bags named XXX when counting open bag slots. Default is Extraplanar Trade Satchel.
- /AutoLoot excludedbag2 XXX -> Will exclude bags named XXX when checking for how many slots you are free​
11. BarMinSellPrice= #n the minimum price in plat you will barter all particular items, note you can set the individual item price minimum higher. Default is 1 plat.
- /AutoLoot barterminimum #n -> The minimum price for all items to be bartered is #n​
12. GuildItemPermission=[view only|public if usable|public]default permission for items placed in your guild bank. Default is "View Only".
- /AutoLoot guilditempermission "[view only|public if usable|public]" -> Change your default permission for items put into your guild bank​

Item Settings - Loot.ini
1. Keep
- Everyone will try to loot.​
- To set an item to keep. Put it on cursor and type : /SetItem Keep​
2. Sell
- Everyone will try to loot. During looting, this is treated the same as setting the item to "Keep".​
- To set an item to sell. Put it on cursor and type : /SetItem Sell​
3. Deposit
- Everyone will try to loot. During looting, this is treated the same as setting the item to "Keep".​
- To set an item to deposit. Put it on cursor and type : /SetItem Deposit​
4. Barter
- Example entry: Barter|#n​
- Everyone will try to loot. During looting, this is treated the same as setting the item to "Keep".​
- To set an item to barter. Put it on cursor and type : /SetItem Barter #n -> #n is the minimum price to sell that item when you use the barter functionality.​
5. Quest
- An example entry: Quest|#n​
- Everyone will try to loot up to #n of that item.​
- To set an item to quest. Put it on cursor and type : /SetItem Quest #n -> when someone gets #n of that item they will stop trying to loot them.​
6. Gear
- An example entry: Gear|Classes|WAR|PAL|SHD|BRD|NumberToLoot|#n|​
- Only classes listed will attempt to loot till they have #n.​
- To set an item to gear. Put it on cursor and type : /SetItem Gear, it will auto populate the entry and number to loot.​
7. Ignore
- Everyone will ignore these items.​
- To set an item to ignore. Put it on cursor and type : /SetItem Ignore​
8. Destroy
- The master looter will try and loot these items, once looted they will pick them out of your inventory and destroy them.​
- To set an item to destroy. Put it on cursor and type : /SetItem Destroy​
9. To check what an item is set to in your Loot.ini
- Put it on cursor and type : /SetItem Status​

Item Actions [Sell/Buy/Deposit/Barter]
1. Sell
- Target a Merchant.​
- Type: /AutoLoot Sell​
- The plugin will then sell every item marked "Sell" to that merchant.​
2. Buy
- Target a Merchant.​
- Type: /AutoLoot Buy "Item Name" #n​
- The plugin will then buy #n of that item from the merchant.​
3. Deposit - Personal Banker
- Target a personal Banker.​
- Type: /AutoLoot Deposit​
- The plugin will then deposit every item marked "Keep" into your personal banker.​
4. Deposit - Guild Banker
- Target a Guild Banker.​
- Type: /AutoLoot Deposit​
- The plugin will then deposit every item marked "Deposit " into your guild banker.​
- It will set the permission to either "view only|public if usable|public" depending on what you set "GuildItemPermission" in your Loot.ini.​
5. Barter
- Type: /AutoLoot Barter​
- It will attempt to barter everything marked "Barter|#n" in your Loot.ini as long as they meet your minimum price of #n plat.​

MQ2AutoLoot's TLO
AutoLoot.Active -> Will return true when you are using MQ2AutoLoot to handle your advanced looting .
AutoLoot.SellActive -> Will return true when your selling your items to a merchant.
AutoLoot.BuyActive-> Will return true when your buying itemat a merchant.
AutoLoot.DepositActive -> Will return true when your depositing your items to a personal/guild banker.
AutoLoot.BarterActive -> Will return true when your bartering your items.
AutoLoot.FreeInventory-> Will return the number of empty slots not in excludebag1 or excludebag2
 
Update Log
4/18/2018
Added the ability to handle looting while it in a raid.
/AutoLoot raidloot [on|off] -> Toggle raid looting on and off
Default is off.
Major rewrite of how MQ2AutoLoot handles sell/barter/deposit. They create their own thread now rather then do things every pulse. This should fix an issue with barter bugging out if you are casting a spell when trying to click sell. Also it just makes me happier to push these into their own thread rather then have them do things every pulse etc.
Fixed an issue that Chatwiththisname brought up that caused it to be bugged out when an item was marked to autoroll and had timed out. It would spam the loot action over and over again locking up your mouse etc.

5/9/2018
Fixed an issue with /autoloot sell. It was trying to sell before the merchant was done with the previous sale, which caused it to act all buggy.

5/17/2018
Fixed a feature where if you were wearing an item marked destroy, it would find the one being wore and destroy that one rather then the one in your inventory.

Requested Updates
  • Rather then have an absolute path in your MQ2AutoLoot.ini, use a relative path. -- I don't see any real issues with doing this, if anyone has any objections let me know.
  • Add the item setting "Tribute". These would be items used for tribute and program in /AutoLoot Tribute which would turn them in. -- This isn't really super high on my agenda unless we have alot of people clamoring for this.

Known Issues
  • The /autoloot sell has an issue where it will attempt to sell too fast and the merchant isn't ready. I've got a version that seems to solve the issue. It seems I've solved the issue by increasing the delay between selecting the item and attempting to sell the item, this isn't really satisfactory but it is what it is at this point.
 
Last edited:
I submitted a change to fixed an issue with /autoloot sell. It was trying to sell before the merchant was done with the previous sale, which caused it to act all buggy.


It wasn't a pretty fix, but will work for the time being. I really need to figure out when a merchant is done being busy with the previous sale.
 
It has been a while since I have worked with the windows objects, but if I remember correctly, the buttons have a status you can read, so once you click the sell button you can monitor the status until it becomes ready to click again.
 
It has been a while since I have worked with the windows objects, but if I remember correctly, the buttons have a status you can read, so once you click the sell button you can monitor the status until it becomes ready to click again.

Yeah that typically works, but for some reason

Rich (BB code):
pMerchantWnd->SellButton->Enabled

It returns true and then i try and sell to the merchant and get this error message "I am not interested in buying that."
 
I wonder if the item needs to be re-targeted? Plugins are so fast, the sell button could become ready before the item information has been refreshed in your inventory. So the vendor doesn't know what you are trying to sell to him.

I checked the button being ready to sell, and used an event "You've sold #1# #*# to #*#" to check for when the sell was finished. The event I used was based on selling from the barter screen, but the same thing can be done using an NPC vendor.
 
Maybe checking for the sold text is the way to go, currently I am waiting till the item is removed from your inventory before proceeding.
 
I wonder if the item needs to be re-targeted? Plugins are so fast, the sell button could become ready before the item information has been refreshed in your inventory. So the vendor doesn't know what you are trying to sell to him.

I checked the button being ready to sell, and used an event "You've sold #1# #*# to #*#" to check for when the sell was finished. The event I used was based on selling from the barter screen, but the same thing can be done using an NPC vendor.

No dice. I wait for the initial I'll give you blah blah blah and the sold message... neither of those messages seem to have any relationship with the merchant being busy. Thanks for the idea though, but at this point I can throw in 500 - 750 ms delay between selling and be fine with it.
 
Well it was worth a try. The delay should work as long as there is no lag between the client and the server.
plure

I'm noticing this now, never had an issue before with your (awesome) plugin.. when i do an /autoloot sell, its missing a few items, seems to get 'stuck' highlighted the item its trying to sell, but just sits there, merchant window open, yellow square highlighting the stack of item its trying to sell.. I suspect though it is indeed lag in selling stuff.. i find quite a delay ingame doing that, from clicking the Sell button to when it actually processes it.. perhaps this is the cause...
 
Well the only other thing I can think of doing is get a count of items before clicking the sell button, and then wait till the count changes and/or the event has been triggered.
 
The changes I pushed to the repository keep track of the items bag and slot, and checks to see if it is missing... if it isn't it will try again after 750 ms, up to 30 seconds at that point it will bug out and move to the next item... it should work for any reasonable amount of lag between you and the eq servers.
 
The changes I pushed to the repository keep track of the items bag and slot, and checks to see if it is missing... if it isn't it will try again after 750 ms, up to 30 seconds at that point it will bug out and move to the next item... it should work for any reasonable amount of lag between you and the eq servers.

I'm playing on test.. I will watch for the next update and see if it fixes the issue.. funny thing, its worked flawlessly for ages, only noticed that after this most recent (test) patch..
 
My main looter is constantly crashing the client. I have run debug and this is what i found:

Rich (BB code):
[2018/05/14 09:02:33] [MQ2] DEBUGHEALS CheckHealth leave Line#: 4901
[2018/05/14 09:02:33] [MQ2] DEBUGHEALS WriteDebuffs Enter Line#: 9318
[2018/05/14 09:02:33] [MQ2] DEBUGHEALS WriteDebuffs Leave Line#: 9335
[2018/05/14 09:02:33] [MQ2] DEBUGHEALS CheckHealth Enter Line#: 4754
[2018/05/14 09:02:33] [MQ2] DEBUGHEALS CheckHealth leave Line#: 4901
[2018/05/14 09:02:33] [MQ2] DEBUGHEALS WriteDebuffs Enter Line#: 9318
[2018/05/14 09:02:33] [MQ2] DEBUGHEALS WriteDebuffs Leave Line#: 9335
[2018/05/14 09:02:33] [MQ2] DEBUGHEALS CheckHealth Enter Line#: 4754
[2018/05/14 09:02:33] [MQ2] DEBUGHEALS CheckHealth leave Line#: 4901
[2018/05/14 09:02:33] [MQ2] DEBUGHEALS WriteDebuffs Enter Line#: 9318
[2018/05/14 09:02:33] [MQ2] DEBUGHEALS WriteDebuffs Leave Line#: 9335
[2018/05/14 09:02:33] [MQ2] DEBUGBUFFS WriteBuffs Enter Line#: 10570
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 0-Shadow of the Myrmidon:Permanent Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 1-Illusionary Spikes XVIII:Permanent Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 2-Shadow of Memories:Permanent Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 3-Shadow of Endurance:Permanent Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 4-Shadow of Expanding Mind:Permanent Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 5-Shadow of Defense:Permanent Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 6-Shadow of Ward:Permanent Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 7-Magmatic Veil Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 8-Defensive Proficiency II:Permanent Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 9-Geomantra XVIII Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 10-Spirit of Tala'Tak Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 11-Harmonious Expanse Effect II Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 12-Shadow of Knowledge:Permanent Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 13-Summon Familiar: Emerald Sokokar Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 14-Familiar: Emerald Sokokar Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 15-Mammoth's Force III Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 16-Hastening of Milyex Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 17-Blade Whirl IX Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 18-Glyph Spray VII Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 20-Talisman of Celerity I Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 21-Preeminent Foresight III Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 22-Focus of Artikla Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 23-Spirit of Dedication Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 24-Shared Merciless Ferocity Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 25-Warlord's Resurgence III Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 26-Voice of Perspicacity Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 27-Circle of Flameweaving Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 28-Spiritual Vibrancy Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 29-Group Pact of the Wolf VI Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 30-Surge of Shadow Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 31-Warlord's Tenacity XXII Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 32-Wade In to Battle Effect Line#: 10600
[2018/05/14 09:02:33] [MQ2] DEBUG WriteBuffs: 33-Sluggishness Line#: 10600
[2018/05/14 09:02:35] [MQ2AutoLoot] :: SList: Attempting to give Scroll: Illusion: Goblin Shaman to CENSORED
[2018/05/14 09:02:35] [MQ2AutoLoot] :: SList: Attempting to give Scroll: Illusion: Goblin Shaman to CENSORED

Then it crashes the EQ client and goes straight to desktop. Any ideas?
This is on FV btw
 
Could you tell me more about your group? How many are in it, does it include mercs, has someone left the group/zone.
 
Could you tell me more about your group? How many are in it, does it include mercs, has someone left the group/zone.

Full 6 box running KA latest version. No mercs. All in same zone. One outside group dps-er assisting MA.
 
Full 6 box running KA latest version. No mercs. All in same zone. One outside group dps-er assisting MA.

I'm assuming you aren't using a raid?

I am looking for any reason your groups are different than mine, they pass out loot everyday on fv and haven't crashed.
 
I run 12 character, 1 full group and 6 single characters for DPS support and I never have issues, so there has to be something special about the setup causing the crashes.
 
Release MQ2AutoLoot

Users who are viewing this thread

Back
Top
Cart