 MittenO Posts: 9
3/19/2014
|
As far as I can see, there is no easy way to figure out the total echo worth of all ones possessions. So I tried to calculate it with a calculator. That got old real fast. Therefore I made this code snippet.
var prices = $("li.shop-item").find("span.price").map(function(index,el){ if($(el).hasClass("currency-echo")){ return parseFloat(el.innerHTML); }else{ return 0; } }); var quantities = $("li.shop-item").find("div.item-quantity").map(function(index,el){return parseInt(el.innerHTML);});
var sum = 0.0;
for(var index = 0; index < prices.length ; index++){ sum += prices[index]*quantities[index]; }
console.log("Total echoes:" + sum);
Just open the "sell my things"-tab in the bazaar tab, pop that into the javascript console of your browser, (F12 in firefox) and press enter.
Do note that I have no actual proof that this is correct, but the number it gives for me (35476.01) seems plausible, since I have seven pages of stuff and counting the first page with a calculator gave me about 6000. YMMV.
Feel free to point some extremely easy way to do this without JS shenanigans or otherwise comment on the matter. Perhaps share your total?
EDIT: Fixed bug with non-echo sellables noticed by Martial Canterel. Now ignores them, so the total is somewhat below your actual worth. Would be too much work to cross-reference the values for those that sell for items. EDIT2: Fixed bug in bugfix.
PS. Tested with Chrome, poor alt, hand calculation. Seems to work. edited by MittenO on 3/20/2014 edited by MittenO on 3/20/2014
|
|
|
+16
link
|
 Martial Canterel Posts: 40
3/19/2014
|
Ahrg. Why didn't you post this yesterday. It would have saved me about 15 minutes of calculator typing (My worth is 28083.78 echoes by the way). Yout script doesn't give me quite the same result, but the error is within 5 percent. Could it be that there is a problem with the items that don't sell for money? Memories of Light for example
-- Lost in light
|
|
|
0
link
|
 MittenO Posts: 9
3/20/2014
|
Good catch, Martial. Should be better now. Although now it just ignores such items instead of counting them wrong.
|
|
|
0
link
|
 Martial Canterel Posts: 40
3/20/2014
|
There's only four items that don't sell for money, so adding them manually shouldn't be a problem. Also I've been wishing for some alternative to using a calculator for quite a while but sadly I can't do computer-voodoo like this, so thank you very much.
-- Lost in light
|
|
|
0
link
|
 Zeel Posts: 257
3/20/2014
|
My total worth is 11520.46 Echoes, meaning if I sold all my items, including my Overgoat, I would be able to purchase an Overgoat (having 1414.35 echoes already). Needless to say, I am reasonably satisfied with this result.
-- http://www.fallenlondon.com/Profile/Zeel - Zeel, also known as the Hollow Hellion. A soulless, heartless, empty individual who will only deal with those who are advantageous to him. http://www.fallenlondon.com/Profile/Jass The Sly Socialite, or the Devious Rogue, depending where you see her. Jass lives a double life, alternating between the God-fearing, popular socialite and one of the many crime-lords of London. IF YOU WANT A PARABOLAN KITTEN please send me a social engagement or menace reduction to either account, preferably not Coffee at Caligula's.
|
|
|
0
link
|
 Sara Hysaro Moderator Posts: 4514
3/20/2014
|
My total worth is 49,222.46 echoes. Not bad, though a lot of the value is in stuff I'd rather not sell.
-- http://fallenlondon.storynexus.com/Profile/Sara%20Hysaro Please do not send SMEN, cat boxes, or Affluent Reporter requests. All other social actions are welcome.
Are you a Scarlet Saint? Send a message my way to be added to the list.
|
|
|
0
link
|
 Ewan C. Posts: 675
3/20/2014
|
19K; which is a lot more than I expected, actually.
|
|
|
0
link
|
 mayexist Posts: 132
3/20/2014
|
Very useful, thank you!
(Ctrl+Shift+J for quick access to the console in Chrome.)
--
|
|
|
+2
link
|
 Shadowhand Posts: 197
3/20/2014
|
22647 echoes.
Bloody hell, Sara, how many Overgoats are you hoarding?
-- Twitter: @mortshadow - Fallen London: Shadowhand
Benjamin Gabbay, a silly and crafty individual of mysterious and indistinct intentions
|
|
|
0
link
|
 Sara Hysaro Moderator Posts: 4514
