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
-
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.
-
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.
-
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
-
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?
-
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)
-
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.
-
Really helpfull, thanks a lot. And how you find the permissions ID? and what each Id does?
-
Done, i found the Ids and their description at rbac_permisions.
-
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!
-
(http://s30.postimg.org/4509xdvap/image.jpg)
(http://s12.postimg.org/j3oduayjx/image.jpg)
(http://s17.postimg.org/dznkcisvz/image.jpg)
Where was problem?
-
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?
-
And yes, I did check on the other pages.
-
.gobject, etc. are part of the moderator commands.
Check rbac_linked_permissions
-
Check rbac_linked_permissions
I dont have such table. I only have rbac_permissions and rbac_role_permissions.
-
Check your tables then. That one is necessary to have. It's in auth.
-
Can't see it...
[attachment=0:kk32xsly]rbac.jpg[/attachment:kk32xsly]
-
It seems you have either obsolete or incomplete DB Oo.
-
It seems you have either obsolete or incomplete DB Oo.
It was renamed at some point. Update your core.
-
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;)