Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NpcList = {
- 950000,
- 950001,
- 950002,
- 950003,
- 950004,
- 950005,
- };
- local TeleTable = {
- {571, 7582.549805, 4848.779785, 43.179600, 3.1654207},
- {571, 7582.549805, 4848.779785, 43.179600, 3.1654207},
- {571, 7582.549805, 4848.779785, 43.179600, 3.1654207},
- {571, 7582.549805, 4848.779785, 43.179600, 3.1654207},
- {571, 7582.549805, 4848.779785, 43.179600, 3.1654207},
- {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
- local npcid = creature:GetEntry()
- for k, entry in ipairs(NpcList) do
- if entry == npcid then
- target:Teleport(table.unpack(TeleTable[k]))
- end
- end
- end
- end
- for k, v in ipairs(NpcList) do
- RegisterCreatureEvent(v, 27, PortalTrigger)
- end
Add Comment
Please, Sign In to add comment