-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmud.lua
64 lines (64 loc) · 2.1 KB
/
mud.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
return {
port = 8000,
bundles = {
"bundle-example-areas",
"bundle-example-quests",
"bundle-example-lib",
"simple-crafting",
"bundle-example-npc-behaviors",
"bundle-example-combat",
"lootable-npcs",
"bundle-input-events",
"telnet-networking",
"bundle-example-commands",
"bundle-example-player-events",
"bundle-example-channels",
},
dataSources = {
Lua = { require = "core.DataSource.LuaDataSource" },
LuaDirectory = { require = "core.DataSource.LuaDirectoryDataSource" },
LuaArea = { require = "core.DataSource.LuaAreaDataSource" },
Yaml = { require = "core.DataSource.YamlDataSource" },
YamlDirectory = { require = "core.DataSource.YamlDirectoryDataSource" },
YamlArea = { require = "core.DataSource.YamlAreaDataSource" },
},
entityLoaders = {
accounts = { source = "LuaDirectory", config = { path = "data/account" } },
players = { source = "LuaDirectory", config = { path = "data/player" } },
areas = {
source = "LuaArea",
config = { path = "bundles/[BUNDLE]/areas" },
},
npcs = {
source = "Lua",
config = { path = "bundles/[BUNDLE]/areas/[AREA]/npcs.lua" },
},
items = {
source = "Lua",
config = { path = "bundles/[BUNDLE]/areas/[AREA]/items.lua" },
},
rooms = {
source = "Lua",
config = { path = "bundles/[BUNDLE]/areas/[AREA]/rooms.lua" },
},
quests = {
source = "Lua",
config = { path = "bundles/[BUNDLE]/areas/[AREA]/quests.lua" },
},
help = {
source = "YamlDirectory",
config = { path = "bundles/[BUNDLE]/help" },
},
},
maxAccountNameLength = 20,
minAccountNameLength = 3,
maxPlayerNameLength = 20,
minPlayerNameLength = 3,
maxCharacters = 3,
reportToAdmins = false,
startingRoom = "limbo:white",
moveCommand = "move",
skillLag = 2000,
defaultMaxPlayerInventory = 16,
maxIdleTime = 20,
}