• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->
TBM Augment Swap

Lua - TBM Augment Swap (1 Viewer) 1.9

Joined
Dec 27, 2022
RedCents
4,633¢
Pronouns
He/Him
MrInfernal submitted a new resource:

TBM Augment Swap [Testers Wanted] - Auto swap TBM augments!

Testers needed! I do not have any characters with access to TBM gear, augs, or currency.

Expected functionality:
  • Look up augments by level, slot and suffix
  • Automatically set type 9 defaults based on Almar's Guide
  • Clicking the Check button will scan through equipped armor and jewelry
    • Will return number of augs needed and Remnant cost
  • Clicking Buy will run through a function that should...

Read more about this resource...
 
Well glad I caught this thread in the What's New updates. My primary group is using TBM armor and is nearing the next upgrade at 90. And I have a secondary FTP group that just hit 75 that I'll be gearing up with TBM as well. Just added the script to my watch list. I'll test it out with my next major upgrade and report back with any issues I find.
 
After reading some more about the aug swapping, I think it might be best to sell the augments before buying the new ones. I'm a little worried about shifting the code around as I haven't been able to test it. Hoping that the first wave of testing is going well. Please let me know if anything isn't working as expected or if it is doing exactly what it's supposed to do.
 
Tried on my 92 SK tonight. She's wearing soulstones of the sturdy in 19 pieces, 5 of which are already lvl 90 (Glorious), and 14 that are lvl 85 (Extravagant). When I click 'Check', it says "Need to purchase 7 Soulstone of the Sturdy for 2660 Remnants". I was expecting 14.

When I clicked 'Buy' (without sell option checked), it throws the IMGui error below:

1706525551878.png

I haven't tried it with the sell option checked as I want to hand my existing augs down to the lvl 85 group I have.
 
Tried on my 92 SK tonight. She's wearing soulstones of the sturdy in 19 pieces, 5 of which are already lvl 90 (Glorious), and 14 that are lvl 85 (Extravagant). When I click 'Check', it says "Need to purchase 7 Soulstone of the Sturdy for 2660 Remnants". I was expecting 14.

When I clicked 'Buy' (without sell option checked), it throws the IMGui error below:


I haven't tried it with the sell option checked as I want to hand my existing augs down to the lvl 85 group I have.

Thank you so much! Looks like I was checking the wrong aug slot for visible type 9 (Should be slot 3, but I had it as 2). The error was due to calling a variable from a different scope which I've fixed. Made the fixes and I'm pushing the update now.
 
Glad to hear it, I'll let you know if I encounter any issues next time I go to buy some augments. There is one thing I just thought of that would be nice to have, the ability to set the maximum you want to purchase. As it's possible a player may just want to upgrade a certain number of pieces and then use the leftover remnants for purchasing for another char. Granted, yes, you can do the math and split them beforehand. Just thought it would be a nice convenience.

Edit: Also, it might be a good idea to add functionality for a dry run, with output of the actions/steps to the MQ window. So that the user can test what will happen before pulling the trigger.
 
Glad to hear it, I'll let you know if I encounter any issues next time I go to buy some augments. There is one thing I just thought of that would be nice to have, the ability to set the maximum you want to purchase. As it's possible a player may just want to upgrade a certain number of pieces and then use the leftover remnants for purchasing for another char. Granted, yes, you can do the math and split them beforehand. Just thought it would be a nice convenience.

Edit: Also, it might be a good idea to add functionality for a dry run, with output of the actions/steps to the MQ window. So that the user can test what will happen before pulling the trigger.
I like the idea of a dry run function. I’m gonna see if I can get that in some time today.

Regarding setting a buy limit, how did you picture that working? As in the program says there are 8 slots to fill, but you say to only do the first 5?
 
Yes, only do the first X, where X is the minimum of either the total slots detected or the maximum that is set. This way you can hold off in spending all the remnants and pass the remaining to another char. Again, not a huge need, just a nice to have one. As people can do the math and split the remnants beforehand manually.
 
