• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

Question - Utility/Script that shuts eq off ? (1 Viewer)

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(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')
 
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')
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.
 
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