Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local objectid = objectentryhere
- function PortalTrigger(event, plr, intid)
- local chance = math.random(1,10)
- if(chance == 1) then
- plr:Teleport(map, x,y, z, o)
- plr:SetPvP(true)
- elseif(chance == 2) then
- plr:Teleport(map, x,y, z, o)
- plr:SetPvP(true)
- elseif(chance == 3) then
- plr:Teleport(map, x,y, z, o)
- plr:SetPvP(true)
- elseif(chance == 4) then
- plr:Teleport(map, x,y, z, o)
- plr:SetPvP(true)
- elseif(chance == 5) then
- plr:Teleport(map, x,y, z, o)
- plr:SetPvP(true)
- elseif(chance == 6) then
- plr:Teleport(map, x,y, z, o)
- plr:SetPvP(true)
- elseif(chance == 7) then
- plr:Teleport(map, x,y, z, o)
- plr:SetPvP(true)
- elseif(chance == 8) then
- plr:Teleport(map, x,y, z, o)
- plr:SetPvP(true)
- elseif(chance == 9) then
- plr:Teleport(map, x,y, z, o)
- plr:SetPvP(true)
- elseif(chance == 10) then
- plr:Teleport(map, x,y, z, o)
- plr:SetPvP(true)
- end
- end
- RegisterGameObjectGossipEvent(objectid, 1, PortalTrigger)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement