Verified:

Zorp Game profile

Member
EE Patron
953

Aug 8th 2015, 6:23:48

In order to get the tax rate, this is how I figured it. I put this code into the "market" if statement:

var tax = jQuery('span[style*="font-size:10px"]').html();
if(tax===undefined){
tax = 0;
}else{
tax = tax.split("s a ")[1].split("%")[0];
}
tax=1+(tax/100);

So the if statement finds the %, then var tax becomes the multiple for the price.

Edited By: Zorp on Aug 8th 2015, 9:48:18
Back To Thread
See Original Post