Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function OnRepop(event, player)
- local playerZone = player:GetAreaId()
- local isHorde = player:IsHorde()
- if (playerZone == 28) then -- Western Lordaeron
- if (isHorde) then
- player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
- else
- player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
- end
- elseif (playerZone == 2297) then -- Darrowmere Lake
- if (isHorde) then
- player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
- else
- player:Teleport(0, 1232.269531, -2406.760742, 60.160484, 5.363911) -- Emberstone Graveyard
- end
- elseif (playerZone == 190) then -- Hearthglen
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- elseif (playerZone == 192) then -- Northridge Lumber Mill
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- elseif (playerZone == 193) then -- Andorhal
- if (isHorde) then
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard Graveyard
- else
- player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
- end
- elseif (playerZone == 196) then -- Uther's Tomb
- player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
- elseif (playerZone == 197) then -- Sorrow Hill
- player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
- elseif (playerZone == 2057) then -- Emberstone Keep
- if (isHorde) then
- player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
- else
- player:Teleport(0, 1232.269531, -2406.760742, 60.160484, 5.363911) -- Emberstone Graveyard
- end
- elseif (playerZone == 2298) then -- Emberstone
- if (isHorde) then
- player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
- else
- player:Teleport(0, 1232.269531, -2406.760742, 60.160484, 5.363911) -- Emberstone Graveyard
- end
- elseif (playerZone == 5000) then -- Farsil Farm
- if (isHorde) then
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- else
- player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
- end
- elseif (playerZone == 5001) then -- Halsingar
- if (isHorde) then
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- else
- player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
- end
- elseif (playerZone == 5002) then -- Pridevale Farm
- if(isHorde) then
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- else
- player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
- end
- elseif (playerZone == 5003) then -- Rootstead Farm
- if(isHorde) then
- player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
- else
- player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
- end
- elseif (playerZone == 5004) then -- Salmonson Retreat
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- elseif (playerZone == 5005) then -- Grand War Memorial
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- elseif (playerZone == 5006) then -- Pathway of Heroes
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- elseif (playerZone == 5007) then -- Midway Gate
- if (isHorde) then
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- else
- player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
- end
- elseif (playerZone == 5008) then -- Farpoint Mine
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- elseif (playerZone == 5009) then -- Thondroril Causeway
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- elseif (playerZone == 5010) then -- Farrington Farm
- if(isHorde) then
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- else -- Farrington Farm
- player:Teleport(0, 1232.269531, -2406.760742, 60.160484, 5.363911) -- Emberstone Graveyard
- end
- elseif (playerZone == 5011) then -- Emberstone Mine
- if (isHorde) then
- player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
- else
- player:Teleport(0, 1232.269531, -2406.760742, 60.160484, 5.363911) -- Emberstone Graveyard
- end
- elseif (playerZone == 5012) then -- Daromur Settlement
- if (isHorde) then
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- else
- player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
- end
- elseif (playerZone == 5013) then -- Lightward Estate
- if (isHorde) then
- player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
- else
- player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
- end
- elseif (playerZone == 5014) then -- Pramus Point
- if (isHorde) then
- player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
- else
- player:Teleport(0, 1232.269531, -2406.760742, 60.160484, 5.363911) -- Emberstone Graveyard
- end
- elseif (playerZone == 5015) then -- Anchors Hilt Camp
- player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
- end
- end
- RegisterPlayerEvent(35, OnRepop)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement