Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
as in your are playing afk and then you die and go to lobby and if you sit there for 15 minutes you will log out?Looking for a plugin that shuts eq off after a certain amount of time?
local mq = require('mq')
local args = {...}
if not args[1] then
print("Provide the number of minutes to wait.")
mq.exit()
end
local minutesToWait = tonumber(args[1])
if minutesToWait == nil then
print("Invalid number provided.")
mq.exit()
end
local function waitForMinutes(minutes)
local startTime = os.time()
local duration = minutes * 60
repeat
local timehack = os.time()
mq.delay(1000)
until os.difftime(timehack, startTime) >= duration
end
print(string.format("Waiting for %d minutes...", minutesToWait))
waitForMinutes(minutesToWait)
mq.cmd('/exit')
I'm not sure how or where I'd implement this I'm pretty noob.. I basically use all cwtn's scripts because the ease.Just make a Lua script. Something like this should do the trick.
wait.Lua:local mq = require('mq') local args = {...} if not args[1] then print("Provide the number of minutes to wait.") mq.exit() end local minutesToWait = tonumber(arg[1]) if minutesToWait == nil then print("Invalid number provided.") mq.exit() end local function waitForMinutes(minutes) local startTime = os.time() local duration = minutes * 60 repeat local timehack = os.time() mq.delay(1000) until os.difftime(timehack, startTime) >= duration end print(string.format("Waiting for %d minutes...", minutesToWait)) waitForMinutes(minutesToWait) mq.cmd('/exit')
/q on all 3accounts after 5hrs be perfect.Do you mean that it will issue a /q command? Or camp out?
open a new document in notepad++ or vscode, then copy paste the code in and save it in your mq/Lua folder with a rpoper name.LuaI'm not sure how or where I'd implement this I'm pretty noob.. I basically use all cwtn's scripts because the ease.
1) There's no plugin that will do this.I'm not sure how or where I'd implement this I'm pretty noob.. I basically use all cwtn's scripts because the ease.
/lua run wait 300
then after 300 minutes it will exit the game.Thanksopen a new document in notepad++ or vscode, then copy paste the code in and save it in your mq/Lua folder with a rpoper name.Lua