d2jsp
Log InRegister
d2jsp Forums > d2jsp > Ladder Slasher > A Question About The Game Item History
Add Reply New Topic New Poll
Member
Posts: 5,349
Joined: Feb 3 2008
Gold: 17,786.52
Oct 16 2018 08:00am
Hey!

i just bought this sword and saw some interresting information afterwards (The bought/sold) history

Mythical steel sword
Level Req: 10
Damage: 8 to 82

+73% Enhanced Effect
+1% Critical Flux
+1% Quick Draw
+2% Heal Mastery
+2% Fire Mastery
Bought/Sold on 16 Oct 2018 11:41 for 7.00 forum gold
Bought/Sold on 16 Oct 2018 00:11 for 3.00 forum gold
Bought/Sold on 10 Oct 2018 08:33 for 1.00 forum gold


1)
Can i check items on marketplace before buying them?

2)
Can i check my items that i bought many years ago? would be fun to see :)
Member
Posts: 22,669
Joined: Mar 17 2008
Gold: 1,187.41
Oct 16 2018 08:06am
checking items before you buy them no. well kinda. if you knew who was selling it you could check their marketplace to get the id number and then check it yes. but otherwise no.

You can certainly go back through your gold logs to see old purchases
Member
Posts: 14,128
Joined: Feb 11 2007
Gold: 81,707.28
Oct 16 2018 10:17am
If you look at someone’s character, you can right click on an item and select inspect element. This will take you to where you can find the item ID ######### then you can plug that into an item link and check it.
Member
Posts: 73,191
Joined: Jun 12 2007
Gold: 81.80
Trader: Trusted
Oct 16 2018 11:30am
You can also install "Tampermonkey" and run this script (made by Dante iirc)
It works for both hc and sc, some other scripts that has been out there for many years will only work for 1 core, but this works for both

It will show the Item ID under the items on the character screens like this -> https://i.imgur.com/A02ou1N.jpg

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`)});

})()


This post was edited by RistVaLL on Oct 16 2018 11:31am
Member
Posts: 23,911
Joined: Aug 21 2007
Gold: 2,494.65
Trader: Trusted
Oct 16 2018 12:44pm
if you use the script you can even click the items in profiles to see the history
Go Back To Ladder Slasher Topic List
Add Reply New Topic New Poll