BlackGold Опубликовано 17 января, 2016 Жалоба Поделиться Опубликовано 17 января, 2016 (изменено) Такая тема...../*Player groups configuration file---------------------------------This file defines "player groups" and their privileges.Each group has its id and name, lists of available commands and otherpermissions, 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 @whocommands.<level>Equivalent of GM level, which was used in revisions before r15572. You can setit to any number, but usually it's between 0 (default) and 99. Members ofgroups with lower level can not perform some actions/commands (like @kick) onmembers 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 totrue, group can use command. If only atcommand value is provided, false isassumed for charcommand. If a command name is not included, false is assumedfor 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 toatcommandlog. If setting is omitted in a group definition, false is assumed.Requires 'log_commands' to be enabled in 'conf/logs.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 permissionsfrom. Group names are case-sensitive.Inheritance results-------------------Both multiple inheritance (Group 2 -> Group 1 and Group 3 -> Group 1) andrecursive 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 isconsidered faulty and can't be processed fully by server.Command or permission is inherited ONLY if it's not already defined for thegroup.If group inherits from multiple groups, and the same command or permission isdefined for more than one of these groups, it's undefined which one will beinherited.Syntax------This config file uses libconfig syntax:http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files*/groups: ({id: 0 /* group 0 is the default group for every new account */name: "Player"level: 0inherit: ( /*empty list*/ )commands: {/* no commands by default */}permissions: {/* without this basic permissions regular players could not* trade or party */can_trade: truecan_party: true}},{id: 1name: "Super Player"inherit: ( "Player" ) /* can do everything Players can and more */level: 0commands: {/* informational commands */commands: truecharcommands: truehelp: truerates: trueuptime: trueshowdelay: trueexp: truemobinfo: trueiteminfo: truewhodrops: truetime: truejailtime: truehominfo: truehomstats: trueshowexp: trueshowzeny: truewhereis: true/* feature commands */refresh: truenoask: truenoks: trueautoloot: truealootid: trueautoloottype: trueautotrade: truerequest: truego: truebreakguild: truechannel: true}permissions: {}},{id: 2name: "Support"inherit: ( "Super Player" )level: 1commands: {version: truewhere: truejumpto: truewho: truewho2: truewho3: truewhomap: truewhomap2: truewhomap3: trueusers: truebroadcast: truelocalbroadcast: true}log_commands: truepermissions: {receive_requests: trueview_equipment: true}},{id: 3name: "Script Manager"inherit: ( "Support" )level: 1commands: {tonpc: truehidenpc: trueshownpc: trueloadnpc: trueunloadnpc: truenpcmove: trueaddwarp: true}log_commands: truepermissions: {any_warp: true}},{id: 4name: "Event Manager"inherit: ( "Support" )level: 1commands: {monster: truemonstersmall: truemonsterbig: truekillmonster2: truecleanarea: truecleanmap: trueitem: [true, true]zeny: [true, true]disguise: [true, true]undisguise: [true, true]size: [true, true]raise: trueraisemap: trueday: truenight: trueskillon: trueskilloff: truepvpon: truepvpoff: truegvgon: truegvgoff: trueallowks: trueme: truemarry: truedivorce: truerefreshall: true}log_commands: truepermissions: {can_trade: falseany_warp: true}},{id: 10name: "Law Enforcement"inherit: ( "Support" )level: 2commands: {hide: truefollow: truekick: truedisguise: truefakename: trueoption: truespeed: truewarp: truekill: truerecall: trueban: trueblock: truejail: truejailfor: truemute: truestoragelist: truecartlist: trueitemlist: truestats: true}log_commands: truepermissions: {join_chat: truekick_chat: truehide_session: truewho_display_aid: truehack_info: trueany_warp: trueview_hpmeter: true}},{id: 99name: "Admin"level: 99inherit: ( "Support", "Law Enforcement" )commands: {/* not necessary due to all_commands: true */}log_commands: truepermissions: {can_trade: truecan_trade_bound: falsecan_party: trueall_skill: falseall_equipment: falseskill_unconditional: falseuse_check: trueuse_changemaptype: trueall_commands: truehchsys_admin: true}})Не могу понять как сделать что бы каждый новый аккаунт создавался под id: 1 name:Super Player кто нибудь знает эту тему? Изменено 17 января, 2016 пользователем BlackGold Ссылка на комментарий Поделиться на другие сайты Поделиться
ucell-uz Опубликовано 17 января, 2016 Жалоба Поделиться Опубликовано 17 января, 2016 (изменено) это уже не тут настраивается акк создаётся изнутри, значить и капать надо в сорцах Изменено 17 января, 2016 пользователем ucell-uz Ссылка на комментарий Поделиться на другие сайты Поделиться
BlackGold Опубликовано 17 января, 2016 Автор Жалоба Поделиться Опубликовано 17 января, 2016 это уже не тут настраивается акк создаётся изнутри, значить и капать надо в сорцахЯсно!Буду искать! Ещё кто знает можете подсказать как добавить определённых мвп в Bloody Branch? Ссылка на комментарий Поделиться на другие сайты Поделиться
Functor Опубликовано 18 января, 2016 Жалоба Поделиться Опубликовано 18 января, 2016 Не могу понять как сделать что бы каждый новый аккаунт создавался под id: 1 name:Super Player кто нибудь знает эту тему?Открываем ../src/login/login.c и в функции login_mmo_auth_new перед:safestrncpy(acc.email, "a@a.com", sizeof(acc.email));пишем:acc.group_id = 1;Ещё кто знает можете подсказать как добавить определённых мвп в Bloody Branch?../db/pre-re/mob_boss.txt и ../db/re/mob_boss.txt 1 Ссылка на комментарий Поделиться на другие сайты Поделиться
BlackGold Опубликовано 18 января, 2016 Автор Жалоба Поделиться Опубликовано 18 января, 2016 Не могу понять как сделать что бы каждый новый аккаунт создавался под id: 1 name:Super Player кто нибудь знает эту тему?Открываем ../src/login/login.c и в функции login_mmo_auth_new перед:safestrncpy(acc.email, "a@a.com", sizeof(acc.email));пишем:acc.group_id = 1;Ещё кто знает можете подсказать как добавить определённых мвп в Bloody Branch?../db/pre-re/mob_boss.txt и ../db/re/mob_boss.txtСпасибо большое) Ссылка на комментарий Поделиться на другие сайты Поделиться
Рекомендуемые сообщения