• 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] Chat (/s) "say"

Status
Not open for further replies.

Troya

Respected Member
Hey people.



I trying find a way how to modify "say" command







when you type /s hey it is look this [Troy]: hey. But what i want i have 3 VIP ranks and i want to look like GM



when VIP 1 say /s hey to look VIP icon1 [Troy]: hey

when VIP 2 say /s hey to look VIP icon2 [Troy]: hey

when VIP 3 say /s hey to look VIP icon3 [Troy]: hey



GM have this system



when GM with tag on say /s hey to look blizz icon [Troy]: hey



how to do that for VIP-s with custom GM level?
 

Mathias

Exalted Member
I am not sure but i think you can change void Channel::Say(ObjectGuid guid, std::string const& what, uint32 lang) inside channels.cpp

Maybe modify the const what
 

Troya

Respected Member
I am not sure but i think you can change void Channel::Say(ObjectGuid guid, std::string const& what, uint32 lang) inside channels.cpp

Maybe modify the const what

I think you didnt understend me.

I dont want custom channel.
I just want modify that /s command
 

Mathias

Exalted Member
I think you didnt understend me.

I dont want custom channel.
I just want modify that /s command

yeah thats what i instructed you to do

if you give me an hour i will try to come up with how but atm my computer cant compile
 

Lightning Blade

BETA Tester
I'm pretty sure eluna is loaded after the ChatHandler.cpp, so unless there is a hook OnSay ( Player hook ), I'm not sure.

Kinda like with the . commands
 

Lightning Blade

BETA Tester
well that dosnt matter because he wants c++

Sometimes I should read instead of asuming. Anyhow.

OT:

Troya go to ChatHandler.cpp and search for MSG_SAY, should be it at least. You will end up with a few results, one of them is a Switch case, there might be more than 2 switch case result, you'll know which one it is if you can read code. Then basically make checks changing the color etc.
 

Troya

Respected Member
Sometimes I should read instead of asuming. Anyhow.

OT:

Troya go to ChatHandler.cpp and search for MSG_SAY, should be it at least. You will end up with a few results, one of them is a Switch case, there might be more than 2 switch case result, you'll know which one it is if you can read code. Then basically make checks changing the color etc.

It cant find MSG_SAY in ChatHandler.cpp
 

Rochet2

Moderator / Eluna Dev
What you want is not possible - without client editing.
Only things you can edit from server are
[THIS]: AND THIS
which are the name and the message.
Everything else is coded on client side. Including the gm chat tag.
 

Troya

Respected Member
What you want is not possible - without client editing.
Only things you can edit from server are
[THIS]: AND THIS
which are the name and the message.
Everything else is coded on client side. Including the gm chat tag.

:( oh i understend. Thank you for info
 
Status
Not open for further replies.
Top