MichaelCrow

Justin Beiber 12 hour DVD set

Jan 13th, 2013
613
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. #include "ScriptPCH.h"
  2.  
  3. class Announce_NewPlayer : public PlayerScript
  4. {
  5. public:
  6.         Announce_NewPlayer() : PlayerScript("Announce_NewPlayer") {}
  7.  
  8.         void OnLogin(Player * player)
  9.         {
  10.                 std::ostringstream ss;
  11.  
  12.                 if(player->GetTotalPlayedTime() < 5)
  13.                 {
  14.                 ss << "|cff54b5ffWelcome to our new character called|r " << ChatHandler(player->GetSession()).GetNameLink() << " |cff54b5ff!|r";
  15.             sWorld->SendServerMessage(SERVER_MSG_STRING, ss.str().c_str());
  16.                         player->CastSpell(player, 55420);
  17.                         return;
  18.                 }
  19.                 else
  20.                 {
  21.                 }
  22.         }
  23.  
  24. };
  25. void AddSC_Announce_NewPlayer()
  26. {
  27.         new Announce_NewPlayer;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment