Advertisement
nevadies

Untitled

Jul 20th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. #include "ScriptPCH.h"
  2.  
  3. class Boss_Announcer : public PlayerScript
  4. {
  5. public:
  6. Boss_Announcer() : PlayerScript ("Boss_Announcer") {}
  7.  
  8. void OnCreatureKill(Player* player, Creature* boss)
  9. {
  10.  
  11. if (boss->isWorldBoss())
  12. {
  13. if (player->getGender() == GENDER_MALE)
  14. {
  15. char msg[250];
  16. snprintf(msg, 250, "|CFF7BBEF7[Boss Announcer]|r:|cffff0000 %s |r and his group killed world boss |CFF18BE00[%s]|r !!!",player->GetName(),boss->GetName());
  17. sWorld->SendServerMessage(SERVER_MSG_STRING, msg);
  18. }
  19. else
  20. {
  21. char msg[250];
  22. snprintf(msg, 250, "|CFF7BBEF7[Boss Announcer]|r:|cffff0000 %s |r and her group killed world boss |CFF18BE00[%s]|r !!!",player->GetName(),boss->GetName());
  23. sWorld->SendServerMessage(SERVER_MSG_STRING, msg);
  24. }
  25. }
  26. }
  27. };
  28.  
  29. void AddSC_Boss_Announcer()
  30. {
  31. new Boss_Announcer;
  32. }
  33.  
  34.  
  35.  
  36. 3>worldbossdies.obj : warning LNK4006: "void __cdecl AddSC_Boss_Announcer(void)" (?AddSC_Boss_Announcer@@YAXXZ) already defined in bossannouncer.obj; second definition ignored
  37. 3>stone.obj : warning LNK4006: "bool __cdecl Custom_FactCheck(unsigned int,unsigned char)" (?Custom_FactCheck@@YA_NIE@Z) already defined in tele.obj; second definition ignored
  38. 3>stone.obj : warning LNK4006: "void __cdecl Custom_GetMenu(class Player *,class Creature *,unsigned int)" (?Custom_GetMenu@@YAXPAVPlayer@@PAVCreature@@I@Z) already defined in tele.obj; second definition ignored
  39. 3>stone.obj : warning LNK4006: "unsigned int __cdecl Custom_GetText(unsigned int,class Player *)" (?Custom_GetText@@YAIIPAVPlayer@@@Z) already defined in tele.obj; second definition ignored
  40. 3>stone.obj : warning LNK4006: "struct Eric * TeLe" (?TeLe@@3PAUEric@@A) already defined in tele.obj; second definition ignored
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement