Jump to content
  • 0
LordeWhiplash

How to make channel message show on top as with @broadcast?

Question

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

image.png.f3ff88fbaa5612428711f03d6b5b6a28.png

i want it to appear here too.

image.png.32eaecbac9434dcf6b57eaf43998c9c8.png

but of course in the same format as #trade messages (   [Trade] Samurai : teste]   )

Could anyone help me with that?

Thanks!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Posted (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 by Start_

Share this post


Link to post
Share on other sites
  • 0
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)+" : "[email protected]$+"",bc_all;

}

hope this helps someone... and if anyone know how to announce with "#trade", i'm still very interested. Thanks!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.