kolton / d2bot-with-kolbot

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

Mulelog to plain text #2446

Open chamborz opened 4 years ago

chamborz commented 4 years ago

Hi guys, I would like to know if there is any way to change this text:

{"itemColor":-1,"image":"cm31","title":"Septic Grand Charm of Anthrax","description":"\xffc3Septic Grand Charm of Anthrax (85)\n\xffc0Keep in Inventory to Gain Bonus\n\xffc1Required Level: 15\n\xffc3+91 poison damage over 9 seconds$2717032171:605:7:2:3","header":"XXXX / XXXX","sockets":[]}

to this automatically:

Septic Grand Charm of Anthrax: Required Level: 15 \ +91 poison damage over 9 seconds

this is a line that comes from a txt that is in: d2bot-with kolbot\d2bs\kolbot\mules\Europe\XXXX

They are the logs of the objects that the bot is automatically storing in the mules, Any idea?

chamborz commented 4 years ago

I've been reading from the archive json2.js which is located on d2bot-with-kolbot\d2bs\kolbot\libs And I think that by modifying it you can get what I am looking for, but I don't dare because of my low level of English and my no knowledge of programming, any help?

Fa-b commented 4 years ago

This 'text' you want to change is a JSON string and is used by D2Bot and limedrop to gather item information for display in Charviewer and Inventory respectively. Also that 'text' contains the information necessary to generate the images on hover. You can of course write a JS function to strip off unwanted information, but you shouldn't modify whats written to these files because otherwise you will break functionality.

Why don't you say what you actually want to achieve, maybe you can have it easier or even done already.

chamborz commented 4 years ago

This 'text' you want to change is a JSON string and is used by D2Bot and limedrop to gather item information for display in Charviewer and Inventory respectively. Also that 'text' contains the information necessary to generate the images on hover. You can of course write a JS function to strip off unwanted information, but you shouldn't modify whats written to these files because otherwise you will break functionality.

Why don't you say what you actually want to achieve, maybe you can have it easier or even done already.

the only thing I am looking for is to be able to have a list of the objects with their statistics that I have stored in each mule, in order to be able to sell them, I can do it manually, but there are some cases in which I have mules full of small charms and it takes me about 2 hours be able to register it.

What I'm looking for is some way to make this happen automatically, I don't know if there is any kind of program or something that can do it automatically.