Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Alice on August 08, 2015, 02:16:25 am

Title: [SOLVED] GM Commands for users
Post by: Alice on August 08, 2015, 02:16:25 am
Hi, i want to ask if it is possible put some GM commands for users, and how. I want to choose the commands, not put all commands of course.Thanks.
Title: Re: GM Commands for users
Post by: Rochet2 on August 08, 2015, 02:21:43 am
could be useful to know what core you are using.
on trinitycore you can use the rbac system in auth database to give the commands as permissions to the player GM level.
See the groupID in rbac_default_permissions for the gmlevel 0 and then use the rbac_linked_permission table to link permissions to that ID.
Each command has a permission ID set and you can see them in rbac_permissions table (I think that was the name ..) or in the world database commands table.
Title: Re: GM Commands for users
Post by: Alice on August 08, 2015, 03:31:11 am
I have trinitycore. But, How do I identify which is every command?
For example: i want commands .Go a and .Tel for all users. Thanks
Title: Re: GM Commands for users
Post by: Amaroth on August 08, 2015, 10:21:41 am
195 is ID of permission Player permissions - every player has player permissions. 1 is ID of instant logout, it enables you to logout without that stupid 20 sec waiting time.

So, when you link permission 195 (player permissions) to permission 1 (instant logout), every account with at least player permissions (GMs have all player permisisons, admins have all player and GM permissions...) can instantly logout. Commands are exactly the same, you just need to find their permission ID and do the same.
(http://s4.postimg.org/n571f7qsd/tmp.jpg)
EDIT: That table on the bottom, at third picture, is auth.rbac_linke_permissions, sorry, mistake.

Questions?
Title: Re: GM Commands for users
Post by: Смердокрыл on August 08, 2015, 11:31:17 am
If a normal player has gmlevel 1 (or 0, I dont remember), go to MySQL, World, Comands table, and set the needed comands level 1 (or 0)
Title: Re: GM Commands for users
Post by: Amaroth on August 08, 2015, 12:47:46 pm
Thats the old way how to do it, no longer working. TrinityCore has introduced RBAC system about 3 years ago and since then this is not supported.
Title: Re: GM Commands for users
Post by: Alice on August 08, 2015, 09:02:42 pm
Really helpfull, thanks a lot. And how you find the permissions ID? and what each Id does?
Title: Re: GM Commands for users
Post by: Alice on August 20, 2015, 08:17:04 pm
Done, i found the Ids and their description at rbac_permisions.
Title: Re: [SOLVED] GM Commands for users
Post by: Смердокрыл on October 05, 2015, 09:00:54 pm
Hey, sorry for necromancy, but I wanna allow a certain group to use .lookup, .gobject and .npc commands, but I cant find them in the rbac_permissions table. There only is "Administrator Commands (Temporal till commands moved to rbac)", which, I suppose, gives all the administrator commands.
Please, help asap!
Title: Re: [SOLVED] GM Commands for users
Post by: Amaroth on October 05, 2015, 09:09:04 pm
(http://s30.postimg.org/4509xdvap/image.jpg)
(http://s12.postimg.org/j3oduayjx/image.jpg)
(http://s17.postimg.org/dznkcisvz/image.jpg)

Where was problem?
Title: Re: [SOLVED] GM Commands for users
Post by: Смердокрыл on October 05, 2015, 09:14:27 pm
Right there:
[attachment=0:23l1x2m1]rbac.jpg[/attachment:23l1x2m1]

I only have 48 records in my rbac_permissions table for some reason. If I add the "Command: .lookup" thing myself, do you think it'll work?
Title: Re: [SOLVED] GM Commands for users
Post by: Смердокрыл on October 05, 2015, 09:15:05 pm
And yes, I did check on the other pages.
Title: Re: [SOLVED] GM Commands for users
Post by: Ascathos on October 05, 2015, 09:39:12 pm
.gobject, etc. are part of the moderator commands.

Check rbac_linked_permissions
Title: Re: [SOLVED] GM Commands for users
Post by: Смердокрыл on October 05, 2015, 09:40:36 pm
Quote from: "Ascathos"
Check rbac_linked_permissions
I dont have such table. I only have rbac_permissions and rbac_role_permissions.
Title: Re: [SOLVED] GM Commands for users
Post by: Ascathos on October 05, 2015, 09:50:31 pm
Check your tables then. That one is necessary to have. It's in auth.
Title: Re: [SOLVED] GM Commands for users
Post by: Смердокрыл on October 05, 2015, 10:34:05 pm
Can't see it...
[attachment=0:kk32xsly]rbac.jpg[/attachment:kk32xsly]
Title: Re: [SOLVED] GM Commands for users
Post by: Amaroth on October 05, 2015, 11:01:58 pm
It seems you have either obsolete or incomplete DB Oo.
Title: Re: [SOLVED] GM Commands for users
Post by: Ascathos on October 05, 2015, 11:06:52 pm
Quote from: "Amaroth"
It seems you have either obsolete or incomplete DB Oo.
It was renamed at some point. Update your core.
Title: Re: [SOLVED] GM Commands for users
Post by: Смердокрыл on October 06, 2015, 05:36:35 am
Quote from: "Ascathos"
Quote from: "Amaroth"
It seems you have either obsolete or incomplete DB Oo.
It was renamed at some point. Update your core.
I am currently having a pre-compiled server. I have tried to switch to a "proper" one, but things never go the way I want: viewtopic.php?f=60&t=9713&start=30 (http://modcraft.io/viewtopic.php?f=60&t=9713&start=30" onclick="window.open(this.href);return false;)