This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!
Home
Forum
Modcraft - The community dedicated to quality WoW modding!
Forum
Wrath of the Lich King Modding
Serverside Modding
[SOLVED] GM Commands for users
Menu
Discord
Tutorials
Links
WowDev wiki
Print
Pages: [
1
]
2
Author
Topic: [SOLVED] GM Commands for users (Read 3677 times)
Alice
Registred Member
Race Changer
Posts: 28
[SOLVED] GM Commands for users
«
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.
«
Last Edit: August 21, 2015, 08:19:21 pm by Admin
»
Logged
Rochet2
Contributors
Polygonshifter
Posts: 59
Re: GM Commands for users
«
Reply #1 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.
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
rochet2.github.io - Home of great codes
Alice
Registred Member
Race Changer
Posts: 28
Re: GM Commands for users
«
Reply #2 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
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
Amaroth
Contributors
Creator of Worlds
Posts: 1219
Re: GM Commands for users
«
Reply #3 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.
EDIT: That table on the bottom, at third picture, is auth.rbac_linke_permissions, sorry, mistake.
Questions?
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng
Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz
Смердокрыл
Registred Member
Creator of Worlds
Posts: 445
Re: GM Commands for users
«
Reply #4 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)
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
or no.
At least I tried.
Amaroth
Contributors
Creator of Worlds
Posts: 1219
Re: GM Commands for users
«
Reply #5 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.
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng
Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz
Alice
Registred Member
Race Changer
Posts: 28
Re: GM Commands for users
«
Reply #6 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?
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
Alice
Registred Member
Race Changer
Posts: 28
Re: GM Commands for users
«
Reply #7 on:
August 20, 2015, 08:17:04 pm »
Done, i found the Ids and their description at rbac_permisions.
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
Смердокрыл
Registred Member
Creator of Worlds
Posts: 445
Re: [SOLVED] GM Commands for users
«
Reply #8 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!
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
or no.
At least I tried.
Amaroth
Contributors
Creator of Worlds
Posts: 1219
Re: [SOLVED] GM Commands for users
«
Reply #9 on:
October 05, 2015, 09:09:04 pm »
Where was problem?
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng
Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz
Смердокрыл
Registred Member
Creator of Worlds
Posts: 445
Re: [SOLVED] GM Commands for users
«
Reply #10 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?
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
or no.
At least I tried.
Смердокрыл
Registred Member
Creator of Worlds
Posts: 445
Re: [SOLVED] GM Commands for users
«
Reply #11 on:
October 05, 2015, 09:15:05 pm »
And yes, I did check on the other pages.
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
or no.
At least I tried.
Ascathos
Moderators
Creator of Worlds
Posts: 1129
Re: [SOLVED] GM Commands for users
«
Reply #12 on:
October 05, 2015, 09:39:12 pm »
.gobject, etc. are part of the moderator commands.
Check rbac_linked_permissions
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
Смердокрыл
Registred Member
Creator of Worlds
Posts: 445
Re: [SOLVED] GM Commands for users
«
Reply #13 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.
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
or no.
At least I tried.
Ascathos
Moderators
Creator of Worlds
Posts: 1129
Re: [SOLVED] GM Commands for users
«
Reply #14 on:
October 05, 2015, 09:50:31 pm »
Check your tables then. That one is necessary to have. It's in auth.
«
Last Edit: January 01, 1970, 01:00:00 am by Admin
»
Logged
Print
Pages: [
1
]
2
Modcraft - The community dedicated to quality WoW modding!
Forum
Wrath of the Lich King Modding
Serverside Modding
[SOLVED] GM Commands for users