d2jsp
Log InRegister
d2jsp Forums > d2jsp > Ladder Slasher > Any Way To Check Previous Prices > Of Specific Items
Add Reply New Topic New Poll
Member
Posts: 27,150
Joined: Nov 24 2006
Gold: 253,169.00
Dec 11 2018 10:23am
I can see that you are able to pull up trade histories on your own items purchased through MP

Is there any way to check for specific items either owned by yourself or someone else?
Member
Posts: 59,984
Joined: Jul 10 2006
Gold: 7,863.56
Dec 11 2018 10:28am
If you can get the item ID (Look at items on his chars) and substitute that number for one of your own, you should be able to get the item history.
Member
Posts: 27,150
Joined: Nov 24 2006
Gold: 253,169.00
Dec 11 2018 10:30am
Quote (Paparick @ 11 Dec 2018 17:28)
If you can get the item ID (Look at items on his chars) and substitute that number for one of your own, you should be able to get the item history.


How do I get that ID?

I think I found out how. I found a # when using "inspect element" in firefox.

This post was edited by Monze on Dec 11 2018 10:34am
Member
Posts: 8,277
Joined: Jun 24 2007
Gold: 473.51
Dec 11 2018 10:43am
hit right click on mouse and hit view page source scroll through everything and find the item and you should see the numbers copy and paste and u will se the item as u want
(cntrl +U)

This post was edited by threesomes on Dec 11 2018 10:44am
Member
Posts: 24,317
Joined: Dec 16 2005
Gold: 45,351.77
Trader: Trusted
Dec 11 2018 11:04am
Quote (Monze @ Dec 11 2018 12:30pm)
How do I get that ID?

I think I found out how. I found a # when using "inspect element" in firefox.


that would be it, then you just pull up another item sale in your forum gold history and replace the item number with the number of the item you wish to know the history of.
keep in mind that items prices have changed a lot over the years, so just because something sold for a price in 2005 or 2010, doesn't mean you will get it for that price today, or get that price for it.
Member
Posts: 23,911
Joined: Aug 21 2007
Gold: 2,494.65
Trader: Trusted
Dec 11 2018 11:12am
if you want to see histories easy, you can use the script below for tampermonkey. With it you simply can click items in ppl inventory to open the item history
if you wanna know a value you can also just make a p/c topic, you don't need to own an item for that

Code
// ==UserScript==
// @name Show Item IDs
// @namespace http://tampermonkey.net/
// @version 0.1
// @author Dante@JSP
// @match http*://forums.d2jsp.org/user.php?c=*&i=*&p=*
// ==/UserScript==

/* jshint ignore:start */
(function() {
var elements = Array.apply(null, document.querySelectorAll('dd.ce'))
// Get all elements except the first because we don't want that
.slice(1)
// Convert nodeList to native arrays and remove the text elements
.map(a => Array.apply(null, a.childNodes).filter(b => b.nodeType !== 3))
.reduce( (prev, curr) => prev.concat(curr), [])
// Filter empty elements that are at the end
.filter(a => a.className !== 'c');

elements
.reduce( (prev, curr) => {
// Previous node was a comment and current node is an item
if (prev.nodeType === 8 && curr.nodeType === 1) {
const id = prev.data.match(/\d{1,99}/)[0];
const core = document.querySelectorAll('.ftbt')[0].childNodes[1].childNodes[2].childNodes[1].innerHTML === 'Original' ? 0 : 1;
const url = `http://ladderslasher.d2jsp.org/itemHistory.php?i=${id}&c=${core}`

curr.innerHTML += `<br/><a href=${url}>ID: ${id}</a>`;
curr.style.height = '100%'
}

// Always return the node for the next iteration
return curr;
}, {nodeType: null})


var maxHeight = elements
.reduce( (prev, curr) => prev > curr.offsetHeight || !curr.offsetHeight ? prev : curr.offsetHeight, 0);

elements
.forEach(ell => {ell.nodeType === 1 && (ell.style.height = `${maxHeight}px`)});

})()
Member
Posts: 27,150
Joined: Nov 24 2006
Gold: 253,169.00
Dec 11 2018 11:12am
Quote (Juston @ 11 Dec 2018 18:04)
that would be it, then you just pull up another item sale in your forum gold history and replace the item number with the number of the item you wish to know the history of.
keep in mind that items prices have changed a lot over the years, so just because something sold for a price in 2005 or 2010, doesn't mean you will get it for that price today, or get that price for it.


Yea I'm aware that much has changed since I last played. However, just seeing items being sold in random topics helps give me an idea of what to offer/expect from specific items.

Quote (Meridius @ 11 Dec 2018 18:12)
if you want to see histories easy, you can use the script below for tampermonkey. With it you simply can click items in ppl inventory to open the item history
if you wanna know a value you can also just make a p/c topic, you don't need to own an item for that

Code
// ==UserScript==
// @name Show Item IDs
// @namespace http://tampermonkey.net/
// @version 0.1
// @author Dante@JSP
// @match http*://forums.d2jsp.org/user.php?c=*&i=*&p=*
// ==/UserScript==

/* jshint ignore:start */
(function() {
var elements = Array.apply(null, document.querySelectorAll('dd.ce'))
// Get all elements except the first because we don't want that
.slice(1)
// Convert nodeList to native arrays and remove the text elements
.map(a => Array.apply(null, a.childNodes).filter(b => b.nodeType !== 3))
.reduce( (prev, curr) => prev.concat(curr), [])
// Filter empty elements that are at the end
.filter(a => a.className !== 'c');

elements
.reduce( (prev, curr) => {
// Previous node was a comment and current node is an item
if (prev.nodeType === 8 && curr.nodeType === 1) {
const id = prev.data.match(/\d{1,99}/)[0];
const core = document.querySelectorAll('.ftbt')[0].childNodes[1].childNodes[2].childNodes[1].innerHTML === 'Original' ? 0 : 1;
const url = `http://ladderslasher.d2jsp.org/itemHistory.php?i=${id}&c=${core}`

curr.innerHTML += `<br/><a href=${url}>ID: ${id}</a>`;
curr.style.height = '100%'
}

// Always return the node for the next iteration
return curr;
}, {nodeType: null})


var maxHeight = elements
.reduce( (prev, curr) => prev > curr.offsetHeight || !curr.offsetHeight ? prev : curr.offsetHeight, 0);

elements
.forEach(ell => {ell.nodeType === 1 && (ell.style.height = `${maxHeight}px`)});

})()


How do I use that script? I have never tried it :)

E: Whoah that was easier than I thought. Managed to figure it out although I have 0 experience with scripts.

Thanks a lot Meridius. Really helpful!

This post was edited by Monze on Dec 11 2018 11:17am
Member
Posts: 23,911
Joined: Aug 21 2007
Gold: 2,494.65
Trader: Trusted
Dec 11 2018 11:19am
install tampermonkey for chrome on pc

it is an free addon: https://chrome.google.com/webstore/search/tampermonkey

top right corner it should be available and then say new script



remove the code listed and copy in the code i posted, then click save



now restart chrome and test it on your characters

Go Back To Ladder Slasher Topic List
Add Reply New Topic New Poll