-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathlauncher.lua
38 lines (31 loc) · 876 Bytes
/
launcher.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
-- Created by romain-p
-- see updates on http://github.com/romain-p
-- init all vars
if not launcher then
launcher = true
function loadscript(named)
RunScript(ReadFile("script/" .. named .. ".lua"))
end
loadscript("shared_spells")
loadscript("shared_units")
loadscript("shared_filters")
loadscript("shared_digest")
all_scripts = {
["PRIEST"] = "priest_disc",
["WARRIOR"] = nil,
["ROGUE"] = nil,
["MAGE"] = nil,
["SHAMAN"] = nil,
["WARLOCK"] = "warlock_destro",
["DRUID"] = nil,
["HUNTER"] = nil,
["PALADIN"] = "paladin_ret",
["DEATHKNIGHT"] = nil
}
session = all_scripts[player_class]
end
if session == nil then
print("Launcher: no script found for " .. player_class)
else
loadscript(session)
end