Skip to content

Instantly share code, notes, and snippets.

@Lillecarl
Last active August 29, 2015 13:57
Show Gist options
  • Save Lillecarl/9587344 to your computer and use it in GitHub Desktop.
Save Lillecarl/9587344 to your computer and use it in GitHub Desktop.
/************************************
* 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;
}
/************************************
* 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