Code:
if(intid == 999) then
level = player:GetLevel()
if level == 19 then
if (player:IsDead() == true) then
player:ResurrectPlayer(player)
player:Teleport(530, -1854, 5460, 13)
player:SendBroadcastMessage("Successfully unstuck - Returned to the Shattrath Mall.")
else
player:Teleport(530, -1854, 5460, 13)
player:SendBroadcastMessage("Successfully unstuck - Returned to the Shattrath Mall.")
end
end
end
To start in a different location you just need to edit the coords in playercreate_info in your world database.
Code:
function Teach_OnEnterWorld(event, player)
if (player:GetPlayerClass() == "Warrior") then
player:LearnSpell(6673) -- Battle Shout 1
player:LearnSpell(5242) -- Battle Shout 2
player:LearnSpell(6192) -- Battle Shout 3
etc etc etc
end
end
RegisterServerHook(3, "Teach_OnEnterWorld")