kolton / d2bot-with-kolbot

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

ItemLogger - How do I make the manager log sold items? #732

Open 123lolbox opened 5 years ago

123lolbox commented 5 years ago

I've tried finding any information without success about certain questions. (Issue #250 didn't help)

How can I make my manager log sold items? This would be great to see in case i've forgotten to undo // some important pickit items, like SoJ or something. If there is a possibility to do this, can you make the ItemLogger only log sold items by rarity, like rare, unique and not magic, normal?

Also, I have added lines for pul, um and mal rune, but my manager is not logging them, even though my character keeps them. This happens for all new lines, doesn't matter what item type. What can I do for this?

Help is appreciated.

DarkHorseDre commented 5 years ago

Why didnt #250 help? it shows how to log items to the manager that are sold.

For the runes, if you are using limedrop, you need to enable the following as appropriate: Config.ShowLowRunes = true; // show/stop low runes to appear in the item log Config.ShowMiddleRunes = true; // show/stop middle runes to appear in the item log Config.ShowHighRunes = true; // show/stop high runes to appear in the item log Config.ShowLowGems = true; // show/stop low gems (chipped, flawed, normal) to appear in the item log Config.ShowHighGems = false; // show/stop high gems (flawless, perfect) to appear in the item log

if not, there is a post somewhere of how to customised the same manually (which I did a couple months ago, then removed). I'll dig it out in a day or so if you don't find it

RNCTX commented 5 years ago

Bump on this, is there an easy way to specifically log runes to the manager?

This seems like a pretty obvious regression versus the older versions of the manager, which did show everything that was kept. It's nice to be able to look at a glance (particularly if running on a remote machine and you're checking by VNC) to see how many, if any, runes were kept after a certain number of hours.

DarkHorseDre commented 5 years ago

setting the above config parameters to true does that no?

RNCTX commented 5 years ago

It seems that it shows high runes, not low ones. Got the first high runes after the reset using this newest version today, and it showed Surs, an Ohm, etc, just not low ones. Not sure about Ist, but it didn't log a Mal.

In that respect I suppose it's a minor thing ;).

DarkHorseDre commented 5 years ago

I dont understand. there is a config for low medium and high runes. last ladder (a month or so ago) I saw this working correctly. Please confirm you are setting parameters correctly and d2bs is not showing picked high runes even when Config.ShowHighRunes = true is set.

Neverwhite commented 4 years ago

I had the same problem, i have turned on Showmediumrunes in character script. But what i have found is that it doesn't override the config script. What fixed it for me was to open op config.js and set showmediumrunes = true; . Now it works!

As for logging items. It logs items you have set your pickit to keep. It doesnt log the items it vendors, but not sure you want to have all that to show in the log.

internethelper commented 3 years ago

I've tried finding any information without success about certain questions. (Issue #250 didn't help)

How can I make my manager log sold items? This would be great to see in case i've forgotten to undo // some important pickit items, like SoJ or something. If there is a possibility to do this, can you make the ItemLogger only log sold items by rarity, like rare, unique and not magic, normal?

Also, I have added lines for pul, um and mal rune, but my manager is not logging them, even though my character keeps them. This happens for all new lines, doesn't matter what item type. What can I do for this?

Help is appreciated.

Took a few tries but its not too bad. This will show you what was checked against your pickit and sold as you said, in case its selling something you wanted to keep so you can adjust your settings,.

Using Notepad++ as you should it makes all your life easier, open Town.js which is in libs\common\ and follow these steps:

  1. Ctrl + F and type kept. Click Search for All in Current Document. Double click your first result on the bottom window pane, mine is Line 721. It'll say Misc.itemlogger("Kept", item);
  2. Copy the line directly below it that says Misc.logItem("Kept", item, result.line); mine is Line 722
  3. Scroll down past the next break; where the next lines are default: Misc.itemLogger("Sold", item); item.sell();
  4. Make an empty line between the Misc.itemLogger and item.sell and paste the line Misc.logItem("Kept", item, result.line);
  5. Replace "Kept" with whatever you'd like, SOLD! pops for me. Mine looks like this: break; default: Misc.itemLogger("Sold", item); Misc.logItem("SOLD!", item, result.line); //added this whole line like in Kept above item.sell(); Let the original code do the work for us.