Page 1 of 1
Point Winnings Figure-Outer?
Posted: Mon Dec 17, 2007 6:12 pm
by wrightfan123
I haven't looked in depth, but is there a Grease Monkey script that will tell you the amount of points each person would win if the someone won the game right at that moment? And if there isn't, could someone please make it?
-W123
Posted: Mon Dec 17, 2007 6:14 pm
by Risktaker17
I think there is, but I don't have any add-ons. So I dunno anything.
Posted: Mon Dec 17, 2007 9:36 pm
by Ishiro
A Greasemonkey script would never be completely correct. There is a math formula for the points, but it is based on the current scores of the players, player current scores are not listed on the game screen, since Greasemonkey is just javascript that runs on the displayed page, it would not have the current scores to calculate from.
It could estimate based on rank though...
Posted: Mon Dec 17, 2007 9:56 pm
by hecter
Ishiro wrote:A Greasemonkey script would never be completely correct. There is a math formula for the points, but it is based on the current scores of the players, player current scores are not listed on the game screen, since Greasemonkey is just javascript that runs on the displayed page, it would not have the current scores to calculate from.
It could estimate based on rank though...
But greasemonkey can pull information from other pages, can it not?
Posted: Mon Dec 17, 2007 11:11 pm
by Aerial Attack
Posted: Tue Dec 18, 2007 8:30 am
by Ishiro
You could also handle it by writing essentially two scripts... the first would be for the Scoreboard, as you page through it, it will store all the scores to a file. The second would be the game script that would use the stored values in the file to do calculations. Your calculations would then be correct only immediately after a scoreboard refresh, and would become approximations after that.
The problem is that a script that pulled from other pages would be horrendously slow.
Now, if Lack were to modify the site to put the user's current score in the Hover text on the user's name or rank, then we could do something with it.
Posted: Tue Dec 18, 2007 5:40 pm
by Night Strike
Couldn't you just check the score from the person's profile page since it's included there?? (By the way, I know nothing about scripts, but that's a different page than the scoreboard.)
Posted: Tue Dec 18, 2007 10:45 pm
by Herakilla
what if you made a script that went off people's ranks, it would just be an estimate but gives you an idea
Posted: Tue Dec 18, 2007 10:47 pm
by Ishiro
Yes.. but checking the score in a 6 person game means the script has to open 6 pages to get the info it needs.
Seriously, getting info from another page is a pain in the ass. The best bet is to first try to get Lack to include the player's current score in the tool tip hover text of either their name or their rank icon. Once the info is on the game page somewhere, it will be easy to script the calculations.
Posted: Sat Dec 22, 2007 10:55 am
by philh
It's not quite that bad - you can download other pages using XMLHttpRequest, so no need to open a new browser window and no need to download images at the same time. The score would be easy to extract as long as the profile page doesn't change significantly.
Lack may not appreciate the server hit if a lot of people start using it, but it wouldn't be too hard to do.