Well I finally fixed most of it and I got rid of most of the errors. Everything except the Tyrand part works perfectly.
Code:
local PlayerA
local Tyrande
local NPCID = 7999
function X_OnFirstEnterWorld(event, pPlayer, pUnit, player)
local Tyrande = pUnit
if PlayerA == nil then
pPlayer:SetBindPoint(-11110.046875, -1797.107056, 20.674711, 0, 2563) -- Set's the char's hearthstone
pPlayer:CastSpell(12438) --Slow Fall
pPlayer:CastSpell(53658) --Shadowmourn Tabard Visual
pPlayer:MovePlayerTo(-11110.046875, -1797.107056, 20.674711, 2.663683, 12288, 1)
PlayerA = pPlayer
Tyrande:SendChatMessage(15,0,"Don't worry I got you!")
Tyrande:ChannelSpell(47855, player) -- Drain Soul
PlayerA:RemoveAura(53658) -- Removes glowy bubble
end
end
RegisterServerHook(3, "X_OnFirstEnterWorld") -- Register the on first enter world