how long is a hours time if i use yrest(xxxx)
thanks!
yrest(xxx) question
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Only post additional bot resources here. Please do not ask unrelated questions.
- Bill D Cat
- Posts: 555
- Joined: Sat Aug 10, 2013 8:13 pm
- Location: Deep in the Heart of Texas
Re: yrest(xxx) question
Well, yrest(1000) is 1 second. So it would be 60 seconds * 60 minutes * 1000 = 3,600,000
Optionally, you can use player:rest(3600) which will rest for the same time, but will awaken and fight back if attacked.
Optionally, you can use player:rest(3600) which will rest for the same time, but will awaken and fight back if attacked.
Re: yrest(xxx) question
ok thanks for the info
Re: yrest(xxx) question
you can even use maths in the function itself
yrest(1000*60*60)
saves having to remember big numbers, only need to remember 1000 is for 1 second.
yrest(1000*60*60)
saves having to remember big numbers, only need to remember 1000 is for 1 second.
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: yrest(xxx) question
Yean but those a function that are already in MM1
Code: Select all
-- Convert hours to timer value
function hoursToTimer(hours)
return math.floor( hours * 3600000 );
end
-- Convert minutes to timer value
function minutesToTimer(minutes)
return math.floor( minutes * 60000 );
end
-- Converts seconds to timer value
function secondsToTimer(seconds)
return math.floor( seconds * 1000 );
end
Jack-of-all-trades, but master-of-only of a few
My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226
My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests