ThisIsAreku

Untitled

Jun 8th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. http://pastebin.com/GGCDRQhm
  2.  
  3. source ip : 216.52.241.130
  4. User-Agent ["Java/1.6.0_26"]
  5. Content-Type ["application/json"]
  6.  
  7. 'll break down the following Tournament code:
  8. pvpnet://lol/customgame/joinorcreate/map1/pick6/team5/specALL/eyJuYW1lIjoiVG91cm5hbWVudCAiLCJleHRyYSI6IiIsInBhc3N3b3JkIjoiQVNEMTIzIiwicmVwb3J0IjoiaHR0cDpcL1wvd2Vic2l0ZS5jb21cL2dhbWVyZXBvcnRcLyJ9
  9.  
  10. Let's start with this bit - pvpnet://lol/customgame/joinorcreate/map1/pick6/team5/specALL
  11.  
  12. • pvpnet://lol/customgame/joinorcreate/
  13. Tells the client to create a new custom game
  14.  
  15. • map1
  16. Specifies the map. map1 is Summoners Rift, map10 is Twisted Treeline, map8 is Crystal Scar and map12 is Howling Abyss.
  17.  
  18. • pick6
  19. Specifies the game type. pick1 is Blind Pick, pick2 is Draft Mode, pick4 is All Random and pick6 is Tournament Draft.
  20.  
  21. • team5
  22. Specifies the team size.
  23.  
  24. • specALL
  25. 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.
  26.  
  27. And now we're left with this bit - eyJuYW1lIjoiVG91cm5hbWVudCAiLCJleHRyYSI6IiIsInBhc3N3b3JkIjoiQVNEMTIzIiwicmVwb3J0IjoiaHR0cDpcL1wvd2Vic2l0ZS5jb21cL2dhbWVyZXBvcnRcLyJ9
  28.  
  29. This is a json encoded in base64 and when you decode it you get this:
  30. {"name":"Tournament ","extra":"","password":"ASD123","report":"http:\/\/website.com\/gamereport\/"}
  31.  
  32. • name
  33. The game name
  34.  
  35. • extra
  36. 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.
  37.  
  38. • password
  39. The password required to enter, simply generate a random one in every code.
  40.  
  41. • report
  42. 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:
  43. $data = file_get_contents('php://input');
  44.  
  45. 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