View Full Version : [SOLVED] Run command.on Every Login
09-15-2015, 10:43 PM
I was looking into doing this but, I would like to know the code to automatically run a command. The command I wanted was .whisper on
I figured that this is how it would be handled.
local function OnLogin(event, player)
Run command(".whisper on")
09-15-2015, 10:48 PM
you can not force a player chat input in a way that it would trigger commands like that.
Need to either use C++ modification or a client addon.
You might want to check the config options too.
09-15-2015, 11:55 PM
Oh okay, I wanted to make it that horde can whisper ally and vice versa and it seemed that this command does the trick I may create an add-on to enable this. Since when ever I even as a gm.with .gm on, .gm chat on it says that the player doesn't exist. Enabling all interfaction and filter whispers doesn't work. So I guess I may have to add it to a add-on.
Thanks, Rochet2 once again.
Afaik you can activate this in the worldserver config, really no need for an addon here.
09-16-2015, 10:45 AM
I'll have to look into it when I get to my dorm.
Doesn't the config enable it only for GMs. I wanted it for everyone.
09-16-2015, 03:16 PM
The config enables it for everyone
09-16-2015, 09:39 PM
So enabling both of these should allow horde players talk with ally players and vice versa?
# Description: Allow channel chat between factions.
# Default: 0 - (Disabled)
# 1 - (Enabled)
AllowTwoSide.Interaction.Channel = 1
# Description: Is GM accepting whispers from player by default or not.
# Default: 2 - (Last save state)
# 0 - (Disable)
# 1 - (Enable)
GM.WhisperingTo = 1
There is only one way to find out.
Don't enable the bottom one though, keep it as default, unless you want the players to be able to whisper GMs without permission.
09-19-2015, 04:20 AM
I enabled the rbac for
Filter Whispers, and Chat even as a GM I still get this error when I try to whisper the opposite faction:
No player named 'PLAYERNAME' is currently playing.
I have .gm chat on, .gm on and .whisp on
But the weird thing is the .whisp on allows normal players to whisper me so like they have to whisper me before I can whisper them.
09-19-2015, 12:13 PM
Hi. Permissions for stuff like this is also controlled by the RBAC tables in the auth database.
You need to execute this SQL into your auth db..
INSERT INTO rbac_linked_permissions (id,linkedId) VALUES (195,25)
INSERT INTO rbac_linked_permissions (id,linkedId) VALUES (195,26)
Where the 195 in that is the ID for the security level of 0.
25 is Allow say chat between two factions
26 is Allow channel chat between two factions
Edit - Lol , looks like I took so long posting this that the topic has changed
09-20-2015, 09:25 AM
I was thinking it was a RBAC issue thanks :)
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.