LordeWhiplash Posted April 24, 2020 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 9 Reputation: 1 Joined: 03/13/20 Last Seen: January 7, 2024 Share Posted April 24, 2020 Hi, i'm trying to do the messages of a channel appear on top of the game, like in an @broadcast message. I've already used the search tool here on forums, but in the only topic about this i've found, the author was not understood. Exemple : when i use #trade, the messagem only appear here i want it to appear here too. but of course in the same format as #trade messages ( [Trade] Samurai : teste] ) Could anyone help me with that? Thanks! Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted April 24, 2020 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 950 Reputation: 180 Joined: 04/05/13 Last Seen: Yesterday at 02:57 AM Share Posted April 24, 2020 (edited) Not sure but you can try \src\map\script.cpp >> lines 11187. (Copy/Look at this line of code) Then go to channel src files. Try to check it's trade channel and announce it. Edited April 24, 2020 by Start_ Quote Link to comment Share on other sites More sharing options...
0 LordeWhiplash Posted April 25, 2020 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 9 Reputation: 1 Joined: 03/13/20 Last Seen: January 7, 2024 Author Share Posted April 25, 2020 On 4/24/2020 at 12:06 PM, Start_ said: Not sure but you can try \src\map\script.cpp >> lines 11187. (Copy/Look at this line of code) Then go to channel src files. Try to check it's trade channel and announce it. Hi Start_, thanks for the answer, i've looked on this, and looks like clif_broadcast is the way to do it, but unfortunately i'm not good at programming. I've started studing and doing my server just about a month ago... i have seen this feature on other servers, thought it was something easier to do, like something that someone already divulged a script for that (thought it was a script before knowing it was #channel)... i'll keep trying to figure out how to do it, thank you! I was looking at scripts and found out "OnWhisperGlobal", so i've made a simple script that broadcasts what is whispered. it works, but i would prefer to players use "#trade" than "npc:trade" to whisper... at least it is working for now while i dont know how to channel announce =D - script trade -1,{ OnWhisperGlobal: announce "[Trade] "+strcharinfo(0)+" : "+@whispervar0$+"",bc_all; } hope this helps someone... and if anyone know how to announce with "#trade", i'm still very interested. Thanks! Quote Link to comment Share on other sites More sharing options...
Question
LordeWhiplash
Hi, i'm trying to do the messages of a channel appear on top of the game, like in an @broadcast message.
I've already used the search tool here on forums, but in the only topic about this i've found, the author was not understood.
Exemple : when i use #trade, the messagem only appear here
i want it to appear here too.
but of course in the same format as #trade messages ( [Trade] Samurai : teste] )
Could anyone help me with that?
Thanks!
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.