Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MoveTo = {
- -- [DBguid] = {id, x, y, z}
- [372931] = {0, 192.6000, 18.2202, 114.9649},
- [5283] = {0, 194.522, 18.3239, 114.9649},
- [5301] = {0, 192.595, 27.5781, 114.9649},
- [375479] = {0, 194.1629, 25.2681, 114.9649},
- [5297] = {0, 194.1419, 27.5631, 114.9649},
- [5291] = {0, 192.686, 20.6441, 114.9649},
- [375481] = {0, 192.552, 23.2453, 114.9649},
- [5295] = {0, 192.6219, 25.3302, 114.9649},
- [5289] = {0, 194.225, 23.1779, 114.9649},
- [5287] = {0, 194.339, 20.6164, 114.9649},
- [5281] = {0, 208.2749, 19.4744, 114.96},
- [5279] = {0, 208.253, 21.4491, 114.9649},
- [5273] = {0, 210.1419, 19.4422, 114.9649},
- [372929] = {0, 210.2149, 21.4307, 114.9649},
- [5271] = {0, 210.158, 23.7726, 114.9649},
- [5277] = {0, 208.141, 25.663, 114.9649},
- [5263] = {0, 208.1349, 27.8591, 114.9649},
- [5265] = {0, 209.8269, 27.8757, 114.9649},
- [5267] = {0, 208.1569, 23.7915, 114.9649},
- [5269] = {0, 210.131592, 25.710165, 114.964844},
- }
- local function TimedMove(_,_,_,guard)
- guard:MoveTo(table.unpack(MoveTo[guard:GetDBTableGUIDLow()]))
- end
- function OnWhatever(creature)
- for k, v in ipairs(creature:GetCreaturesInRange()) do
- if MoveTo[v:GetDBTableGUIDLow()] then
- v:RegisterEvent(TimedMove, math.random(1000,2000), 1) -- moving starts within 1~2 seconds
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement