<% template EntrySvc(starwave.webgames.minigame.challenge.services.EntrySvc obj) context = obj.minigameContext entryTo = context.entryDBTo isOwner = context.isOwner schedule = obj.schedule dateFormat("MMMd") currentPeriod = schedule.currentPeriod entry = context.entryDBTo.entry challenge = obj.challenge nRank = entry.rank %> <% entryTo.fullName %> Clubhouse <% Header("EntrySvc") %>
<% entryTo.fullName %> Clubhouse
<% EntryHeader(context) %>
Group Directory

' '' '' '' '' '' '' '' '' '' '' '' '
<% gamedayToday = currentDate() numberFormat("00") gamedayToday = '19' & gamedayToday.month + 1 & '' & gamedayToday.date numberFormat(null) gameday = schedule.currentDay gamedayPrevious = schedule.previousDay nGameDayYesterday = 0 if (gamedayPrevious != null) { nGameDayYesterday = gamedayPrevious.gameDay } if (isOwner) { '' '' '' '' '' '' '' '' '' '
Options Scoring
' /*'Change Roster: ' foreach(position in challenge.positions) { if (position.positionID > 0) { '| ' } '' & position.abbrev & ' ' } */ '8/14 games mark end of season' '
Change Team Name
' /*'Renegotiate Value
'*/ 'Transaction Logs
 ' /* date = currentDate() if (currentPeriod.periodID == 1 and date < currentPeriod.lockDate) { 'Box Score: Available on ' & currentPeriod.lockDate } else { //'Box Score: Archive
' //'Scoring Summary' } */ previousGameday = gameday.gameDay - 1 if (previousGameday == 211100) { previousGameday = 211031 } if (previousGameday == 211200) { previousGameday = 211130 } if (previousGameday == 210100) { previousGameday = 211231 } if (previousGameday == 210200) { previousGameday = 210131 } if (previousGameday == 210300) { previousGameday = 210228 } if (previousGameday == 210400) { previousGameday = 210331 } if (previousGameday == 210500) { previousGameday = 210430 } if (previousGameday < 210404) { previousGameday = 210404 } if (previousGameday == 210400) { previousGameday = 210331 } if (previousGameday == 210500) { previousGameday = 210430 } if (previousGameday == 210600) { previousGameday = 210531 } if (previousGameday == 210700) { previousGameday = 210630 } if (previousGameday == 210800) { previousGameday = 210731 } if (previousGameday == 210900) { previousGameday = 210831 } //'Box Score: Available 5/29' 'Box Score: Previous | ' & gameday.date & '
' 'Box Score: Archive
' 'Scoring Summary
Overall Rank: ' & nRank & '' '
' } else { '' '' '' '' '' '' '' '
Options Scoring
' '' 'None available ' '' //date = currentDate() //if (currentPeriod.periodID == 1 and date < currentPeriod.lockDate) //{ // 'Box Score: Available on ' & currentPeriod.lockDate //} //else //{ //'Box Score: Archive
' //} //'Box Score:  Available 5/29' 'Box Score: ' & gameday.date & '
' 'Box Score: Archive
' 'Scoring Summary
Overall Rank: ' & nRank & '' '
' } %>

<% /**************************************************** BUILD ROSTER TABLE ***************************************/ playersInTeam = obj.entryPlayers if (playersInTeam.length == challenge.slots.length) { playerValue = 0.0 teamLockedValue = 0.0 teamCurrentValue = 0.0 if (isOwner) { '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' foreach (item in playersInTeam) { player = item.player playerStats = item.playerTotals playerValue = playerValue + player.value teamLockedValue = teamLockedValue + item.lockedSalary teamCurrentValue = teamCurrentValue + item.currentSalary if (player.positionID == 5) { '\n' '' '' '' '' nullFormat("--") gp = 0 fgp = 0 ftp = 0 rpg = 0 apg = 0 tpg = 0 spg = 0 bpg = 0 ppg = 0 VGMpoints = 0 gp = playerStats["nGamesPlayed"].asInteger if (gp > 0) { if (playerStats["nFieldGoalsAttempted"].asInteger > 0) { fgp = playerStats["nFieldGoalsMade"].asDouble / playerStats["nFieldGoalsAttempted"].asInteger } if (playerStats["nFreethrowsAttempted"].asInteger > 0) { ftp = playerStats["nFreethrowsMade"].asDouble / playerStats["nFreethrowsAttempted"].asInteger } rpg = playerStats["nRebounds"].asDouble / playerStats["nGamesPlayed"].asInteger apg = playerStats["nAssists"].asDouble / playerStats["nGamesPlayed"].asInteger tpg = playerStats["nTurnovers"].asDouble / playerStats["nGamesPlayed"].asInteger spg = playerStats["nSteals"].asDouble / playerStats["nGamesPlayed"].asInteger bpg = playerStats["nBlocks"].asDouble / playerStats["nGamesPlayed"].asInteger ppg = playerStats["nNBAPoints"].asDouble / playerStats["nGamesPlayed"].asInteger VGMpoints = playerStats["nVGMPoints"].asDouble } numberFormat("0") '' numberFormat(null) '' '' '' '' } else { '\n' '' '' '' '' nullFormat("--") gp = 0 fgp = 0 ftp = 0 rpg = 0 apg = 0 tpg = 0 spg = 0 bpg = 0 ppg = 0 VGMpoints = 0 gp = playerStats["nGamesPlayed"].asInteger if (gp > 0) { fgp = playerStats["nFieldGoalsMade"].asDouble / playerStats["nFieldGoalsAttempted"].asInteger ftp = playerStats["nFreethrowsMade"].asDouble / playerStats["nFreethrowsAttempted"].asInteger rpg = playerStats["nRebounds"].asDouble / playerStats["nGamesPlayed"].asInteger apg = playerStats["nAssists"].asDouble / playerStats["nGamesPlayed"].asInteger tpg = playerStats["nTurnovers"].asDouble / playerStats["nGamesPlayed"].asInteger spg = playerStats["nSteals"].asDouble / playerStats["nGamesPlayed"].asInteger bpg = playerStats["nBlocks"].asDouble / playerStats["nGamesPlayed"].asInteger ppg = playerStats["nNBAPoints"].asDouble / playerStats["nGamesPlayed"].asInteger VGMpoints = playerStats["nVGMPoints"].asDouble } numberFormat(null) '' numberFormat("#.000") '' numberFormat("#.000") '' '' '' '' '' '' '' '' '' '' } } '' '' '' '' '\r\n\r\n' numberFormat("#.0") // teamLockedValue = teamLockedValue / 10.0 // 50.00000000000001 if (teamLockedValue > challenge.entryBudget + 0.00000000000001) { '' '' '' '
Active 2001 Season Totals Value
POSPLAYERNEXT GPFG%FT%RPGAPGTPGSPGBPGPPG RATINGLOCKED
' & challenge.positions[player.positionID].abbrev & '' & player.firstName & ' ' & player.lastName & ', ' & player.proTeam.abbrev if (player.isInjured !=0) { '*' } '' & player.addlText & ' Winning Pct. ' & playerStats["nWins"].asInteger & '/' & gp & ' = ' numberFormat("#.000") if (gp == 0) { '.000' } else { playerStats["nWins"].asDouble / playerStats["nGamesPlayed"].asDouble } ' ' & item.currentSalary & '' & item.lockedSalary & '
' & challenge.positions[player.positionID].abbrev & '' & player.firstName & ' ' & player.lastName & ', ' & player.proTeam.abbrev if (player.isInjured !=0) { '*' } '' & player.addlText & ' ' & gp & '' fgp & '' ftp & '' numberFormat("0.0") rpg & '' & apg & '' & tpg & '' & spg & '' & bpg & '' & ppg & ' ' & item.currentSalary & '' & item.lockedSalary & '
Total Rating  ' '' & teamLockedValue & '
' '
' obj.minigame.stringTable["Entry-MessageOverSalary"] '' } else { '

' & teamCurrentValue & '' & teamLockedValue & '
Available Rating ' & challenge.entryBudget & '' & challenge.entryBudget & '
Difference ' & challenge.entryBudget - teamCurrentValue & '' & challenge.entryBudget - teamLockedValue & '
' } } } %> <% if (isOwner) { '

' '' '
* - Player is injured. Make sure to adjust your rosters accordingly.

' } %> <% /*********** BUILD WEEKLY TABLE ***************/ numberFormat("#") '' '' '' '' '' '' '' foreach(n in 6..14) { '' } /*foreach(dayItem in currentPeriod.days) { dateStr = dayItem.date & '' numberFormat("#") '' }*/ '' '' '' '' '' '' '' weekTotal = 0.0 weekScores = obj.dailyEntryPointsForPeriod numberFormat(null) numberFormat("#") foreach (daycount in 0..8) { weekTotal = weekTotal + weekScores[daycount] '' } /*foreach (cell in weekScores) { weekTotal = weekTotal + cell '' }*/ '' '' numberFormat("#.#") '' '' '' avgTotals = obj.dailyAveragePointsForCurrentPeriod foreach (daycountAvg in 0..8) { '' } /*foreach (cell in avgTotals) { if ((cell == null) or (cell == "")) { '' } else { '' } }*/ '' '' '' '' '' bestTotals = obj.dailyBestPointsForCurrentPeriod foreach (daycountBest in 0..8) { '' } /*foreach (cell in bestTotals) { if ((cell == null) or (cell == "")) { '' } else { '' } }*/ '' '' '' '
Season Results Overall
  AUG' & n & '' & toUpperCase(dateStr) & 'WEEK TOTALPCT
' & entry.nickname & '' & weekScores[daycount] '' & cell '' & weekTotal & '' & context.entryDBTo.points & '' & context.entryDBTo.percentile & '
Average' & avgTotals[daycountAvg] & '-' & cell & '' & obj.averagePointsForCurrentPeriod & '' & obj.overallAveragePoints & '50.0
Best' & bestTotals[daycountBest] & '-' & cell & '' & obj.bestPointsForCurrentPeriod & '' & obj.overallBestPoints & '100
' '

' %>

<% Footer("EntrySvc") %>

Renegotiate Value
If a player's market value decreases, you can simply 'renegotiate values', by clicking on the renegotiate value link. This will essentially give you that player for the new, lower rating. This service only applies to players with ratings lower than their locked values and can only work in your favor.