Last active
August 29, 2015 13:57
-
-
Save Lillecarl/9587344 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************ | |
* AnimationOnLevel * | |
* * | |
* Edit By DemonicRealms * | |
* * | |
* RealityNetGaming * | |
************************************* | |
*/ | |
class AnimationOnLevel : public PlayerScript | |
{ | |
public: | |
AnimationOnLevel() : PlayerScript("AnimationOnLevel") { } | |
void OnLevelChanged(Player* player, unit8 oldLevel) | |
{ | |
if (player->GetTeam() == HORDE) | |
player->CastSpell(player, 131318); | |
else if (player->GetTeam() == ALLIANCE) | |
player->CastSpell(player, 131317); | |
} | |
}; | |
void AddSC_AnimationOnLevel() | |
{ | |
new AnimationOnLevel; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************ | |
* Login Script * | |
* * | |
* UNTESTED * | |
* * | |
* RealityNetGaming * | |
************************************* | |
*/ | |
//Credit to SymbolixDEV for original. | |
class login_script : public PlayerScript | |
{ | |
public: | |
login_script() : PlayerScript("login_script") { } | |
void OnLogin(Player* player) | |
{ | |
handler->PSendSysMessage("|cffff0000Welcome back to RealityNetGaming!|r"); | |
me->AddAura(15366, me); //Songflower Serenade | |
me->AddAura(16609, me); // Warchief's Blessing | |
me->AddAura(43223, me); // Greater Blessing of Kings | |
me->AddAura(36880, me); // Arcane Intellect | |
me->AddAura(33081, me); // Stamina | |
me->AddAura(26035, me); // Celebrate Good Times! | |
me->AddAura(66068, me); // Thorns | |
me->AddAura(21562, me); // Power Word: Fortitude | |
player->SetPower(POWER_MANA, player->GetMaxPower(POWER_MANA)); // set max mana | |
player->RemoveAllSpellCooldown(); //reset cooldowns on login! | |
} | |
}; | |
void AddSC_login_script() | |
{ | |
new login_script(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment