-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.lua
67 lines (50 loc) · 1.37 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
require("ezmq")
require("commands")
require("lib/looting/markItemForDestroying")
require("lib/looting/markItemForSelling")
local log = require("knightlinc/Write")
local commandQueue = require("lib/CommandQueue")
local assist = require("lib/assisting/Assist")
local buffs = require("lib/spells/Buffs")
local group = require("lib/following/Group")
local follow = require("lib/following/Follow")
local heal = require("lib/healing/Heal")
local crowdcontrol = require("lib/crowdcontrol/mesmerize")
local qol = require("lib/quality/QoL")
local tribute = require("lib/quality/Tribute")
local alerts = require("lib/quality/Alerts")
--local hud = require("hud/hud")
seed_process()
qol.loadRequiredPlugins()
buffs.Init()
group.Init()
heal.Init()
assist.Init()
alerts.Init()
-- NOTE: qol.Init() also verifies spell lines, so it must be called last
qol.Init()
follow.Pause()
log.Info("E4 started")
-- MAIN LOOP
while true do
heal.Tick()
doevents()
crowdcontrol.Tick()
doevents()
buffs.Tick()
doevents()
commandQueue.Process()
doevents()
qol.Tick()
doevents()
tribute.Tick()
doevents()
assist.Tick()
doevents()
follow.Tick()
doevents()
delay(1)
-- if not hud.ShouldTerminate() and is_orchestrator() then
-- hud.Update()
-- end
end