User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 7 of 20

Thread: Add tag before player name (chat)

  1. #1
    Member
    Join Date
    Jul 2016
    Posts
    33
    XP
    370
    Level
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Add tag before player name (chat)

    Hey what's up.

    I wanna put a tag before the player name when (s)he send any message (say, yell, guild, etc).

    At this moment, the basic msg:

    [Zhier]: Hi bro.

    I wanna do something like:

    [TAG][Zhier]: Hi bro.

    (I wanna do it with GetSecurity or checking which commands the player have).

    I hope u can help me.

    Thanks

  2. #2
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,497
    XP
    20,134,837
    Level
    500
    Thanks
    1,092
    Thanked 333 Times in 213 Posts
    here is a link to all my different world chat scripts for Eluna and CPP --> https://github.com/BlackWolfsDen/World_Chat

    you can see how i handle local chat trigger and channel chat trigger. also if you examine Guild Warz you will see how i handle Guild channel chat trigger.

    from there with Eluna you could just make 1 function to add the tag and then just register it to all those unique chat events(/say , /channel , /guild).

    with CPP you could just make a sub function then call it from a player script chat event and it will just add the tag plus player name and return the updated msg. then send the new msg to all players in world while nil'ing the original msg i.e. (msg = -1). you will see how i do that in my CPP world chat scripts :)
    Last edited by slp13at420; 07-19-2016 at 02:13 AM.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  3. #3
    Original Poster
    Member
    Join Date
    Jul 2016
    Posts
    33
    XP
    370
    Level
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm I can't understand all the code... I need to say I'm newbie in this but I do all what I can.

    Can u tell me better which files I need to edit or something else...

    I don't want World Chat, I want to set badges or tags to the traditional chat.

    Thanks and sorry.

  4. #4
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,497
    XP
    20,134,837
    Level
    500
    Thanks
    1,092
    Thanked 333 Times in 213 Posts
    the world chat scripts have badges n prefixes/tags in them , clickable names blah blah blah i was linking them for those examples.

    - - - Updated - - -

    basic World Chat cpp
    World Chat Script cpp

    you will see in the pix.
    Last edited by slp13at420; 07-19-2016 at 02:23 AM.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  5. #5
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,497
    XP
    20,134,837
    Level
    500
    Thanks
    1,092
    Thanked 333 Times in 213 Posts
    im currently rewiping my pc or i would have whipped up a base script you could expand on.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  6. #6
    Original Poster
    Member
    Join Date
    Jul 2016
    Posts
    33
    XP
    370
    Level
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks bro, no prob.

    I will try to do that in base with all the links you gave me.

  7. #7
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,497
    XP
    20,134,837
    Level
    500
    Thanks
    1,092
    Thanked 333 Times in 213 Posts
    if you run into a snag just post what you got so far n we can help you :)
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •