Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function arenatest()
- arena = 1
- while (arena <= 3) do
- teamName, teamSize, teamRating, teamPlayed, teamWins, seasonTeamPlayed, seasonTeamWins, playerPlayed, seasonPlayerPlayed, teamRank, playerRating = GetArenaTeam(arena)
- if (teamSize == 2) then print("2v2 team rating is " ..teamRating.. ". Your personal rating is " ..playerRating.. ".")
- rating = teamRating - playerRating
- if (teamRating > 1500) and (rating < 100) then
- fivespoints = math.floor(1511.26/(1+1639.28*math.pow(2.71828, -0.00412*teamRating)))
- total = math.ceil(fivespoints*0.76)
- print("You will receive " ..total.. " arena points for this week in the 3vs3 bracket.")
- elseif (teamRating > 1500) and (rating > 100) then
- fivespoints = math.floor(0.22*playerRating+14)
- total = math.floor(fivespoints*0.76)
- print("You will receive " ..total.. " arena points for this week in the 3vs3 bracket.")
- elseif (teamRating < 1500) then
- fivespoints = math.floor(0.22*teamRating+14)
- total = math.ceil(fivespoints*0.76)
- print("You will receive " ..total.. " arena points for this week in the 5vs5 bracket.")
- end
- arena = arena + arena
- end
- if (teamSize == 3) then print("3v3 team rating is " ..teamRating.. ". Your personal rating is " ..playerRating.. ".")
- rating = teamRating - playerRating
- if (teamRating > 1500) and (rating < 100) then
- fivespoints = math.floor(1511.26/(1+1639.28*math.pow(2.71828, -0.00412*teamRating)))
- total = math.ceil(fivespoints*0.88)
- print("You will receive " ..total.. " arena points for this week in the 3vs3 bracket.")
- elseif (teamRating > 1500) and (rating > 100) then
- fivespoints = math.floor(0.22*playerRating+14)
- total = math.floor(fivespoints*0.88)
- print("You will receive " ..total.. " arena points for this week in the 3vs3 bracket.")
- elseif (teamRating < 1500) then
- fivespoints = math.floor(0.22*teamRating+14)
- total = math.ceil(fivespoints*0.88)
- print("You will receive " ..total.. " arena points for this week in the 5vs5 bracket.")
- end
- arena = arena + arena
- end
- if (teamSize == 5) then print("5v5 team rating is " ..teamRating.. ". Your personal rating is " ..playerRating.. ".")
- rating = teamRating - playerRating
- if (teamRating > 1500) and (rating < 100) then
- total = math.floor(1511.26/(1+1639.28*math.pow(2.71828, -0.00412*teamRating)))
- print("You will receive " ..total.. " arena points for this week in the 3vs3 bracket.")
- elseif (teamRating > 1500) and (rating > 100) then
- total = math.floor(0.22*playerRating+14)
- print("You will receive " ..total.. " arena points for this week in the 3vs3 bracket.")
- elseif (teamRating < 1500) then
- total = math.floor(0.22*teamRating+14)
- print("You will receive " ..total.. " arena points for this week in the 5vs5 bracket.")
- end
- arena = arena + arena
- end
- if (teamSize == 0) then
- --print("Your " ..arena.. "vs" ..arena.. " team is non existent.")
- arena = arena + arena
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment