Advertisement
Rochet2

Untitled

Nov 21st, 2012
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local function FallingCustomZone(unit, event)
  2.     for k, v in ipairs(unit:GetInRangePlayers()) do
  3.         if (v and v:IsInWorld() and unit:GetDistance(v) < 6) then
  4.             v:CastSpell(64446)
  5.             v:CastSpell(5)
  6.             v:SendBroadcastMessage("That water is awfully cold.")
  7.             local race=v:GetPlayerRace()
  8.             if race==2 or race==5 or race==6 or race==8 or race==10 then  -- Alliance
  9.                 v:Teleport(1, 16558.873047, 15584.223633, 35.402008)
  10.             else          -- below = Horde
  11.                 v:Teleport(1, 15892.689453, 15629.592773, 37.526806)
  12.             end
  13.         end
  14.     end
  15. end
  16.  
  17. local function trigger(unit, event)
  18.     unit:RegisterEvent(FallingCustomZone, 2000, 0)
  19. end
  20.  
  21. RegisterUnitEvent(271570, 18, trigger)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement