d2jsp
Log InRegister
d2jsp Forums > d2jsp > Ladder Slasher > How To Get Item History?
Add Reply New Topic New Poll
Member
Posts: 11,740
Joined: Feb 13 2007
Gold: 27,537.37
Aug 1 2018 10:15pm
See these around and was wondering to help me see the price of gear.
Member
Posts: 67,645
Joined: Dec 4 2005
Gold: 103,900.00
Aug 1 2018 10:48pm
here's what i do (firefox)

go to your char here: https://forums.d2jsp.org/user.php?c=3&i=311907&p=34586
right click - > view page source
above every item you'll see a string of numbers in green, we'll use for example 1214353686
go to your gold log and find an LS purchase and click the link to the item : https://ladderslasher.d2jsp.org/itemHistory.php?i=[REPLACE ALL THIS INCLUDING BRACKETS WITH THE #]&c=0
end product
https://ladderslasher.d2jsp.org/itemHistory.php?i=1214353686&c=0

hope that helps
Member
Posts: 44,167
Joined: Jun 30 2007
Gold: 228.25
Aug 1 2018 11:03pm
There is an add on to download with fire fox also for tampermonkey. The id is right under then item when you look at your LS chars. One of the guys from silence wrote it! Dante or Patl I think.

// ==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 BLC on Aug 1 2018 11:04pm
Member
Posts: 11,740
Joined: Feb 13 2007
Gold: 27,537.37
Aug 1 2018 11:48pm
Quote (McClain @ 1 Aug 2018 23:48)
here's what i do (firefox)

go to your char here: https://forums.d2jsp.org/user.php?c=3&i=311907&p=34586
right click - > view page source
above every item you'll see a string of numbers in green, we'll use for example 1214353686
go to your gold log and find an LS purchase and click the link to the item : https://ladderslasher.d2jsp.org/itemHistory.php?i=[REPLACE ALL THIS INCLUDING BRACKETS WITH THE #]&c=0
end product
https://ladderslasher.d2jsp.org/itemHistory.php?i=1214353686&c=0

hope that helps


Thanks, use chrome but basically the same.
Go Back To Ladder Slasher Topic List
Add Reply New Topic New Poll