User Tag List

Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 8 to 14 of 20

Thread: Add tag before player name (chat)

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



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,492
    XP
    20,134,806
    Level
    500
    Thanks
    1,089
    Thanked 330 Times in 212 Posts
    actually game/Chat/chat.cpp looks most promising:
    Code:
    
    std::string ChatHandler::GetNameLink(Player* chr) const
    {
        return playerLink(chr->GetName());
    }
    
    Code:
    
    std::string ChatHandler::GetNameLink(Player* chr) const
    {
        return playerLink("<TAG>" + chr->GetName());
    }
    
    but somehow I lost my wotlk client folder so I gotta wait till it finishes downloading till I can do any testing but that should affect any chat and add the tag to the players name anytime GetNameLink() is called.
    and you should be able to parse for condition requirements based on player.
    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

  2. #9
    Original Poster
    Member
    Join Date
    Jul 2016
    Posts
    33
    XP
    370
    Level
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Wow, this is what I need to do.

    I'm gonna try and reply this later.

  3. #10
    Original Poster
    Member
    Join Date
    Jul 2016
    Posts
    33
    XP
    370
    Level
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It didn't work :(

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



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,492
    XP
    20,134,806
    Level
    500
    Thanks
    1,089
    Thanked 330 Times in 212 Posts
    i am getting some reaction by editing `senderName` in chat.cpp:
    size_t ChatHandler::BuildChatPacket(WorldPacket& data, ChatMsg chatType, Language language, WorldObject const* sender, WorldObject const* receiver, std::string const& message,
    uint32 achievementId /*= 0*/, std::string const& channelName /*= ""*/, LocaleConstant locale /*= DEFAULT_LOCALE*/)

    its not exactly what I want it to do as you want since the tag is inside the brackets `[]` .. we need to find where those 2 brackets `[]` are added for the player name then we could try and insert the badge there .
    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. #12
    Original Poster
    Member
    Join Date
    Jul 2016
    Posts
    33
    XP
    370
    Level
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I could modify that but I supossed the namelinks will broke up..

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



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,492
    XP
    20,134,806
    Level
    500
    Thanks
    1,089
    Thanked 330 Times in 212 Posts
    yea it breaks the name links since its actually editing the name.
    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

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



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,492
    XP
    20,134,806
    Level
    500
    Thanks
    1,089
    Thanked 330 Times in 212 Posts
    I think if we find where its all finally packed in the brackets we can insert the tag there.
    most of it I can fake with script but the right way would require only 1-2 lines of code.
    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
  •