Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NpcList = {
- -- [entry] = {map, x, y, z}
- [950000] = {571, 7582.549805, 4848.779785, 43.179600, 3.1654207},
- [950001] = {571, 7582.549805, 4848.779785, 43.179600, 3.1654207},
- [950002] = {571, 7582.549805, 4848.779785, 43.179600, 3.1654207},
- [950003] = {571, 7582.549805, 4848.779785, 43.179600, 3.1654207},
- [950004] = {571, 7582.549805, 4848.779785, 43.179600, 3.1654207},
- [950005] = {571, 7582.549805, 4848.779785, 43.179600, 3.1654207},
- }
- local function PortalTrigger(event, creature, target)
- if (creature:GetDistance(target) <= 3) then -- 15 is the [float] radius, change it to whatever you feel comfortable with
- target:Teleport(table.unpack(NpcList[creature:GetEntry()]))
- end
- end
- for entry, coordinates in pairs(NpcList) do
- RegisterCreatureEvent(entry, 27, PortalTrigger)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement