global testcreature = function(attacker) { this.SendChatMessage("You shall not learn the forgotten spells of mine!"); }; global creatureteach = function(attacker) { unit.CastSpellOnTarget(32996, attacker); }; // Registering Scripts .RegisterUnitEvent(525, 1, testcreature); .RegisterUnitEvent(525, 1, creatureteach);