3/20/2014
|
I only have 1 Overgoat! I should probably upgrade to an Übergoat at some point.
-- http://fallenlondon.storynexus.com/Profile/Sara%20Hysaro Please do not send SMEN, cat boxes, or Affluent Reporter requests. All other social actions are welcome.
Are you a Scarlet Saint? Send a message my way to be added to the list.
|
|
|
0
link
|
 Gillsing Posts: 1203
3/20/2014
|
MittenO wrote:
Just open the "sell my things"-tab in the bazaar tab, pop that into the javascript console of your browser, (F12 in firefox) and press enter. When I did this in Opera Dragonfly, I had to press Ctrl+Enter to get the result. Almost 20k including the two things I have that are sold for other things than Echoes.
|
|
|
0
link
|
 Arthur_Pendlebrook Posts: 53
3/20/2014
|
Hmm...seems like I'm amongst the less wealthy individuals that have posted so far. I only have 5393.8 echoes at my disposal. edited by Arthur_Pendlebrook on 3/20/2014
-- Arthur Pendlebrook's Profile
|
|
|
0
link
|
 Pyrodinium Posts: 639
3/20/2014
|
4130.63 Echoes. Guess I'll need to grind more stuff.
-- My profiles: http://fallenlondon.storynexus.com/Profile/Pyrodinium (A Monster hunter on the hunt of his twin brother's killer. Overprotective dad of his twin's daughter) http://fallenlondon.storynexus.com/Profile/Rudolph~of~Taured (an indeterminate person of potentially rubbery lineage) * All social actions except photographers and loitering welcome!
|
|
|
0
link
|
 Sackville Posts: 295
3/20/2014
|
Just about 15.5k. Nice to know I could liquidate for a goat if I really wanted to, but I still feel poor.
|
|
|
0
link
|
 NiteBrite Posts: 1019
3/20/2014
|
Without Cider: 23016.47 echos, With Cider 103016.47 echos. Almost everything I own would be a terrible idea to sell though.
-- I AM currently accepting calling cards. Stats loss counter: reset, irrigo equivalent: none [00:34] <@ortab> NiteBrite's laugh is that of a condemned soul gazing into the abyss. Merciless Modiste avatar by Paul Arendt (based on an original image by Joe England) http://fallenlondon.storynexus.com/Profile/TheBriteModiste
|
|
|
+2
link
|
 RandomWalker Posts: 948
3/20/2014
|
16k - more than I thought. Long way from getting an overgoat though. Too much of that cash is on hard-to-replace items.
|
|
|
0
link
|
 dov Posts: 2580
3/20/2014
|
Very very nice script.
My method until now was to copy/paste my salable items into Notepad (7 times since I have 7 pages of stuff), then run a simple search/replace regular expression to convert it into a table that Excel can recognize and get the total sum from Excel (manually fixing the 4 items not sold for echoes). Much faster than typing in all the numbers in a calculator, but still annoying.
I've just run my manual sum method and can confirm that your script indeed gives the correct sum (26,447.4 echoes, in my case, after adjusting for the stuff not sold directly for echoes).
Many thanks, MittenO!
--
Want a sip of Hesperidean Cider? Send me a request in-game. Here's an_ocelot's guide how. (Most social actions are welcome. Please no requests to Loiter Suspiciously and no investigations of the Affluent Photographer)
|
|
|
0
link
|
 MittenO Posts: 9
3/20/2014
|
Aand thank to this script I realized, that with much weeping and gnashing of teeth, I could afford an overgoat!
So I bought one! Woohoo! http://fallenlondon.storynexus.com/Profile/HaapaPuu
|
|
|
+3
link
|
 Allanon Kisigar Posts: 164
3/20/2014
|
Only 5354.48 Echoes worth of items. I should work on that.
-- A Gentleman of distinct and peculiar interests.
Invites for social actions are most welcome, except for Boxed Cats, SMEN, and Affluent Photographer
|
|
|
0
link
|
 Worthstream Posts: 9
3/20/2014
|
Woohoo! I'm really rich: 920 echoes.
Maybe i'm not that rich, after all.
-- In the fallen City i'm known as Worthstream
|
|
|
+4
link
|