Advertisement
Thiagocomh

Untitled

Jun 25th, 2021
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.78 KB | None | 0 0
  1. /*
  2.  
  3. Player groups configuration file
  4. ---------------------------------
  5.  
  6. This file defines "player groups" and their privileges.
  7.  
  8. Each group has its id and name, lists of available commands and other
  9. permissions, and a list of other groups it inherits from.
  10.  
  11.  
  12. Group settings
  13. --------------
  14. <id>
  15. Unique group number. The only required field.
  16.  
  17. <name>
  18. Any string. If empty, defaults to "Group <id>". It is used in several @who
  19. commands.
  20.  
  21. <level>
  22. Equivalent of GM level, which was used in revisions before r15572. You can
  23. set it to any number, but usually it's between 0 (default) and 99. Members of
  24. groups with lower level can not perform some actions/commands (like @kick) on
  25. members of groups with higher level. It is what script command getgmlevel()
  26. returns. Group level can also be used to override trade restrictions
  27. (db/item_trade.txt).
  28.  
  29. <commands>
  30. A group of settings
  31. <command name> : <bool>
  32. or
  33. <commandname> : [ <bool>, <bool> ]
  34. First boolean value is for atcommand, second one for charcommand. If set to
  35. true, group can use command. If only atcommand value is provided, false is
  36. assumed for charcommand. If a command name is not included, false is assumed for
  37. both atcommand and charcommand.
  38. For a full list of available commands, see: doc/atcommands.txt.
  39. Command names must not be aliases.
  40.  
  41. <log_commands>
  42. Boolean value. If true then all commands used by the group will be logged to
  43. atcommandlog. If setting is omitted in a group definition, false is assumed.
  44. Requires 'log_commands' to be enabled in 'conf/log_athena.conf'.
  45.  
  46. <permissions>
  47. A group of settings
  48. <permission> : <bool>
  49. If a permission is not included, false is assumed.
  50. For a full list of available permissions, see: doc/permissions.txt
  51.  
  52. <inherit>
  53. A list of group names that given group will inherit commands and permissions
  54. from. Group names are case-sensitive.
  55.  
  56. Inheritance results
  57. -------------------
  58. Both multiple inheritance (Group 2 -> Group 1 and Group 3 -> Group 1) and
  59. recursive inheritance (Group 3 -> Group 2 -> Group 1) are allowed.
  60.  
  61. Inheritance rules should not create cycles (eg Group 1 inherits from Group 2,
  62. and Group inherits from Group 1 at the same time). Configuration with cycles is
  63. considered faulty and can't be processed fully by server.
  64.  
  65. Command or permission is inherited ONLY if it's not already defined for the
  66. group.
  67. If group inherits from multiple groups, and the same command or permission is
  68. defined for more than one of these groups, it's undefined which one will be
  69. inherited.
  70.  
  71. Syntax
  72. ------
  73. This config file uses libconfig syntax:
  74. http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
  75.  
  76.  
  77. Upgrading from revisions before r15572
  78. -------------------------------------
  79. http://rathena.org/board/index.php?showtopic=58877
  80. */
  81.  
  82. groups: (
  83. {
  84. id: 0 /* group 0 is the default group for every new account */
  85. name: "Player"
  86. level: 0
  87. inherit: ( /*empty list*/ )
  88. commands: {
  89. changedress: true
  90. resurrect: true
  91. go : true
  92. autoloot : true
  93. kill : true
  94. rates : true
  95. autotrade : true
  96.  
  97. }
  98. permissions: {
  99. /* without this basic permissions regular players could not
  100. trade or party */
  101. can_trade: true
  102. can_party: true
  103. attendance: true
  104. }
  105. },
  106. {
  107. id: 1
  108. name: "Super Player"
  109. inherit: ( "Player" ) /* can do everything Players can and more */
  110. level: 0
  111. commands: {
  112. /* informational commands */
  113. commands: true
  114. charcommands: true
  115. help: true
  116. rates: true
  117. uptime: true
  118. showdelay: true
  119. exp: true
  120. mobinfo: true
  121. iteminfo: true
  122. whodrops: true
  123. time: true
  124. jailtime: true
  125. hominfo: true
  126. homstats: true
  127. showexp: true
  128. showzeny: true
  129. whereis: true
  130. /* feature commands */
  131. refresh: true
  132. noask: true
  133. noks: true
  134. autoloot: true
  135. alootid: true
  136. autoloottype: true
  137. autotrade: true
  138. request: true
  139. go: true
  140. breakguild: true
  141. channel: true
  142. langtype: true
  143. }
  144. permissions: {
  145. attendance: false
  146. disable_pvm: false
  147. disable_pvp: false
  148. }
  149. },
  150. {
  151. id: 2
  152. name: "Support"
  153. inherit: ( "Super Player" )
  154. level: 1
  155. commands: {
  156. version: true
  157. where: true
  158. jumpto: true
  159. who: true
  160. who2: true
  161. who3: true
  162. whomap: true
  163. whomap2: true
  164. whomap3: true
  165. users: true
  166. broadcast: true
  167. localbroadcast: true
  168. }
  169. log_commands: true
  170. permissions: {
  171. receive_requests: true
  172. view_equipment: true
  173. disable_pvm: false
  174. disable_pvp: false
  175. }
  176. },
  177. {
  178. id: 3
  179. name: "Script Manager"
  180. inherit: ( "Support" )
  181. level: 1
  182. commands: {
  183. tonpc: true
  184. hidenpc: true
  185. shownpc: true
  186. loadnpc: true
  187. unloadnpc: true
  188. npcmove: true
  189. addwarp: true
  190. }
  191. log_commands: true
  192. permissions: {
  193. any_warp: true
  194. }
  195. },
  196. {
  197. id: 4
  198. name: "Event Manager"
  199. inherit: ( "Support" )
  200. level: 1
  201. commands: {
  202. monster: true
  203. monstersmall: true
  204. monsterbig: true
  205. killmonster2: true
  206. cleanarea: true
  207. cleanmap: true
  208. item: [true, true]
  209. zeny: [true, true]
  210. disguise: [true, true]
  211. undisguise: [true, true]
  212. size: [true, true]
  213. raise: true
  214. raisemap: true
  215. day: true
  216. night: true
  217. skillon: true
  218. skilloff: true
  219. pvpon: true
  220. pvpoff: true
  221. gvgon: true
  222. gvgoff: true
  223. allowks: true
  224. me: true
  225. marry: true
  226. divorce: true
  227. refreshall: true
  228. }
  229. log_commands: true
  230. permissions: {
  231. can_trade: false
  232. any_warp: true
  233. }
  234. },
  235. {
  236. id: 5
  237. name: "VIP"
  238. inherit: ( "Player" ) /* can do everything Players can */
  239. level: 0
  240. commands: {
  241. rates: true
  242. storage : true
  243. mobinfo : true
  244. alootid : true
  245. iteminfo : true
  246. autotrade : true
  247. breakguild : true
  248. hominfo: true
  249. homstats: true
  250. showexp: true
  251. }
  252. permissions: {
  253. /* no permissions by default */
  254. }
  255. },
  256. {
  257. id: 10
  258. name: "Law Enforcement"
  259. inherit: ( "Support" )
  260. level: 2
  261. commands: {
  262. hide: true
  263. follow: true
  264. kick: true
  265. disguise: true
  266. fakename: true
  267. option: true
  268. speed: true
  269. warp: true
  270. kill: true
  271. recall: true
  272. ban: true
  273. block: true
  274. jail: true
  275. jailfor: true
  276. mute: true
  277. storagelist: true
  278. cartlist: true
  279. itemlist: true
  280. stats: true
  281. }
  282. log_commands: true
  283. permissions: {
  284. join_chat: true
  285. kick_chat: true
  286. hide_session: true
  287. who_display_aid: true
  288. hack_info: true
  289. any_warp: true
  290. view_hpmeter: true
  291. disable_pvm: false
  292. disable_pvp: false
  293. }
  294. },
  295. {
  296. id: 99
  297. name: "Admin"
  298. level: 99
  299. inherit: ( "Support", "Law Enforcement" )
  300. commands: {
  301. /* not necessary due to all_commands: true */
  302. }
  303. log_commands: true
  304. permissions: {
  305. can_trade: true
  306. can_party: true
  307. command_enable: true
  308. all_skill: true
  309. all_equipment: true
  310. skill_unconditional: true
  311. use_check: true
  312. use_changemaptype: true
  313. all_commands: true
  314. channel_admin: true
  315. can_trade_bounded: true
  316. item_unconditional: true
  317. bypass_stat_onclone: true
  318. bypass_max_stat: true
  319. /* all_permission: true */
  320. }
  321. }
  322. )
  323.  
  324.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement