Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.70 KB | None | 0 0
  1. local function OnRepop(event, player)
  2.     local playerZone = player:GetAreaId()
  3.     local isHorde = player:IsHorde()
  4.  
  5.     if (playerZone == 28) then -- Western Lordaeron
  6.         if (isHorde) then
  7.             player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
  8.         else
  9.             player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
  10.         end
  11.     elseif (playerZone == 2297) then -- Darrowmere Lake
  12.         if (isHorde) then
  13.             player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
  14.         else
  15.             player:Teleport(0, 1232.269531, -2406.760742, 60.160484, 5.363911) -- Emberstone Graveyard
  16.         end
  17.     elseif (playerZone == 190) then -- Hearthglen
  18.         player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  19.     elseif (playerZone == 192) then -- Northridge Lumber Mill
  20.         player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  21.     elseif (playerZone == 193) then -- Andorhal
  22.         if (isHorde) then
  23.             player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard Graveyard
  24.         else
  25.             player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
  26.         end
  27.     elseif (playerZone == 196) then -- Uther's Tomb
  28.         player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
  29.     elseif (playerZone == 197) then -- Sorrow Hill
  30.         player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
  31.     elseif (playerZone == 2057) then -- Emberstone Keep
  32.         if (isHorde) then
  33.             player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
  34.         else
  35.             player:Teleport(0, 1232.269531, -2406.760742, 60.160484, 5.363911) -- Emberstone Graveyard
  36.         end
  37.     elseif (playerZone == 2298) then -- Emberstone
  38.         if (isHorde) then
  39.             player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
  40.         else
  41.             player:Teleport(0, 1232.269531, -2406.760742, 60.160484, 5.363911) -- Emberstone Graveyard
  42.         end
  43.     elseif (playerZone == 5000) then -- Farsil Farm
  44.         if (isHorde) then
  45.             player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  46.         else
  47.             player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
  48.         end
  49.     elseif (playerZone == 5001) then -- Halsingar
  50.         if (isHorde) then
  51.             player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  52.         else
  53.             player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
  54.         end
  55.     elseif (playerZone == 5002) then -- Pridevale Farm
  56.         if(isHorde) then
  57.             player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  58.         else
  59.             player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
  60.         end
  61.     elseif (playerZone == 5003) then -- Rootstead Farm
  62.         if(isHorde) then
  63.             player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
  64.         else
  65.             player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
  66.         end
  67.     elseif (playerZone == 5004) then -- Salmonson Retreat
  68.         player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  69.     elseif (playerZone == 5005) then -- Grand War Memorial
  70.         player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  71.     elseif (playerZone == 5006) then -- Pathway of Heroes
  72.         player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  73.     elseif (playerZone == 5007) then -- Midway Gate
  74.         if (isHorde) then
  75.             player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  76.         else
  77.             player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
  78.         end
  79.     elseif (playerZone == 5008) then -- Farpoint Mine
  80.         player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  81.     elseif (playerZone == 5009) then -- Thondroril Causeway
  82.         player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  83.     elseif (playerZone == 5010) then -- Farrington Farm
  84.         if(isHorde) then
  85.             player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  86.         else -- Farrington Farm
  87.             player:Teleport(0, 1232.269531, -2406.760742, 60.160484, 5.363911) -- Emberstone Graveyard
  88.         end
  89.     elseif (playerZone == 5011) then -- Emberstone Mine
  90.         if (isHorde) then
  91.             player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
  92.         else
  93.             player:Teleport(0, 1232.269531, -2406.760742, 60.160484, 5.363911) -- Emberstone Graveyard
  94.         end
  95.     elseif (playerZone == 5012) then -- Daromur Settlement
  96.         if (isHorde) then
  97.             player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  98.         else
  99.             player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
  100.         end
  101.     elseif (playerZone == 5013) then -- Lightward Estate
  102.         if (isHorde) then
  103.             player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
  104.         else
  105.             player:Teleport(0, 1330.091675, -1391.780273, 47.885956, 5.403795) -- Andorhal Graveyard
  106.         end
  107.     elseif (playerZone == 5014) then -- Pramus Point
  108.         if (isHorde) then
  109.             player:Teleport(0, 2379.565674, -1980.208862, 127.763344, 5.049757) -- Grand War Memorial Graveyard
  110.         else
  111.             player:Teleport(0, 1232.269531, -2406.760742, 60.160484, 5.363911) -- Emberstone Graveyard
  112.         end
  113.     elseif (playerZone == 5015) then -- Anchors Hilt Camp
  114.         player:Teleport(0, 1212.85, -1745.89, 62.72, 5.298378) -- Sorrow Hill Graveyard
  115.     end
  116. end
  117.  
  118. RegisterPlayerEvent(35, OnRepop)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement