What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
Status
Not open for further replies.
you're the best man! :)
Make sure to post your pp donation address when you're done with the plugin!


edit: oh i actually have a question. How fast will the plugin convert the currency (like delay between the purchases?) and when will he execute the task (everytime he visits the stash+vendor?)?

It's sleeping Average Latency * 2 after every purchase to avoid mistakes. Still it's not 100% accurate if you lag spike. There is no function to wait until the item is purchased, I could build it myself... Maybe later.
I didn't test if not using this sleep will change anything.
Task is executed everytime the bot is in town/hideout after vendoring and stashing everything.


EDIT: Ok I was bored and made a function that wait's until the item is appeared in the inventory. So it's buying as fast as possible.

Code:
public static async Task<bool> WaitForCurrencyToBeBought(string itemname, int currentAmount, int timeout = 1000)
        {
            var deadlock = Stopwatch.StartNew();
            while (deadlock.ElapsedMilliseconds < timeout)
            {
                var newAmount = Inventory.MainInventory.Items.Where(itemC => itemC.Name == itemname).Sum(b => b.StackCount);
                if (newAmount > currentAmount)
                {
                    StashBuddy.Log.DebugFormat("[WaitForCurrencyToBeBought] \"{0}\" bought after {1} miliseconds.", itemname, deadlock.ElapsedMilliseconds);
                    return true;
                }
                   
                await Coroutine.Sleep(20);
            }

            StashBuddy.Log.ErrorFormat("[WaitForCurrencyToBeBought] Timeout.");
            return false;
        }
 
Last edited:
that transmutes and tp scrolls to wisdom scrolls was a smart idea. Can you also add armor and weapon scraps to wisdom scrolls while your at it
 
It's sleeping Average Latency * 2 after every purchase to avoid mistakes. Still it's not 100% accurate if you lag spike. There is no function to wait until the item is purchased, I could build it myself... Maybe later.
I didn't test if not using this sleep will change anything.
Task is executed everytime the bot is in town/hideout after vendoring and stashing everything.


EDIT: Ok I was bored and made a function that wait's until the item is appeared in the inventory. So it's buying as fast as possible.

Code:
public static async Task<bool> WaitForCurrencyToBeBought(string itemname, int currentAmount, int timeout = 1000)
        {
            var deadlock = Stopwatch.StartNew();
            while (deadlock.ElapsedMilliseconds < timeout)
            {
                var newAmount = Inventory.MainInventory.Items.Where(itemC => itemC.Name == itemname).Sum(b => b.StackCount);
                if (newAmount > currentAmount)
                {
                    StashBuddy.Log.DebugFormat("[WaitForCurrencyToBeBought] \"{0}\" bought after {1} miliseconds.", itemname, deadlock.ElapsedMilliseconds);
                    return true;
                }
                   
                await Coroutine.Sleep(20);
            }

            StashBuddy.Log.ErrorFormat("[WaitForCurrencyToBeBought] Timeout.");
            return false;
        }
API can handle buying.

Code:
var err = LokiPoe.InGameState.PurchasePanel.Purchase(item);
                if (err != LokiPoe.InGameState.PurchaseError.None) return err;
 
that transmutes and tp scrolls to wisdom scrolls was a smart idea. Can you also add armor and weapon scraps to wisdom scrolls while your at it
I'll add it to todo, but initial release's going to have only buying task to narrow possible errors.

API can handle buying.

Code:
var err = LokiPoe.InGameState.PurchasePanel.Purchase(item);
                if (err != LokiPoe.InGameState.PurchaseError.None) return err;

I got it already
Code:
if (LokiPoe.InGameState.PurchasePanel.Purchase(ToBuy) != LokiPoe.InGameState.PurchaseError.None)
                    return false;
But I'm 90% sure it's not waiting until item is bought only returns an error if it can't be bought (look at PurchaseError enum) and buying too fast in loop will result with some of them being skipped.
 
currency exchange is a really really nice feature.
*thumbs up*
 
I decided to delay the official beta because of new AIF release. Until all major bugs in IAF will be fixed, I'd don't release new plugin that may cause errors.
This is because I want to not make tonyx life harder with catching the bugs.

