Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- <--------------------------------------------------------------------------->
- - Developer(s): .~I~., QQrofl
- - Updated by: Rochet2
- - Complete: %100
- - ScriptName: 'on_login'
- - Comment: Untested.
- <--------------------------------------------------------------------------->
- */
- #include "ScriptPCH.h"
- /*
- COLORS
- */
- #define MSG_COLOR "00ff00"
- #define NAME_COLOR "00ff00"
- /*
- WELCOME MSG
- */
- #define W_MSG "WELCOME BACK ONLINE"
- uint32 spellArray[] = { 48161, 48073, 20217, 48469, 16609, 15366, 22888, 57399, 17013, 16612, 24705,
- 26035, 31305, 36001, 70235, 70242, 70244, 30090, 30088, 30089 };
- class on_login : public PlayerScript
- {
- public:
- on_login() : PlayerScript("on_login") {}
- void OnLogin(Player* player)
- {
- player->GetSession()->SendNotification("|cff"MSG_COLOR"! "W_MSG" |cff"NAME_COLOR"%s|cff"MSG_COLOR" !", player->GetName.c_str());
- player->Dismount();
- player->RemoveAurasByType(SPELL_AURA_MOUNTED);
- for (int i = 0; sizeof(spellArray)/sizeof(*spellArray))
- player->AddAura(spellArray[i], player);
- }
- };
- void AddSC_on_login()
- {
- new on_login();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement