• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Chance some items

    Discussion in 'Archives' started by hansmeier, Nov 9, 2014.

    1. Nepthys

      Nepthys Community Developer

      Joined:
      Oct 13, 2014
      Messages:
      89
      Likes Received:
      1
      Trophy Points:
      0
      if not, you could add a second custom 'loot items task' before the basicgrindbot one, that will only pick up specific white items if X number of chance orbs are in your stash etc


      Free up my time to release more code, help me pay my bills, and be awesome Support Me
       
      Last edited: Dec 24, 2014
    2. pushedx

      pushedx Moderator Moderator Buddy Core Dev

      Joined:
      Sep 24, 2013
      Messages:
      4,252
      Likes Received:
      290
      Trophy Points:
      83
      Yes, you can. Here's a plugin example of something that will loot 2 Royal Skeans, then disable the pickup filter for them. To test, you can change to any other item and you'll want to drop at least 3 outside of 50 units of each other.
      You need to register and have one post to see spoilers!
      I made a simple Pickup filter with the description of "ItemFilterExample-RoyalSkean" that simply looted Normal items by name. That should be enough to work from, but take care if you're going to go around modifying other filters.
       
    3. hansmeier

      hansmeier Member

      Joined:
      Jul 12, 2014
      Messages:
      158
      Likes Received:
      0
      Trophy Points:
      16
      Ok, thanks a bunch pushedx :)

      my Problem now is, I partially get the syntax, but the most important parts are still missing :l
      So I'll have to wait for darkbluefirefly to hack it together as he said :D

      (btw, if you only collect chance items with ~3L it won't fill your stash as fast and the chance droprate is nearly the same)
       
    4. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0

      Hmm with this partial code you "could" potentially shut off the item filter for the chaos recipe as well. Collecting one of each piece needed and shutting it off. Would you be able to re-enable it though
       
    5. hansmeier

      hansmeier Member

      Joined:
      Jul 12, 2014
      Messages:
      158
      Likes Received:
      0
      Trophy Points:
      16
      You mean like doing 1 Filter for each part of the Recipe and shutting each down. But ... you'd also have to do a ID Filter for each part, which you'd have to activate ...
       
    6. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0
      Well in theory after seeing that code yes you could. But honestly. You get 2chaos for unidentified rares so it wouldn't be necessary
       
    7. hansmeier

      hansmeier Member

      Joined:
      Jul 12, 2014
      Messages:
      158
      Likes Received:
      0
      Trophy Points:
      16
      Well, in the end you still have more, than you'd have when selling only unided or ided items
       
    8. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0
      Correct! but who the hell is going to code this damn thing ahaha. I have tried but I am pressed for time to sit and I literally don't have a clue on coding. If there was a how to guide or something I'd read the shit out of it, most of the stuff I come up with on here I pull out of my ass or skim through what others have done and try to piece it all together
       
    9. pushedx

      pushedx Moderator Moderator Buddy Core Dev

      Joined:
      Sep 24, 2013
      Messages:
      4,252
      Likes Received:
      290
      Trophy Points:
      83
      There's no need to do that for the chance/chaos recipe. I already have logic included (ChaosChanceRecipe) that shows how that can be done and someone else made one too.

      You could though, if you really wanted to, but since there's tons of other filters that might conflict, you'd also have to disable them too. I don't think playing with filters would be the solution for that task, but is reasonable for the task of limiting how much you pickup.

      You can change the Enabled property to enable/disable the filter. So to turn it on rather than off, just set to true.

      As for the process of randomly chancing items, then dropping them if they aren't what you want, that's totally doable, but there's some implementation issues with the current design that get in the way. Basically, I need to make WithdrawTask user configurable so other items can be withdrawn besides ID/TP. Next, Stashing logic needs to be user configurable in the same way, so items users want to withdraw, won't be put back into stash. Adding a task that simply drops items in your inventory that don't match any filters is easy as well, but also needs to be easily toggled on and off in the event the user wants to pickup an item and have it stashed while the bot is running, as opposed to having to create a filter for that item just to avoid the bot from dropping it the next time it starts.

      This can currently be done by replacing tasks and adding some more logic yourself, but it's a bit of work.

      I do have plans to change those aspects of the default tasks, but it's a longer term change right now.
       
    10. hansmeier

      hansmeier Member

      Joined:
      Jul 12, 2014
      Messages:
      158
      Likes Received:
      0
      Trophy Points:
      16
      @ pushedx - You'd actually don't even have to with draw the chances. I only pickup like 5 Sort of Items and only those with 3L or more so my stash doesn't get filled up too quickly.
      Now the thing actually missing is the "GoToYouStash.ChanceItemX1->ChanceItemX2->ChanceItemX3."-task and so on. Because we could ... borrow / partially ( :p ) the Stashsearch stuff from exVaults MapRunner.
       
    11. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0
      You should post your plugin then :p lol
       
    12. hansmeier

      hansmeier Member

      Joined:
      Jul 12, 2014
      Messages:
      158
      Likes Received:
      0
      Trophy Points:
      16
      I'm an idea guy but not able to code myself :x
      Doin the same shit for work :D
       
    13. darkbluefirefly

      darkbluefirefly Community Developer

      Joined:
      Nov 8, 2013
      Messages:
      1,927
      Likes Received:
      18
      Trophy Points:
      38
      Well from trying it last night. The approach I would do is.
      Since Push has the option in there to keep X item in inv for rolling strongboxes(plugin in the works btw =), just have to make sure I can kill all the mobs and return to location), keep The chances in inventory.
      Roll the item as you get them,
      If it's unique, go to town deposit, if it's rare, check it with current filter to not vendor or keep;
      1. If mapping, check how much space left, vs portals left, vs current map completion. Make some assumed logic based on that to either keep the yellow for a town run or drop it.
      2. If not mapping, keep it to sell when in town, or deposit.

      That's how I would approach this, the chance of the item being kept is very, very low, therefore no need to run to town every time to get chance orbs to chance it. Do it while grinding/maping. That's how I would do it if I was manually playing.

      Cheers.
       
    14. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0
      Yeah this is similar to how the competitors works I believe logic wise, I honestly would pay someone for this to work and for working chaos recipe. I mean working as in keeping one of each piece and selling when it has the piece during runs.
       
    15. hansmeier

      hansmeier Member

      Joined:
      Jul 12, 2014
      Messages:
      158
      Likes Received:
      0
      Trophy Points:
      16
      Any news? :l
       
    16. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0
      Besides, darkbluefly we really have no more community developers lol. I hope this changes soon as this is looking pretty grim for this bot
       
    17. darkbluefirefly

      darkbluefirefly Community Developer

      Joined:
      Nov 8, 2013
      Messages:
      1,927
      Likes Received:
      18
      Trophy Points:
      38
      That's not true, ExVault, Naut, and some others dev. Some are better then me and do not publish, but keep it private, this is understandable.

      Oh and yea I'll see if I can get it working.
       
    18. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0
      Totally understandable,

      Um Naut is done with path for a while as he has a new job and won't have time for it, and Exvault sorry I forgot about my bad!
       
    19. Nepthys

      Nepthys Community Developer

      Joined:
      Oct 13, 2014
      Messages:
      89
      Likes Received:
      1
      Trophy Points:
      0
      blasphemy and lies, this bot is all kinds of amazing ^_^


      Due to popular demand, I put something basic together
      no doubt darkblue's will be far more elegant when it's ready :)

      IMPORTANT NOTE: this is barely tested, it was made quickly over a remote connection while at work. shh ;)


      How to use:

      place the file in ExileBuddy\Plugins\ChanceItems\
      start ExileBuddy
      click on the 'Settings' tab at the top
      click on the 'BasicGrindBot' tab at the top
      tick the box for 'FillChanceStacks' if it is not already ticked
      click on the 'Plugins' tab at the top
      click on 'ChanceItems' in the list to the left
      tick the box for 'Enable Plugin', if it is not already ticked

      set your loot filter to pick up the white items you want to chance:
      click on the 'tools' tab at the top
      click on 'Item Filter Editor'
      follow the guide from https://www.thebuddyforum.com/exile...y-guides/157401-item-filter-editor-guide.html


      when in town it will chance specified white items, assuming you have chance orbs in your inventory already. It will not get chance orbs from your stash, or use them directly from your stash
      What it does after chancing will depend on your loot filters (if set to vendor magic / rare items, stash rares with specific attributes etc)
      You need to specify what items to chance by editing the code, but it's basic and outlined below:

      1. open ChanceItems.cs in notepad or similar
      2. find line 184. Alternatively, use the notepad search feature, and search for 'FullName'

      4. Edit this code, explanation and examples below
      //ENTER STUFF TO CHANCE BELOW THIS
      (item.FullName == "Gavel") ||
      (item.FullName == "Siege Axe") ||
      (item.FullName == "Glorious Plate")
      //ENTER STUFF TO CHANCE ABOVE THIS

      in the included example, it will chance any normal gavel, siege axe or glorious plate
      You can add more by copying the format, and including another line, just change the name to what you want to chance. Note: If it is not the bottom item, it should have '||' at the end of the line

      example adding 'occultist's vestment':

      //ENTER STUFF TO CHANCE BELOW THIS
      (item.FullName == "Gavel") ||
      (item.FullName == "Siege Axe") ||
      (item.FullName == "Glorious Plate") || <-- we added || at the end of this line, which was not there previously. This is because it is no longer the last item
      (item.FullName == "Occultist's Vestment") <-- this does not have ||, as it is the last item
      //ENTER STUFF TO CHANCE ABOVE THIS

      Example removing 'Glorious Plate':

      //ENTER STUFF TO CHANCE BELOW THIS
      (item.FullName == "Gavel") ||
      (item.FullName == "Siege Axe") <-- we removed the || as 'siege axe' is now the last item
      //ENTER STUFF TO CHANCE ABOVE THIS


      example of only 'siege axe':
      //ENTER STUFF TO CHANCE BELOW THIS
      (item.FullName == "Siege Axe") <-- we removed the || as 'siege axe' is the last (and only) item
      //ENTER STUFF TO CHANCE ABOVE THIS

      5. save the file in notepad
      6. start exilebuddy, and hope there's no red text that it failed to compile :)


      Do any developers have suggestions on how I can make this more user friendly?
      I could have it chance any normal item without checking the name, but does anything else show up as rarity.Normal, such as quest items? which may cause problems
      I could have textboxes in the plugin settings from within the bot, to type the names to check against. But I wouldn't know how to make a variable number of them, and it's unknown how many item types the user may want to chance. Could maybe get around it by making a large amount like 20


      Thanks!

      View attachment ChanceItems.cs


      Free up my time to release more code, help me pay my bills, and be awesome Support Me
       
      Last edited: Dec 24, 2014
    20. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0
      Bravo! seem's basic enough
       

    Share This Page