Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- EmuDevs
- http://emudevs.com
- Tutorial
- */
- class npc_tutorial_playerscript : public PlayerScript
- {
- public:
- npc_tutorial_playerscript() : PlayerScript("npc_tutorial_playerscript") { }
- void OnCreatureKill(Player* killer, Creature* killed)
- {
- if (killed->IsDungeonBoss())
- {
- if (!killer->HasAura(30000))
- killer->AddAura(30000, killer);
- else
- killer->CastSpell(killer, 12000);
- }
- }
- void OnPlayerKilledByCreature(Creature* killer, Player* killed)
- {
- if (killer->IsDungeonBoss())
- killed->ResurrectPlayer(1.0f, false);
- }
- };
- void AddSC_tutorial_playerscript()
- {
- new npc_tutorial_playerscript;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement