Code:
#include "StdAfx.h"
#include "Setup.h"

#ifdef WIN32
#pragma warning(disable:4305)    // warning C4305: 'argument' : truncation from 'double' to 'float'
#endif




void OnEnterWorld(Player * pPlayer)
{
pPlayer->CastSpell(pPlayer, 33581, true);
 }

        
    
void SetupEnterWorld(ScriptMgr * mgr)
{
    mgr->register_hook(SERVER_HOOK_EVENT_ON_ENTER_WORLD, OnEnterWorld);
}
This is pretty much so when you login you wont be wtfpwned by mobs or other players.