Log in

View Full Version : geTimeLeft()



Milice
08-03-2013, 02:02 PM
It would be freaking amazing if you could check how long you have left on your xenobot subscription through the script so you could make so when you're running out of time you run to a safe location.

Something like:

getTimeLeft() / getSubscriptionTime() -- returns time left of your xenobot subscription in minutes

Syntax
08-03-2013, 05:39 PM
It would be freaking amazing if you could check how long you have left on your xenobot subscription through the script so you could make so when you're running out of time you run to a safe location.

Something like:

getTimeLeft() / getSubscriptionTime() -- returns time left of your xenobot subscription in minutes

you could add it yourself, you'd just have to update it every month.

Milice
08-04-2013, 03:20 PM
you could add it yourself, you'd just have to update it every month.

My only question to the answer is: wut? xD

Syntax
08-04-2013, 04:03 PM
My only question to the answer is: wut? xD

You know when you buy it, you know it's a month from then. Update the date in your lua script yourself.

Milice
08-04-2013, 05:12 PM
You know when you buy it, you know it's a month from then. Update the date in your lua script yourself.

Nono, i don't think you quite read a hundred percent what i wrote ^^ i wrote in minutes :P Like, the bot closes when the time runs out, right? So if you could script it go back to depot like 10 minutes before that, that would be awesome :P

Xeno Scripts
08-04-2013, 05:53 PM
[QUOTE=Milice;205088]Nono, i don't think you quite read a hundred percent what i wrote ^^ i wrote in minutes :P Like, the bot closes when the time runs out, right? So if you could script it go back to depot like 10 minutes before that, that would be awesome :P[/QUOTE

You can make a script with os.date and os.time!

Spectrus
08-04-2013, 08:24 PM
Another function request that just doesn't improve the bot in any way. sigh

Milice
08-05-2013, 11:45 AM
Another function request that just doesn't improve the bot in any way. sigh

Yeahyeah, i know the idea is quite dumb. But in some ways it could be useful. Maybe i'm the only one who think so... and in that case, then my bad xD

esik
08-05-2013, 12:26 PM
Like, the bot closes when the time runs out, right?

Nope.

Milice
08-05-2013, 12:41 PM
Nope.

Really? As far as i remember atleast it used to :o
Then delete this thread ;p

esik
08-05-2013, 03:52 PM
Really? As far as i remember atleast it used to :o
Then delete this thread ;p

Last time when i forgot to buy another month and it ran out of license time, it just kept running on active clients, i just couldn't start new ones ; d

Milice
08-05-2013, 09:49 PM
Last time when i forgot to buy another month and it ran out of license time, it just kept running on active clients, i just couldn't start new ones ; d

Oh, maybe i was just unlucky en encountered a crash then xD Thx for the update mate ;)