Yes, only do the first X, where X is the minimum of either the total slots detected or the maximum that is set. This way you can hold off in spending all the remnants and pass the remaining to another char. Again, not a huge need, just a nice to have one. As people can do the math and split the remnants beforehand manually.
I have some ideas for how to handle doing less than the max that I’m going to work on, but wanted to get the debug build out first. It actually helped with cleaning up functionality, so thank you for your suggestions
 
Gave it another shot tonight, and it doesn't seem to be working. Made sure everything MQ related was up-to-date. This was while trying to by lvl 95 Regal Sultone of the Sturdy. It seems to be expecting a numeric value for arg 3 and is getting a string instead.

After that failure it goes through failing all the rest of the steps and then thinks it was successful at the end with the "Complete! Inserted 8..."
If I'm reading the traceback correctly, we have:

init.Lua: lines 714-716:
INI:
ImGui.Register('TBM Aug Swapper', function()
    openGUI = tbmAugs(openGUI)
end)

init.Lua: line 699: in function 'tbmAugs':
doAugs('armor', 9, augPrefixIndex, type9Index)

init.Lua: line 427: in function 'doAugs':
mq.cmdf('/timed %d /invoke ${Merchant.SelectItem[=%d]}', Delay, solvent)

init.Lua: line 536 in function 'doAugs':
mq.cmdf('/timed %d /echo Selling %d old augs!', #removedAugs)

---

Also, I noticed that it is asking to get Class XIV Augmentation Distillers for removing the Glorious Sulstones of the Sturdy (lvl 90) I have. These actually only need the Class XIII Aug distiller.

Screenshots of Error and debug mode:

1707126841164.png1707126956406.png1707130740756.png
 
Vee, I truly appreciate your help and I’m sorry that this isn’t quite working out. I’ll get that issue tracked down and double check solvents.
 
Looks like the typo on line 427 was just as you said, expecting a string and getting a number. I've fixed that. I also fixed the missing '/echo' for the Debug: Selling message. Regarding the solvents, I forgot to decrement the solvent name. However, I've added a loop that gets the actual solvent name required rather than trying to anticipate what level and hardcode a table. This should reliably use the lowest required solvent.
 
MrInfernal updated TBM Augment Swap [Testers Needed] with a new update entry:

Finally working!

After much blood sweat and tears, I can happily announce that I've gotten it working. Does not do weapon augments or check for solvents/augments in inventory yet.

Cleaned up level sorting so the proper augments for your level should show up as the default. Due to some interactions with automation plugins, it sends a CWTN pause command, but I'm not sure if RGMercs, KissAssist or MuleAssist will interfere. It also pauses MQ2AutoForage.

Due to an issue with FindItem defaulting to the first...

Read the rest of this update entry...
 
MrInfernal updated TBM Augment Swap with a new update entry:

Aug insertion no longer requires Find Item window. Also checks for augs in inventory before buying

  • Thanks for inspiration from @kaen01, finding the augment to insert no longer requires using the Find Item window!
  • The program will also check if you already have the augments in inventory before buying
  • Using the Check function will also search for augments and tell you how many more you need

I currently have it set to report which gear is getting the augment. Let me know if this is annoying or if you want that added for removing augments as...

Read the rest of this update entry...
 
I’m still really new to TBM armor and augments and can’t find too much about the augments for weapons and shields. I can see that there are type specific (1HS, 2HS, knight only, etc), but those things only seem to be type 9.

Are there type 5 augments for weapons? And which ones fit in shields? If anyone knows or can point me to a page that explains, I’d appreciate it. Looking to add the weapons part to the Lua.
 
Yes, only do the first X, where X is the minimum of either the total slots detected or the maximum that is set. This way you can hold off in spending all the remnants and pass the remaining to another char. Again, not a huge need, just a nice to have one. As people can do the math and split the remnants beforehand manually.
After a major overhaul, it's now possible to select which items you'd like to upgrade, in case you didn't want to do them all. I hope that this solves the issue.
 
Lua - TBM Augment Swap

Users who are viewing this thread

Back
Top