• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Run command.on Every Login

Status
Not open for further replies.

Render1982

Emulation Addict
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.

Code:
local function OnLogin(event, player)
   Run command(".whisper on")
end

RegisterPlayerEvent(3, player)
 

Rochet2

Moderator / Eluna Dev
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.
 

Render1982

Emulation Addict
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.
 

Kaev

Super Moderator
Afaik you can activate this in the worldserver config, really no need for an addon here.
 

Render1982

Emulation Addict
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.
 
Last edited:

Render1982

Emulation Addict
So enabling both of these should allow horde players talk with ally players and vice versa?

Code:
#
#    AllowTwoSide.Interaction.Channel
#        Description: Allow channel chat between factions.
#        Default:     0 - (Disabled)
#                     1 - (Enabled)

AllowTwoSide.Interaction.Channel = 1

and

Code:
#
#    GM.WhisperingTo
#        Description: Is GM accepting whispers from player by default or not.
#        Default:     2 - (Last save state)
#                     0 - (Disable)
#                     1 - (Enable)

GM.WhisperingTo = 1
 

Jpp

Administrator
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.
 

Render1982

Emulation Addict
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.
 

Jafferwaffer

Exalted Member
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..
Code:
INSERT INTO rbac_linked_permissions (id,linkedId) VALUES (195,25)
Code:
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
 
Status
Not open for further replies.
Top