User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 7 of 9

Thread: BossAnnouncer.cpp

  1. #1
    Emulation Addict
    Join Date
    Jun 2016
    Posts
    60
    XP
    1,048
    Level
    8
    Thanks
    0
    Thanked 6 Times in 4 Posts

    Solved:BossAnnouncer.cpp

    Hello Guys i`ve using that, Script Bossannouncer.cpp but its no working i did recompiled 3x and cleaned, sulotion, didn't work yet no Announcering Boses, i triyed in group and wtihout Group

    #include "ScriptMgr.h"
    #include "Chat.h"
    #include "Language.h"

    class Boss_Announcer : public PlayerScript
    {
    public:
    Boss_Announcer() : PlayerScript("Boss_Announcer") {}

    void OnCreatureKill(Player* player, Creature* boss)
    {
    if (boss->isWorldBoss())
    {
    std::string plr = player->GetName();
    std::string boss_n = boss->GetName();
    std::string gender = player->getGender() == GENDER_FEMALE ? "her" : "his";
    bool ingroup = player->GetGroup();
    std::string tag_colour = "7bbef7";
    std::string plr_colour = "ff0000";
    std::string boss_colour = "18be00";
    std::ostringstream stream;
    stream << "|CFF" << tag_colour <<
    "[News]|r:|cff" << plr_colour << " " << plr <<
    "|I Killed |CFF" << boss_colour << "[" << boss_n << "]|r " <<
    (ingroup ? "by " : "with ") << gender << (ingroup ? " group" : "self") << "!";
    sWorld->SendServerMessage(SERVER_MSG_STRING, stream.str().c_str());
    }
    };
    };

    void AddSC_Boss_Announcer()
    {
    new Boss_Announcer;
    }
    Last edited by Minodevs; 07-17-2016 at 06:11 PM.
    Achievements:
    Member Level V 3 months registered

  2. #2
    Moderator / Eluna Dev <span style='color: #FF0000'><span class='glow_8B0000'>Rochet2</span></span>'s Avatar
    Join Date
    Apr 2013
    Location
    Finland
    Posts
    1,859
    XP
    13,487
    Level
    35
    Thanks
    95
    Thanked 591 Times in 418 Posts
    Awards:
    Support LOL Scripter Facepalm! Raffle Winner
    rochet2.github.io - Home of great codes

  3. #3
    Original Poster
    Emulation Addict
    Join Date
    Jun 2016
    Posts
    60
    XP
    1,048
    Level
    8
    Thanks
    0
    Thanked 6 Times in 4 Posts
    yea its has

  4. #4
    Moderator / Eluna Dev <span style='color: #FF0000'><span class='glow_8B0000'>Rochet2</span></span>'s Avatar
    Join Date
    Apr 2013
    Location
    Finland
    Posts
    1,859
    XP
    13,487
    Level
    35
    Thanks
    95
    Thanked 591 Times in 418 Posts
    how did you compile the script?
    Did you run cmake and then compile
    Awards:
    Support LOL Scripter Facepalm! Raffle Winner
    rochet2.github.io - Home of great codes

  5. #5
    Original Poster
    Emulation Addict
    Join Date
    Jun 2016
    Posts
    60
    XP
    1,048
    Level
    8
    Thanks
    0
    Thanked 6 Times in 4 Posts
    Quote Originally Posted by Rochet2 View Post
    how did you compile the script?
    Did you run cmake and then compile
    yea its working at, Sunwell, and BT instances, and i didn't set script name the instances bosses, lol

  6. #6
    Moderator / Eluna Dev <span style='color: #FF0000'><span class='glow_8B0000'>Rochet2</span></span>'s Avatar
    Join Date
    Apr 2013
    Location
    Finland
    Posts
    1,859
    XP
    13,487
    Level
    35
    Thanks
    95
    Thanked 591 Times in 418 Posts
    so it works -> there is no problem.

    So this is solved?
    Awards:
    Support LOL Scripter Facepalm! Raffle Winner
    rochet2.github.io - Home of great codes

  7. #7
    Original Poster
    Emulation Addict
    Join Date
    Jun 2016
    Posts
    60
    XP
    1,048
    Level
    8
    Thanks
    0
    Thanked 6 Times in 4 Posts
    mate its aren't work world bosses, i did set it Scriptname { Boss_Announcer } its are just working, instances no idea why like that, Better to Look pictures

    https://s32.postimg.org/eohnh44gl/image.png

    https://s31.postimg.org/3usyu68or/image.png

Thread Information

Users Browsing this Thread

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

Posting Permissions

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