[Trinity] How do i get a mob to say a player name? menu

User Tag List

Results 1 to 1 of 1
  1. #1
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Trinity] How do i get a mob to say a player name?

    So i have the player. Im using plr->GetName() to get the name and trying to append " Great job killing the Devilish Ghoul" to the end and have a mob say it.
    The MonsterSay function wants a Char* for the text.

    Would the following work?

    Code:
     std::string chatmsg;
                               chatmsg = (std::string)plr->GetName() +  " Great job killing the Devilish Ghoul";
                               me->MonsterSay(chatmsg.c_str(),LANG_UNIVERSAL,NULL);
    the IDE isnt showing any errors but i dont know if using the + operator is right

    [Trinity] How do i get a mob to say a player name?

Similar Threads

  1. [C++ Script] Trinity Core- How to make a summoned mob heal a boss
    By Scapee in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 08-22-2011, 04:30 PM
  2. How to not get deserter debuff in a BG!
    By wicked_joe in forum World of Warcraft Exploits
    Replies: 12
    Last Post: 11-01-2006, 03:09 PM
  3. How Not to get banned
    By Fault in forum World of Warcraft General
    Replies: 11
    Last Post: 09-28-2006, 10:18 PM
  4. How can i get my screen like this
    By Mike3667 in forum World of Warcraft General
    Replies: 4
    Last Post: 09-09-2006, 07:31 PM
  5. How do i get?
    By Bossman4 in forum Community Chat
    Replies: 22
    Last Post: 06-08-2006, 01:28 PM
All times are GMT -5. The time now is 09:00 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search