-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.lua
More file actions
163 lines (145 loc) · 3.75 KB
/
config.lua
File metadata and controls
163 lines (145 loc) · 3.75 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
tibia.config = {
password = "",
inventoryCapacity = 48,
-- maximum number of monsters on the map at one time. if set to 0, monsters.lua is not loaded at all.
maxMonsters = 48,
-- maximum height an item stack on the ground can be (they can be as high as you want, but only the top few will be shown when this is set).
maxHeight = 5,
exp = {
-- function for calculation experience for each level.
calc = function(level)
level = level - 1
return (level) ^ 3 - 3 * (level) ^ 2 + 8 * (level)
end
},
stats = {'XP', 'Level', 'Rupee'}, --ignore
-- slot names for each slot. can be customised.
-- the order is important since the last item will always be rendered last
slots = {
"Feet",
"Legs",
"Mount",
"Accessories",
"Right Hand",
"Left Hand",
"Runes",
"Torso",
"Head",
},
-- pixels to leave between each line of hudtxt
pixels = 14,
-- used for ^[1-9a-z] colour codes
colours = {
sea.Color.new(192, 192, 192),
sea.Color.new(128, 128, 128),
sea.Color.new(255, 0, 0),
sea.Color.new(0, 255, 0),
sea.Color.new(0, 0, 255),
sea.Color.new(255, 255, 0),
sea.Color.new(0, 255, 255),
sea.Color.new(255, 0, 255),
sea.Color.new(128, 0, 0),
sea.Color.new(0, 128, 0),
sea.Color.new(128, 128, 0),
sea.Color.new(0, 0, 128),
sea.Color.new(0, 128, 128),
sea.Color.new(128, 0, 128),
sea.Color.new(255, 128, 128),
sea.Color.new(128, 255, 128),
sea.Color.new(128, 128, 255),
sea.Color.new(255, 128, 0),
sea.Color.new(0, 255, 128),
sea.Color.new(128, 0, 255),
sea.Color.new(255, 0, 128),
sea.Color.new(128, 255, 0),
sea.Color.new(0, 128, 255),
sea.Color.new(128, 0, 0),
sea.Color.new(0, 128, 0),
sea.Color.new(0, 0, 128),
sea.Color.new(255, 128, 255),
sea.Color.new(128, 255, 255),
sea.Color.new(255, 128, 255),
sea.Color.new(192, 128, 128),
sea.Color.new(128, 192, 128),
sea.Color.new(128, 128, 192),
sea.Color.new(192, 192, 128),
sea.Color.new(128, 192, 192),
sea.Color.new(192, 128, 192),
[0] = sea.Color.new(255, 255, 255),
},
-- tiles that cannot be walked on unless you have an item that allows water walking (or was it a specific mount only?)
waterTiles = {34},
-- if map data (safe zone, houses, monster spawn etc) is not found, use this
defaultMap = 'rpg_mapb',
-- experience gained will be multiplied by this value.
expRate = 1,
-- rupee loot will be multiplied by this value.
moneyRate = 1,
-- drop chance will be multiplied by this value.
dropRate = 1,
-- player death rupee loot will be multiplied by this value.
playerMoneyRate = 1,
-- player drop chance will be this value out of 10000. i.e. 2000 means 20%
playerDropRate = 2000,
exhaust = {
-- ms after each talk, any faster, the message will not be showed
talk = 500,
-- ms after each pick up attempt, any faster, the pick up will be aborted
pick = 500,
-- ms after each use attempt, any faster, the use will be aborted
use = 2000,
},
}
tibia.config.expTable = {
__index = function(t, level)
return tibia.config.exp.calc(level)
end
}
setmetatable(tibia.config.expTable, tibia.config.expTable)
return {
player = {
data = {
xp = 0,
level = 1,
rupee = 50,
hp = 100,
mp = 100,
inventory = {},
equipment = {},
respawnPosition = {784, 240},
tutorial = {},
info = {},
lastPosition = {},
lastName = "",
federigoBrother = -1,
cheeseQuest = -1
}
},
game = {
setting = {
itemDrop = false
},
data = {
rain = 0,
time = 0,
tempGroundItems = {},
tempHouses = {},
npc13 = 0 -- For betting
}
},
server = {
setting = {
password = tibia.config.password,
fow = 0,
usgnOnly = 1,
maxClientsIP = 2,
idleKick = 0,
hudScale = 1,
hud = 65,
radar = 0,
flashlight = 0,
infiniteAmmo = 1,
deathDrop = 4
}
}
}