Advertisement
Guest User

Deploy-Recall Telegram v1.0

a guest
Jun 16th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. //////////////////////////////////////
  2. // Change these settings to your own.
  3. // Please note, times are not exact, random variation is needed in case audits are ever performed on your
  4. // account by a GO, they can see logs of your fleet, if it was the exact same flight times every fleetsave,
  5. // it would be obvious you are using a bot to do it.
  6.  
  7. telegramID = 12345678 // Enter your Telegram ID.
  8. sleepInMinutes = 0 // Time the bot will wait before fleet saving incase your fleet isnt' back for X minutes.
  9. sendFrom = "M:1:2:3" // Enter your moon you're sending from.
  10. sendTo = "M:1:2:4" // Enter your moon you're sending to.
  11. fleetSpeed = FOURTY_PERCENT // TWENTY_PERCENT ... HUNDRED_PERCENT (Set to whichever speed you desire)
  12.  
  13. // When the bot messages you on Telegram it will include this name so you know which fleet it is referring to.
  14. fleetIdentifier = "ProbeTest"
  15.  
  16. //////////////////////////////////////
  17.  
  18. // Formatting clock to a more readable format.
  19. func clockFormat (clock) {
  20. hour, min, sec = clock
  21. hour = hour + ":"
  22. min = min + ":"
  23. currentTime = hour + min + sec
  24. }
  25.  
  26. SendTelegramNinja(telegramID, "Waiting " + sleepInMinutes + " Minutes" + " until fleetsave." )
  27. Sleep(1 * 1000 * 60 * sleepInMinutes)
  28.  
  29. // Creates a fleet object to move your fleet.
  30. mainFleet = NewFleet()
  31. mainFleet.SetOrigin(sendFrom)
  32. mainFleet.SetDestination(sendTo)
  33. mainFleet.SetSpeed(fleetSpeed)
  34. mainFleet.SetMission(PARK)
  35. mainFleet.SetAllResources()
  36. mainFleet.SetAllShips()
  37. fleet, err = mainFleet.SendNow()
  38.  
  39. // Messages Telegram, calculates half journey time, sleeps script for roughly half the journey.
  40. half = fleet.ArriveIn / 2 // Gets half your total flight time.
  41. SendTelegramNinja(telegramID, "Fleetsaving " + fleetIdentifier + " for " + ShortDur((half * 2)) + " starting at " + clockFormat(Clock()) + " UTC Time")
  42. Print("Fleetsaving " + fleetIdentifier + " for: " + ShortDur((half * 2)))
  43. Sleep(Random(5,15)*1000) // 5 to 15 second sleep before logging out.
  44. //Logout()
  45. Sleep(Random(half * 980, half * 1010)) // Sleeps for around half your fleetsave time.
  46.  
  47. // Logs you in if you are logged out for any reason.
  48. if !IsLoggedIn() {
  49. Login()
  50. }
  51.  
  52. // Fleet recall handling.
  53. Sleep(Random(5,15)*1000) // Logging in to your account sleep.
  54. SendTelegramNinja(telegramID, "Logged in to recall " + fleetIdentifier + " fleet" + " at " + clockFormat(Clock()) + " UTC Time")
  55. CancelFleet(fleet.ID)
  56. Sleep(Random(5,15)*1000) // Logging back out of your account sleep.
  57. //Logout()
  58. Sleep(Random(half * 800, half * 900))
  59. if !IsLoggedIn() {
  60. Login()
  61. }
  62. SendTelegramNinja(telegramID, "Logged back in at " + clockFormat(Clock()) + " UTC Time" + " before fleet lands")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement