forked from Casual-Ragnarok/ro-single-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroups.conf
321 lines (298 loc) · 9.23 KB
/
groups.conf
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
// ______ __ __
// /\ _ \/\ \__/\ \
// __\ \ \_\ \ \ _\ \ \___ __ ___ __
// / __ \ \ __ \ \ \/\ \ _ \ / __ \/ _ \ / __ \
///\ __/\ \ \/\ \ \ \_\ \ \ \ \/\ __//\ \/\ \/\ \_\ \_
//\ \____\\ \_\ \_\ \__\\ \_\ \_\ \____\ \_\ \_\ \__/ \_\
// \/____/ \/_/\/_/\/__/ \/_/\/_/\/____/\/_/\/_/\/__/\/_/
// _ _ _ _ _ _ _ _ _ _ _ _ _
// / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \
//( 9 | 9 | M | a | x | E | a ) ( A | t | h | e | n | a )
// \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
//
//------------------------------------------------------------------
/*
Player groups configuration file
---------------------------------
This file defines "player groups" and their privileges.
Each group has its id and name, lists of available commands and other
permissions, and a list of other groups it inherits from.
Group settings
--------------
<id>
Unique group number. The only required field.
<name>
Any string. If empty, defaults to "Group <id>". It is used in several @who
commands.
<level>
Equivalent of GM level, which was used in revisions before r15572. You can
set it to any number, but usually it's between 0 (default) and 99. Members of
groups with lower level can not perform some actions/commands (like @kick) on
members of groups with higher level. It is what script command getgmlevel()
returns. Group level can also be used to override trade restrictions
(db/item_trade.txt).
<commands>
A group of settings
<command name> : <bool>
or
<commandname> : [ <bool>, <bool> ]
First boolean value is for atcommand, second one for charcommand. If set to
true, group can use command. If only atcommand value is provided, false is
assumed for charcommand. If a command name is not included, false is assumed for
both atcommand and charcommand.
For a full list of available commands, see: doc/atcommands.txt.
Command names must not be aliases.
<log_commands>
Boolean value. If true then all commands used by the group will be logged to
atcommandlog. If setting is omitted in a group definition, false is assumed.
Requires 'log_commands' to be enabled in 'conf/log_athena.conf'.
<permissions>
A group of settings
<permission> : <bool>
If a permission is not included, false is assumed.
For a full list of available permissions, see: doc/permissions.txt
<inherit>
A list of group names that given group will inherit commands and permissions
from. Group names are case-sensitive.
Inheritance results
-------------------
Both multiple inheritance (Group 2 -> Group 1 and Group 3 -> Group 1) and
recursive inheritance (Group 3 -> Group 2 -> Group 1) are allowed.
Inheritance rules should not create cycles (eg Group 1 inherits from Group 2,
and Group inherits from Group 1 at the same time). Configuration with cycles is
considered faulty and can't be processed fully by server.
Command or permission is inherited ONLY if it's not already defined for the
group.
If group inherits from multiple groups, and the same command or permission is
defined for more than one of these groups, it's undefined which one will be
inherited.
Syntax
------
This config file uses libconfig syntax:
http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
Upgrading from revisions before r15572
-------------------------------------
http://rathena.org/board/index.php?showtopic=58877
*/
groups: (
{
id: 0 /* 0 = 玩家可以使用的指令 */
name: "Player"
level: 0
inherit: ( /*empty list*/ )
commands: {
/* 这里设定开放给玩家的指令 , 指令设定要包覆在 commands: {里面}*/
noks: true // 抢怪保护
autoloot: true // 开启/关闭 自动捡取所有物品
autoloottype: true // 开启/关闭 自动捡取物品类型
alootid: true // 开启/关闭 自动捡取指定物品
autotrade: true // 离线露天商店
changedress: true // 删除所有人物角色的时装
}
permissions: {
/* without this basic permissions regular players could not*/
can_trade: true
can_party: true
command_enable: true
attendance: true
}
},
{
id: 1
name: "Super Player"
inherit: ( "Player" ) /* can do everything Players can and more */
level: 0
commands: {
/* 开放的指令 */
commands: true // 显示所有可使用的指令
charcommands: true // 显示可用的角色指令
help: true // 显示"帮助文件"内容
rates: true // 显示伺服器的经验值倍率
uptime: true // 显示伺服器已启动时间
showdelay: true // 显示/隐藏 "技能使用量不足" 的提示
exp: false // 显示当前等级 及 经验值
mobinfo: true // 显示魔物资讯 (种族, 素质, 掉落物, MVP道具)
iteminfo: true // 显示道具资讯 (种类, 价格, 其他)
whodrops: true // 显示何种魔物会掉落的物品 (取最高机率)
time: true // 显示伺服器时间
jailtime: true // 显示剩余监禁时间
hominfo: true // 显示人工生命体素质
homstats: true // 显示人工生命体成长统计
showexp: true // 显示/隐藏 经验值
showzeny: true // 显示/隐藏 金钱取得资讯
whereis: true // 显示魔物在哪张地图 (不会显示魔物数量)
/* feature commands */
refresh: true // 自伺服器取得角色的状态&资料
noask: true // 自动拒绝邀请
request: true // 送出回覆给所有在线的GM (GM会收到密语通知)
go: true // 传送至主要城市
breakguild: true
channel: true
langtype: true
}
permissions: {
attendance: true
}
},
{
id: 2
name: "Support"
inherit: ( "Super Player" )
level: 1
commands: {
version: true // 显示伺服器的SVN版本号
where: true // 显示角色的位置
jumpto: true // 瞬移到某人身边 (3 个相同指令 + /shift)
who: true // 显示有哪些玩家在线上
who2: true // 显示有哪些玩家在线上(包含职业)
who3: true // 显示有哪些玩家在线上(包含 队伍/公会)
whomap: true // 显示所在地图的玩家
whomap2: true // 显示所在地图的玩家(包含职业)
whomap3: true // 显示所在地图的玩家(包含 队伍/公会)
users: true // 显示玩家的分布地图 (% 表示密集度)
broadcast: true // 全伺服器广播 (/nb, /b).
localbroadcast: true // 在使用者所在地图上广播 ( /lb, /nlb).
}
log_commands: true
permissions: {
receive_requests: true
view_equipment: true
}
},
{
id: 3
name: "Script Manager"
inherit: ( "Support" )
level: 1
commands: {
tonpc: true // 传送至NPC
hidenpc: true // 将NPC隐藏起来使玩家不能点选
shownpc: true // 解除隐藏NPC
loadnpc: true // 载入NPC
unloadnpc: true // 解除NPC
npcmove: true // 移动NPC
addwarp: true // 创造临时的传送点
}
log_commands: true
permissions: {
any_warp: true
}
},
{
id: 4
name: "Event Manager"
inherit: ( "Support" )
level: 1
commands: {
monster: true // 召换魔物(/monster).
monstersmall: true // 召换魔物(缩小版)
monsterbig: true // 召换魔物(放大版)
killmonster2: true // 杀死此张地图上所有魔物 (不会掉落物品)
cleanarea: true
cleanmap: true // 清除视野范围内所有掉落在地上的物品
item: [true, true] // 创造物品
zeny: [true, true] // 修改金钱
disguise: [true, true] // 变换玩家为魔物的外观.
undisguise: [true, true]// 恢复外表为原貌
size: [true, true] // 改变玩家大小
raise: true // 复活所有伺服器的玩家
raisemap: true // 复活所有此张地图的玩家
day: true // 将伺服器变为白天
night: true // 将伺服器变为夜晚
skillon: true // 允许在此张地图上使用任何技能
skilloff: true // 关闭在此张地图上使用任何技能
pvpon: true // 在此张地图上开起PVP
pvpoff: true // 在此张地图上关闭PVP
gvgon: true // 启动公会战
gvgoff: true // 关闭公会战
allowks: true // 在这张地图上 启用/取消 防抢保护
me: true // 讯息显示格式为 "*名称 讯息*" , 而非 "名称 : 讯息.
marry: true // 结婚
divorce: true // 离婚
refreshall: true
}
log_commands: true
permissions: {
can_trade: false
any_warp: true
}
},
{
id: 5
name: "VIP"
inherit: ( "Player" ) /* can do everything Players can */
level: 0
commands: {
rates: true
who: true
autoattack: true // 自动寻怪攻击
autopots: true // 自动吃药
}
permissions: {
/* no permissions by default */
}
},
{
id: 10
name: "Law Enforcement"
inherit: ( "Support" )
level: 2
commands: {
hide: true // 完全隐藏
follow: true // 自动跟随玩家(会自动传送)
kick: true // 将某玩家踢下线 (也可点右键选择剔除玩家).
disguise: true // 变换玩家为魔物的外观.
fakename: true // 暂时变更角色名称
option: true // 设定角色的外观显示.
speed: true // 设定 行走/攻击 速度 (预设 150)
warp: true // 传送至指定的地图 (X,Y)
kill: true // 杀死玩家
recall: true // 将玩家传送至你身旁
ban: true // 封锁玩家一段时间
block: true // 冻结玩家
jail: true // 将玩家送入监狱
jailfor: true // 将玩家监禁一段时间
mute: true // 将玩家禁言
storagelist: true // 显示玩家的仓库物品
cartlist: true // 显示玩家的手推车物品
itemlist: true // 显示玩家身上的物品
stats: true // 显示玩家的素质
}
log_commands: true
permissions: {
join_chat: true
kick_chat: true
hide_session: true
who_display_aid: true
hack_info: true
any_warp: true
view_hpmeter: true
}
},
{
id: 99
name: "Admin"
level: 99
inherit: ( "Support", "Law Enforcement" )
commands: {
/* 无设定必要因为 all_commands: true */
}
log_commands: true
permissions: {
can_trade: true
can_party: true
all_skill: false
all_equipment: false
skill_unconditional: false
use_check: true
use_changemaptype: true
all_commands: true
channel_admin: true
can_trade_bounded: true
item_unconditional: false
bypass_stat_onclone: true
bypass_max_stat: true
/* all_permission: true */
}
}
)