Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- <--------------------------------------------------------------------------->
- - Developer(s): Jameyboor
- - Updated by: Synth
- - Complete: %100
- - ScriptName: 'Boss_Announcer'
- - Comment: Untested.
- - Shared for:Emudevs by Synth
- <--------------------------------------------------------------------------->
- */
- #include "ScriptPCH.h"
- class Boss_Announcer : public PlayerScript
- {
- public:
- Boss_Announcer() : PlayerScript ("Boss_Announcer") {}
- void OnCreatureKill(Player* player, Creature* boss)
- {
- if (boss->isWorldBoss())
- {
- if (player->getGender() == GENDER_MALE)
- {
- char msg[250];
- snprintf(msg, 250, "|CFF7BBEF7[Boss Announcer]|r:|cffff0000 %s |r and his group killed world boss |CFF18BE00[%s]|r !!!",player->GetName().c_str(),boss->GetName.c_str());
- sWorld->SendServerMessage(SERVER_MSG_STRING, msg);
- }
- else
- {
- char msg[250];
- snprintf(msg, 250, "|CFF7BBEF7[Boss Announcer]|r:|cffff0000 %s |r and her group killed world boss |CFF18BE00[%s]|r !!!",player->GetName().c_str(),boss->GetName.c_str());
- sWorld->SendServerMessage(SERVER_MSG_STRING, msg);
- }
- }
- }
- };
- void AddSC_Boss_Announcer()
- {
- new Boss_Announcer;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement