Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////
- // Change these settings to your own.
- // Please note, times are not exact, random variation is needed in case audits are ever performed on your
- // account by a GO, they can see logs of your fleet, if it was the exact same flight times every fleetsave,
- // it would be obvious you are using a bot to do it.
- telegramID = 712325649 // Enter your Telegram ID.
- sleepInMinutes = 240 // Time the bot will wait before fleet saving incase your fleet isnt' back for X minutes.
- sendFrom = "M:8:90:10" // Enter your moon you're sending from.
- sendTo = "M:8:90:11" // Enter your moon you're sending to.
- fleetSpeed = TWENTY_PERCENT // TWENTY_PERCENT ... HUNDRED_PERCENT (Set to whichever speed you desire)
- // When the bot messages you on Telegram it will include this name so you know which fleet it is referring to.
- fleetIdentifier = "BuyingDeutMain"
- //////////////////////////////////////
- // Formatting clock to a more readable format.
- func clockFormat (clock) {
- hour, min, sec = clock
- hour = hour + ":"
- min = min + ":"
- currentTime = hour + min + sec
- }
- SendTelegramNinja(telegramID, "Waiting " + sleepInMinutes + " Minutes" + " until fleetsave." )
- Sleep(1 * 1000 * 60 * sleepInMinutes)
- // Creates a fleet object to move your fleet.
- mainFleet = NewFleet()
- mainFleet.SetOrigin(sendFrom)
- mainFleet.SetDestination(sendTo)
- mainFleet.SetSpeed(fleetSpeed)
- mainFleet.SetMission(PARK)
- mainFleet.SetAllResources()
- mainFleet.SetAllShips()
- fleet, err = mainFleet.SendNow()
- // Messages Telegram, calculates half journey time, sleeps script for roughly half the journey.
- half = fleet.ArriveIn / 2 // Gets half your total flight time.
- SendTelegramNinja(telegramID, "Fleetsaving " + fleetIdentifier + " for " + ShortDur((half * 2)) + " starting at " + clockFormat(Clock()) + " UTC Time")
- Print("Fleetsaving " + fleetIdentifier + " for: " + ShortDur((half * 2)))
- Sleep(Random(5,15)*1000) // 5 to 15 second sleep before logging out.
- Logout()
- Sleep(Random(half * 980, half * 1010)) // Sleeps for around half your fleetsave time.
- // Logs you in if you are logged out for any reason.
- if !IsLoggedIn() {
- Login()
- }
- // Fleet recall handling.
- Sleep(Random(5,15)*1000) // Logging in to your account sleep.
- SendTelegramNinja(telegramID, "Logged in to recall " + fleetIdentifier + " fleet" + " at " + clockFormat(Clock()) + " UTC Time")
- CancelFleet(fleet.ID)
- SendTelegramNinja(telegramID, "Fleet will return in approx: " + ShortDur(half))
- Sleep(Random(5,15)*1000) // Logging back out of your account sleep.
- Logout()
- Sleep(Random(half * 800, half * 850))
- if !IsLoggedIn() {
- Login()
- }
- SendTelegramNinja(telegramID, "Logged back in at " + clockFormat(Clock()) + " UTC Time" + " before fleet lands")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement