stoneharry

Untitled

Aug 7th, 2013
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. function DAL.VAR.CheckDistanceA(pUnit)
  2.     local id = pUnit:GetInstanceID() or 1
  3.     DAL[id] = DAL[id] or {VAR={}}
  4.     if DAL[id].VAR.Sinclari and pUnit:GetDistanceYards(DAL[id].VAR.Sinclari) > 50 then
  5.         DAL[id].VAR.Sinclari:SendChatMessage(14,0,"Do not think to take my guardian away from me!")
  6.         for _,v in pairs(pUnit:GetInRangeUnits()) do
  7.             if v:IsAlive() then
  8.                 pUnit:CastSpellOnTarget(11, v)
  9.             end
  10.         end
  11.     end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment