• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Utility/Script that shuts eq off ?

Just make a Lua script. Something like this should do the trick.

[CODE lang="Lua" title="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(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')[/CODE]
 
Just make a Lua script. Something like this should do the trick.

[CODE lang="lua" title="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')[/CODE]
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.
 
then you can just use the code coldblooded posted

when you enter instance: /Lua run timetologout 300 (i think 300minutes is 5 hours)
 
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.
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.Lua
 
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.
1) There's no plugin that will do this.
2) It "smells" like you're running the Class plugins AFK (which is highly discouraged)
3) Chat isn't going to add that feature for you
4) Being a noob is okay, but don't be lazy too :)
Like Kaen said, cut/paste that script into notepad or some text editor. Place the script file in your Lua directory. It should be named whatever you want .Lua. For example, wait.Lua
To run the script, type /lua run wait 300 then after 300 minutes it will exit the game.
 
Question - Utility/Script that shuts eq off ?

Users who are viewing this thread

Back
Top
Cart