Here is the (pre)beta release, but do not post any error's in AIF thread while using StashBuddy. This version may not work because I've changed many things without testing.
 

Attachments

Tested, its work well with me :) thanks u for this project :)
And can u make it buy Portal Scroll with Scroll of Wisdom, and i'll manual make item filter sell Armourer's Scrapy and Blacksmith's Whetstone to Scroll of Wisdom :D
 
Tested, its work well with me :) thanks u for this project :)
And can u make it buy Portal Scroll with Scroll of Wisdom, and i'll manual make item filter sell Armourer's Scrapy and Blacksmith's Whetstone to Scroll of Wisdom :D

Thanks for the first feedback. Good that it works well for you. If you encounter any bugs, write it.

I have Currency downgrade in plans for the next update(s). But buying portals with wisdoms? That's a waste of time and wisdom's.
 
Thanks for the first feedback. Good that it works well for you. If you encounter any bugs, write it.

I have Currency downgrade in plans for the next update(s). But buying portals with wisdoms? That's a waste of time and wisdom's.

Definitely. but it could be decent to have it as an option for the mongoloids that would want to use it Kappa
 
Thanks for the first feedback. Good that it works well for you. If you encounter any bugs, write it.

I have Currency downgrade in plans for the next update(s). But buying portals with wisdoms? That's a waste of time and wisdom's.

I know, but with bot >10 char (and Town Portal gem maybe), you have too much wisdoms/portal and cant do everything with it :( cant sell and cant use all :(
 
New AIF have option to not pickup scrolls after you reach certain amount.

I can't change my thread name QQ. If any mod is reading this please change it to "[Plugin] StashBuddy"
 
I know, but with bot >10 char (and Town Portal gem maybe), you have too much wisdoms/portal and cant do everything with it :( cant sell and cant use all :(

New AIF have option to not pickup scrolls after you reach certain amount.

I can't change my thread name QQ. If any mod is reading this please change it to "[Plugin] StashBuddy"

Yesh, after few days of testing, it works pretty nicely. Basically if you fall under a given amount of scrolls it starts picking them up to the max amount you've set. this save lot of space in stash. :D
 
how does stashbuddy interact with map running from hideout?
does it move the bot to town and a currency swap merchant every time he reaches the threshold amount?
 
how does stashbuddy interact with map running from hideout?
does it move the bot to town and a currency swap merchant every time he reaches the threshold amount?

Exactly. I'm thinking about adding some timer on that to check amounts for example every 10 minutes. Stopwatch is added already into the code, just need to make the logic and GUI for it.
 
hm wouldnt it even be enough to check that just once per day?
cause like this it makes hideout mapping pretty pointless imo since u kinda use the town all the time ^^


but i guess i can adjust the timer once its build-in in the json anyways afterwards, right?
 
hm wouldnt it even be enough to check that just once per day?
cause like this it makes hideout mapping pretty pointless imo since u kinda use the town all the time ^^


but i guess i can adjust the timer once its build-in in the json anyways afterwards, right?

Why use the town all the time? Use high tresholds like 200 and you won't see townrunning too often. If you are getting 200 alts per run then Kudos for you ;p
Next version may be released in a bit because I'm going to work on some private plugin to connect EB with my relogger.
 
hmm, i probably should go back to bed xD
you're totally right, a timer isnt even needed since u can just control the trigger with a high start threshold.
thx!
 
This plugin needs to limit itself to like the first 10 tabs or something or stop checking ALL the tabs after every map. takes forever so only use i have for it is to turn it on every few hours to get rid of the crap (minus the hundreds of scrolls cluttering up the stash lol; throw those in the guild stash for other to waste)
 
This plugin needs to limit itself to like the first 10 tabs or something or stop checking ALL the tabs after every map. takes forever so only use i have for it is to turn it on every few hours to get rid of the crap (minus the hundreds of scrolls cluttering up the stash lol; throw those in the guild stash for other to waste)

Welcome to our world brah!
 
Additional configuration options will come in time. Im busy now on other things. Basically I made this plugin for myself but I wanted to help the community as well :)
 
Status
Not open for further replies.
Back
Top