Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local EntryId = xxxx
- local range = xxxx --- how close(in yards) does the player need to stand to be teleported
- local mapid = xxxx --- MAP ID
- local hx = xxxx --- HORDE MALL X
- local hy = xxxx --- HORDE MALL Y
- local hz = xxxx --- HORDE MALL Z
- local ax = xxxx --- ALLIANCE MALL X
- local ay = xxxx --- ALLIANCE MALL Y
- local az = xxxx --- ALLIANCE MALL Z
- local cosmeticid = xxxx --- spell ID for the cosmetic spell to be cast on the player
- ---------------------------------------------------------------------------------------------
- function EPort_Tick(event, go, diff)
- local players = go:GetPlayersInRange(range)
- for k,v in pairs(players) do
- if v ~= nil then
- v:CastSpell(v, cosmeticid)
- if v:GetFaction() == 0 then
- v:teleport(mapid, ax, ay, az, 1)
- else
- v:teleport(mapid, hx, hy, hz, 1)
- end
- end
- end
- end
- RegisterGameObjectEvent(EntryId, 1, EPort_Tick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement