Index: conf/groups.conf =================================================================== --- conf/groups.conf (revision 17128) +++ conf/groups.conf (working copy) @@ -93,6 +93,7 @@ trade or party */ can_trade: true can_party: true + intravision: true } }, { Index: src/map/pc.c =================================================================== --- src/map/pc.c (revision 17128) +++ src/map/pc.c (working copy) @@ -922,9 +922,6 @@ sd->login_id2 = login_id2; sd->group_id = group_id; - /* load user permissions */ - pc_group_pc_load(sd); - memcpy(&sd->status, st, sizeof(*st)); if (st->sex != sd->status.sex) { @@ -1044,6 +1041,9 @@ clif_authok(sd); + /* load user permissions */ + pc_group_pc_load(sd); + //Prevent S. Novices from getting the no-death bonus just yet. [Skotlex] sd->die_counter=-1; Index: src/map/pc_groups.c =================================================================== --- src/map/pc_groups.c (revision 17128) +++ src/map/pc_groups.c (working copy) @@ -357,6 +357,11 @@ sd->permissions = group->e_permissions; sd->group_pos = group->group_pos; sd->group_level = group->level; + + if( sd->permissions&PC_PERM_INTRAVISION ) + clif_status_load(&sd->bl, SI_INTRAVISION, 1); + else + clif_status_load(&sd->bl, SI_INTRAVISION, 0); } /** * Checks if player group has a permission Index: src/map/pc_groups.h =================================================================== --- src/map/pc_groups.h (revision 17128) +++ src/map/pc_groups.h (working copy) @@ -43,6 +43,7 @@ PC_PERM_DISABLE_PVM = 0x040000, PC_PERM_DISABLE_PVP = 0x080000, PC_PERM_DISABLE_CMD_DEAD = 0x100000, + PC_PERM_INTRAVISION = 0x200000, }; static const struct { @@ -70,6 +71,7 @@ { "disable_pvm", PC_PERM_DISABLE_PVM }, { "disable_pvp", PC_PERM_DISABLE_PVP }, { "disable_commands_when_dead", PC_PERM_DISABLE_CMD_DEAD }, + { "intravision", PC_PERM_INTRAVISION }, }; #endif // _PC_GROUPS_H_