Jump to content
  • 0

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


LordeWhiplash

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   1
  • Joined:  03/13/20
  • Last Seen:  

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!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

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_
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   1
  • Joined:  03/13/20
  • Last Seen:  

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!

Link to comment
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...