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