Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://pastebin.com/GGCDRQhm
- source ip : 216.52.241.130
- User-Agent ["Java/1.6.0_26"]
- Content-Type ["application/json"]
- 'll break down the following Tournament code:
- pvpnet://lol/customgame/joinorcreate/map1/pick6/team5/specALL/eyJuYW1lIjoiVG91cm5hbWVudCAiLCJleHRyYSI6IiIsInBhc3N3b3JkIjoiQVNEMTIzIiwicmVwb3J0IjoiaHR0cDpcL1wvd2Vic2l0ZS5jb21cL2dhbWVyZXBvcnRcLyJ9
- Let's start with this bit - pvpnet://lol/customgame/joinorcreate/map1/pick6/team5/specALL
- • pvpnet://lol/customgame/joinorcreate/
- Tells the client to create a new custom game
- • map1
- Specifies the map. map1 is Summoners Rift, map10 is Twisted Treeline, map8 is Crystal Scar and map12 is Howling Abyss.
- • pick6
- Specifies the game type. pick1 is Blind Pick, pick2 is Draft Mode, pick4 is All Random and pick6 is Tournament Draft.
- • team5
- Specifies the team size.
- • specALL
- Specifies whether the game can be spectated or not. specALL allows everyone to spectate, specNONE doesn't allow anyone to spectate and specLOBBYONLY allows only the people in the lobby to spectate.
- And now we're left with this bit - eyJuYW1lIjoiVG91cm5hbWVudCAiLCJleHRyYSI6IiIsInBhc3N3b3JkIjoiQVNEMTIzIiwicmVwb3J0IjoiaHR0cDpcL1wvd2Vic2l0ZS5jb21cL2dhbWVyZXBvcnRcLyJ9
- This is a json encoded in base64 and when you decode it you get this:
- {"name":"Tournament ","extra":"","password":"ASD123","report":"http:\/\/website.com\/gamereport\/"}
- • name
- The game name
- • extra
- This is a variable that you'll recieve back in the game report. It allows you to tell which game the report is for. For example the tournament code is for game 21, you set it to 21 and when you recieve the report it's gonna contain this number.
- • password
- The password required to enter, simply generate a random one in every code.
- • report
- This is the url at which the end-game stats are going to be sent. They're sent as POST and in PHP you can catch them like this:
- $data = file_get_contents('php://input');
- If you have any other questions feel free to ask, I'll try to explain as best as I can.
Advertisement
Add Comment
Please, Sign In to add comment