Archived Comments (locked)

in
Subscribe to Archived Comments 7 posts, 7 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
seedpied User

Is this going to be updated for the new season?

 
LooGie User

can someone please make a script that will do this for the yahoo salary cap game? dammit why wont someone make this..i can't be the only person on the planet that hates not having any idea how i did in salary cap until 5 in the morning

 
mikea128 User

works great! glad someone made the update to actually tally the points.

now someone just needs to figure out that defensive scoring :)

 
alexmc Script's Author

To get rid of decimal scoring, you will need to add Math.floor function around each stat where I'm calculating fantasy points. For example, on line 135, you'll need to change:
row.childNodes[5].textContent*PPRushYd
to Math.floor(row.childNodes[5].textContent*PPRushYd)

and repeat for each stat category that's being added up.

Repeat for the other lines (151, 162) where fantasy points calculation are taking place.

 
bodah User

Another suggestion is to remove the decimal scoring. Every league I have played in, you only get points once a benchmark is reached. For example a QB gets 1 point for every 50 yards. If he has 75 yds passing, he would get 1 point, not 1.5.

Since I don't know the programming, I cannot make the suggestion of how to fix it.

Thanks anyway for the excellent script.

 
Tim Harding Scriptwright

awesome script. One improvement though: Fumbles tend to be shown twice by Yahoo (once in rushing and once in receiving) if a player has both rushes and receptions. This shouldn't be counted twice in your script. Also, the script doesn't seem to count QB fumbles when the QB doesn't have any rushing attempts.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel