Advertisement
Rochet2

Untitled

Jul 24th, 2015
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.39 KB | None | 0 0
  1. local MoveTo = {
  2. --  [DBguid] = {id, x, y, z}
  3.     [372931] = {0, 192.6000, 18.2202, 114.9649},
  4.     [5283]   = {0, 194.522, 18.3239, 114.9649},
  5.     [5301]   = {0, 192.595, 27.5781, 114.9649},
  6.     [375479] = {0, 194.1629, 25.2681, 114.9649},
  7.     [5297]   = {0, 194.1419, 27.5631, 114.9649},
  8.     [5291]   = {0, 192.686, 20.6441, 114.9649},
  9.     [375481] = {0, 192.552, 23.2453, 114.9649},
  10.     [5295]   = {0, 192.6219, 25.3302, 114.9649},
  11.     [5289]   = {0, 194.225, 23.1779, 114.9649},
  12.     [5287]   = {0, 194.339, 20.6164, 114.9649},
  13.     [5281]   = {0, 208.2749, 19.4744, 114.96},
  14.     [5279]   = {0, 208.253, 21.4491, 114.9649},
  15.     [5273]   = {0, 210.1419, 19.4422, 114.9649},
  16.     [372929] = {0, 210.2149, 21.4307, 114.9649},
  17.     [5271]   = {0, 210.158, 23.7726, 114.9649},
  18.     [5277]   = {0, 208.141, 25.663, 114.9649},
  19.     [5263]   = {0, 208.1349, 27.8591, 114.9649},
  20.     [5265]   = {0, 209.8269, 27.8757, 114.9649},
  21.     [5267]   = {0, 208.1569, 23.7915, 114.9649},
  22.     [5269]   = {0, 210.131592, 25.710165, 114.964844},
  23. }
  24.  
  25. local function TimedMove(_,_,_,guard)
  26.     guard:MoveTo(table.unpack(MoveTo[guard:GetDBTableGUIDLow()]))
  27. end
  28.  
  29. function OnWhatever(creature)
  30.     for k, v in ipairs(creature:GetCreaturesInRange()) do
  31.         if MoveTo[v:GetDBTableGUIDLow()] then
  32.             v:RegisterEvent(TimedMove, math.random(1000,2000), 1) -- moving starts within 1~2 seconds
  33.         end
  34.     end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement