kolton / d2bot-with-kolbot

d2bot game manager by D3STROY3R with kolbot libs by kolton for d2bs
346 stars 332 forks source link

which items go to stash? #544

Open kali4niakid29 opened 6 years ago

kali4niakid29 commented 6 years ago

how can I choose which type of items it saves in stash and also which it sells and which it doesn't pick up? am I able to change these setting and if so where?

vibeD2 commented 6 years ago

kolton.nip LLD.nip

kali4niakid29 commented 6 years ago

I found Kolton.nip, and lld. nip, but what do I do with it? I see that it lists items and such but how do I get it to keep certain items and all that? how does it work, how do I implement it?

vibeD2 commented 6 years ago

kolton.nip lines 137 and 138 super basic walk through. [name] == demonhead && [quality] == unique && [flag] != ethereal # [strength] == 30 && [enhanceddefense] == 150 // andariel's visage [name] == demonhead && [quality] == unique && [flag] == ethereal // andariel's visage

the first one is showing a demonhead with quality being unique. !=ethereal means not ethereal with [str] ==30 && EH equal to 150 so basically if its not ethereal, it has to be a perfect 30 str, 150 ed% andy just to keep it. the second one is the ethereal version, where it will keep it if its ethereal period.

now the original has a code line on 135 about a shako. im pretty sure its an == for it being perfect. to change that all you have to do is change the first = into a > and change the value to a lower number.(if you dont know what to put in just google the name and find its lowest values and plug those in or lower so it makes sure to pick it up and keep it.) there is my example but shakos do drop lower than 115 [name] == shako && [quality] == unique && [flag] != ethereal # [defense] >= 115 // harlequin crest

edit: adding // in FRONT of the start of a line of code will cancel picking something of a type up. e.g. runes btw i added a few //[name] == elrune # # [MaxQuantity] == 1 //[name] == eldrune # # [MaxQuantity] == 1 //[name] == tirrune # # [MaxQuantity] == 1 //[name] == nefrune //[name] == ethrune # # [MaxQuantity] == 1 //[name] == ithrune # # [MaxQuantity] == 1 //[name] == talrune # # [MaxQuantity] == 1 //[name] == ralrune # # [MaxQuantity] == 1 //[name] == ortrune # # [MaxQuantity] == 2 //[name] == thulrune # # [MaxQuantity] == 2 //[name] == amnrune # # [MaxQuantity] == 1 //[name] == solrune # # [MaxQuantity] == 2 //[name] == shaelrune # # [MaxQuantity] == 1 //[name] == dolrune # # [MaxQuantity] == 1 //[name] == helrune # # [MaxQuantity] == 2 //[name] == iorune # # [MaxQuantity] == 1 //[name] == lumrune # # [MaxQuantity] == 1 [name] == korune # # [MaxQuantity] == 1 [name] == falrune [name] == lemrune # # [MaxQuantity] == 1 [name] == pulrune [name] == umrune [name] == malrune [name] >= istrune && [name] <= zodrune ^ this one looks complicated but its rather easy [name] is greater than or equal to ist rune and [name] is less than or equal to zod

kali4niakid29 commented 6 years ago

in front of some of these "[names]" , sometimes I see a ( . what does a "([name] " mean, for examples I am looking at lines 50 51 and 52. all three of those are white items and I was wondering why the ( ) was in the front and end of the code. thanks, the previous info helped me tremendously.

vibeD2 commented 6 years ago

pretty sure its just another way to separate all the information such as names, and mods. not completely 100% glad i could help :) Edit: to keep all of a certain item just change the first = to a <=141(for a shako on the defense)