Dinoza

Lich Kill

Oct 23rd, 2012
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include "ScriptPCH.h"
  2.  
  3. class lich_kill : public PlayerScript
  4. {
  5. public:
  6.     lich_kill() : PlayerScript("lich_kill") { }
  7.    
  8.    
  9.     void OnCreatureKill(Player* player, Creature* creature)
  10.     {
  11.         if (player->GetGroup() && player->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GROUP_LEADER) && creature->GetEntry() == 36597)
  12.         {
  13.             char msg[255];
  14.             snprintf(msg, 255, "Король лич опять повержен героями во главе которых стоял %s", player->GetName());
  15.             sWorld->SendServerMessage(SERVER_MSG_STRING, msg);
  16.         }
  17.     }
  18. }
  19.  
  20. void AddSC_lich_kill()
  21. {
  22.     new lich_kill();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment