Guest User

PokemonBatFile24/07/16/19/51

a guest
Jul 24th, 2016
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. @echo off
  2. REM The above stops all lines being read out during its process
  3.  
  4. :CheckDirForFile
  5. REM We need to have the location of the runserver.py file
  6. ECHO Checking current directory for map files..
  7. IF EXIST "runserver.py" (
  8. ECHO runserver.py found!
  9. ECHO -------------------------------------------------------------------------------
  10. goto AccountTypeSelect
  11. ) ELSE (
  12. ECHO runserver.py was not found!
  13. ECHO -------------------------------------------------------------------------------
  14. goto MapDirSetting
  15. )
  16.  
  17. :MapDirSetting
  18. ECHO [INFO] For better performance:
  19. ECHO - Close this CMD box and place the .bat file inside the map root directory...
  20. ECHO -------------------------------------------------------------------------------
  21. set /p MapDir="Please enter the maps directory: "
  22. CD %MapDir%
  23. goto CheckDirForFile
  24.  
  25. :AccountTypeSelect
  26. REM Firstly we need to know what type of account will be used to login to do a GPS scan... Google or Pokemon Trainer Club
  27. set AccountType =
  28. set /p AccountType="Enter account type (ptc/google): "
  29. if '%AccountType%'=='ptc' goto PTCAccount
  30. if '%AccountType%'=='google' goto GoogleAccount
  31. CLS
  32. ECHO "%AccountType%" is not valid please try again
  33. goto AccountTypeSelect
  34.  
  35. :PTCAccount
  36. REM We now need the PTC Account name
  37. set Username=
  38. set /p Username="Enter PTC Account Name: "
  39. goto GetPassword
  40.  
  41. :GoogleAccount
  42. REM We now need the Google Account name
  43. set GoogleName=
  44. set /p GoogleName="Enter Google Account Name: "
  45. set Username=%GoogleName%@gmail.com
  46. goto GetPassword
  47.  
  48. :GetPassword
  49. REM PTC or Google Password
  50. set /p Password="Enter Password For Account: "
  51. goto SetSteps
  52.  
  53. :SetSteps
  54. REM How many steps around location to scan
  55. set /p Steps="Enter Steps: "
  56. goto RunServer
  57.  
  58. :RunServer
  59. C:\Python27\Python.exe runserver.py -a %AccountType% -u %Username% -p %Password% -l "Westminster Bridge Rd, South Bank, London SE1 7PB" -st %Steps% -H 0.0.0.0 -L en
Add Comment
Please, Sign In to add comment