Advertisement
Guest User

test_entermap.cpp

a guest
Feb 4th, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. #include "ScriptPCH.h"
  2.  
  3. class test_entermap : public PlayerScript
  4. {
  5.     public:
  6.         test_entermap() : PlayerScript("test_entermap") {}
  7.  
  8.     void OnPlayerEnterMap(Map* map, Player* player)
  9.     {
  10.         if (player->GetMapId() == 47)
  11.     {
  12.             player->AddAura(68378, player);
  13.             ChatHandler(player->GetSession()).PSendSysMessage("You have all the power you could imagine.");
  14.     }
  15.         if (player->HasAura(61254))
  16.     {
  17.             player->RemoveAurasDueToSpell(61254);
  18.             player->TeleportTo(530, 6654.645508f, -6458.209473f, 29.259302f, 2.664963f);
  19.     }
  20.     }
  21. };
  22.  
  23. void AddSC_test_entermap()
  24. {
  25.     new test_entermap();
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement