Awesom-O lua scripts is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

aobotlua

Commit 308

User picture
  • Author: KOrr
  • 2011-09-17 06:08 (over 2 years ago)

Files Affected

 
307308
1
loadfile("scripts\\includes.lua")()
1
loadfile("scripts\\includes.lua")()
2
loadfile("scripts\\libs\\Globals.lua")()
2
loadfile("scripts\\libs\\globals.lua")()
3
 
3
 
4
IncludeSettings()
4
IncludeSettings()
5
IncludeLibs()
5
IncludeLibs()
6
IncludeBosses()
6
IncludeBots()
7
 
7
 
8
function Routine()
8
function Routine()
9
    os.execute("mkdir " .._logDir.."\\")
9
    os.execute("mkdir " .._logDir.."\\")
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents
307308
1
_rootDir = "\\"
1
_rootDir = "\\"
2
_BotDir = "scripts\\"
 
 
3
_MainDir = "scripts\\"
2
_MainDir = "scripts\\"
4
_LibDir = "scripts\\libs\\"
3
_LibDir = "scripts\\libs\\"
5
_BossDir = "scripts\\bosses\\"
4
_BotsDir = "scripts\\bots\\"
6
_CharDir = "scripts\\characters\\"
 
 
7
_BuildsDir = "scripts\\characters\\builds\\"
5
_BuildsDir = "scripts\\characters\\builds\\"
8
_PickitDir = "scripts\\pickit\\"
6
_PickitDir = "scripts\\pickit\\"
 
 
7
_CharDir = "scripts\\characters\\"
9
_logDir = "Logs\\"..Ao.character.."\\"
8
_logDir = "Logs\\"..Ao.character.."\\"
10
 
9
 
11
--os.execute("mkdir " .._logDir.."\\")
10
--os.execute("mkdir " .._logDir.."\\")
...
 
...
 
22
["Logging.lua"] = "logging",
21
["Logging.lua"] = "logging",
23
["Globals.lua"] = "globals",
22
["Globals.lua"] = "globals",
24
["Math.lua"] = "math",
23
["Math.lua"] = "math",
25
["BuildSkills.lua"] = "BuildSkills",
 
 
26
["Casting.lua"] = "Casting",
24
["Casting.lua"] = "Casting",
27
}
25
}
28
 
26
 
...
 
...
 
45
------------------------
43
------------------------
46
-------- Bosses --------
44
-------- Bosses --------
47
------------------------
45
------------------------
48
BossIncludes = {
46
BotsIncludes = {
49
["OrganHunt.lua"] = "OrganHunt",
47
["OrganHunt.lua"] = "OrganHunt",
50
["Shopbot.lua"] = "Shopbot",
48
["Shopbot.lua"] = "Shopbot",
51
["Rush.lua"] = "Crush",
49
["Rush.lua"] = "Crush",
...
 
...
 
62
    if ( ProtectedLoadfile(_BuildsDir..Settings.Character.Build..'.lua')() == false ) then
60
    if ( ProtectedLoadfile(_BuildsDir..Settings.Character.Build..'.lua')() == false ) then
63
            Log(4, "includes", "IncludeSettings : Can't load file: "..Settings.Character.Build..".lua")
61
            Log(4, "includes", "IncludeSettings : Can't load file: "..Settings.Character.Build..".lua")
64
    end
62
    end
65
    if ( ProtectedLoadfile("scripts\\Custom.lua")() == false ) then
63
    if ProtectedLoadfile(_MainDir.."Custom.lua")() == false then
66
        Log(4, "includes", "IncludeSettings : Can't load file: Custom.lua")
64
        Log(4, "includes", "IncludeSettings : Can't load Custom.lua")
67
    end
65
    end
68
end
66
end
69
 
67
 
...
 
...
 
73
 
71
 
74
end
72
end
75
 
73
 
76
function IncludeBosses()
74
function IncludeBots()
77
    IncludeTable(BossIncludes, _BossDir)
75
    IncludeTable(BotsIncludes, _BotsDir)
78
end
76
end
79
 
77
 
80
function IncludeTable(t , dir)
78
function IncludeTable(t , dir)
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents
Show contents