Jump to content

LordeWhiplash

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by LordeWhiplash

  1. 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!

  2. 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!

  3. hi, i'm having the exact same problem, did you resolved that? thanks

    On 4/8/2020 at 8:58 PM, Patskie said:

    Change all 

    
    getmapxy( .@map$,.@x,.@y,1 );

    to 

    
    getmapxy( .@map$,.@x,.@y,BL_NPC );

     

    thank you very much!

    thank you!

    • Upvote 1
×
×
  • Create New...