GitHub - tekjava/RiotAPI-Challenger-2016-May: Check your LoL Mastery here: · GitHub
Skip to content

tekjava/RiotAPI-Challenger-2016-May

Folders and files

Repository files navigation

LoLMastery.net - RiotAPI-Challenger-2016-May

THIS REPOSITORY IS FOR A RIOT API CHALLENGE ENTRY AND THE DATA IS PROVIDED BY RIOT AND ONLY RIOT. ANY DATA STORED IN OUR DATABASE IS FOR US AND US ONLY.

FOR A LIVE DEMO GO TO http://amazonsaver.uk/

With LoLMastery.net everybody can access anybody's data about their champion masteries with full detail, in addition to that it also shows their ranked info with every champion they have played and their ranked status. You can also find a top list which is sorted by highest champion points, separate from that there is a master and challenger top list with their champion points and mastery scores so players can compare there mastery stats to top ranked players.

We also include a live game checker, that checks to see if a player is in game and will get all information about enemy and your own team, it provides ranked data and mastery data.

Also the web is accessible from multiple regions and languages, we also include a function that saves in your cookies the latest server and language the user used, so next time the user loads the site, it will open on same server and language that the user was using before.

The 10 Servers our website provides access to the users are:

  • BR
  • EUNE
  • EUW
  • KR
  • LAN
  • LAS
  • OCE
  • NA
  • RU
  • TR

WEBSITES MAIN LANGUAGE IS IN ENGLISH The 20 Languages our website offer to the users are:

  • English
  • Danish
  • German
  • Spanish
  • Finnish
  • French
  • Hungarian
  • Italian
  • Japanese
  • Korean
  • Norwegian
  • Polish
  • Portuguese
  • Romanian
  • Russian
  • Swedish
  • Slovenian
  • Serbian
  • Turkish
  • Chinese

To build this website we used 4 programming languages, HTML, PHP, CSS and JAVASCRIPT.

All data is stored in a database that is only used for LoLMastery.net and automatically updates data when a user updates their profile.

In order to make the code work you need MySQL database with server connection collation and database collation set as utf8_bin. The database must contain the tables shown in "/tables_1.jpg" with their settings.

alt tag

The settings for the tables challengerandmaster_data, challengerandmaster_data_KR, challengerandmaster_data_BR, challengerandmaster_data_TR, challengerandmaster_data_EUNE, challengerandmaster_data_LAN, challengerandmaster_data_LAS, challengerandmaster_data_NA, challengerandmaster_data_OSCA, challengerandmaster_data_RU, players_data, players_data_BR, players_data_EUNE, players_data_KR, players_data_LAN, players_data_LAN, players_data_NA, players_data_OSCA, players_data_RU, players_data_TR are shown in "/coloumn_1.jpg".

alt tag

The settings for the tables top_list, top_list_BR, top_list_EUNE, top_list_KR, top_list_LAN, top_list_LAS, top_list_NA, top_list_OSCA, top_list_RU, top_list_TR are shown in "/coloumns_2.jpg".

alt tag

After setting up the database you must put the hostname, user, password, database and api key in the following files:

  • /BR/connect_db.php
  • /EUNE/connect_db.php
  • /EUW/connect_db.php
  • /KR/connect_db.php
  • /LAN/connect_db.php
  • /LAS/connect_db.php
  • /NA/connect_db.php
  • /OCE/connect_db.php
  • /RU/connect_db.php
  • /TR/connect_db.php
  • /connect_db.php

To update the information about the Top Champion Points List and Master and Challenger Master Score and Champion Points Lists for each server following files need to be executed which are located in their respected server folders:

  • cron_store_playersData_master_challenger.php to update data about players in Master and Challenger League (better run it twice together so the error responses get deleted and can be set as scheduled task)
  • top_list creator.php to update the Top Champion Points List (also can be ran as a scheduled task)
  • data_collector.php gets the data of the players in the leagues of players already stored in database

The data collection files like data_collector.php or cron_store_playersData_master_challenger.php can be executed without any secret key for the purpose of the Riot API Challenge, but we will add a secret key after the contest is finished.

To complete this project we put in a lot of hours, as we wanted to give back to the League of Legends community. So we made something that we think everyone will use, we also added extra features that make it more fun for users to use our website like the ladders and check your live games.

Website examples:

Home Page - Search for summoner profile page alt tag

Summoner Profile Page alt tag

Challenger & Master Ladder - Champion Points page alt tag

Challenger & Master Ladder - Mastery Points page alt tag

Top Champion Mastery Ladder page alt tag

Live Game Search Page alt tag

Live Game Summoner Results page alt tag

Change Region and language page alt tag

404 Error Profile search page alt tag

404 Error Live Game search page alt tag

LoLMastery.net is created by: Aaron "ForsakenHound" and "TheHHG7"

About

Check your LoL Mastery here:

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors