Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- class test_entermap : public PlayerScript
- {
- public:
- test_entermap() : PlayerScript("test_entermap") {}
- void OnPlayerEnterMap(Map* map, Player* player)
- {
- if (player->GetMapId() == 47)
- {
- player->AddAura(68378, player);
- ChatHandler(player->GetSession()).PSendSysMessage("You have all the power you could imagine.");
- }
- if (player->HasAura(61254))
- {
- player->RemoveAurasDueToSpell(61254);
- player->TeleportTo(530, 6654.645508f, -6458.209473f, 29.259302f, 2.664963f);
- }
- }
- };
- void AddSC_test_entermap()
- {
- new test_entermap();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement