--Made by Evil Hero--
function onStepIn(cid, item, frompos, item2, topos)
local premium = getPlayerPremiumDays(cid)
local vocation = getPlayerVocation(cid)
local level = getPlayerLevel(cid)
local needlevel = 50-- the level which you need
local ice = {x=xxx, y=yyy, z=zzz}-- set your coordinates
local fire = {x=xxx, y=yyy, z=zzz}-- set your coordinates
local earth = {x=xxx, y=yyy, z=zzz}-- set your coordinates
local energy = {x=xxx, y=yyy, z=zzz}-- set your coordinates
local exit = {x=xxx, y=yyy, z=zzz}-- if the Player don't have pacc or the right lvl/voc then he will be teleported there
local lvldruid = "Only Premium Druids of level 50 or higher are able to enter this portal"
local lvlsorc = "Only Premium Sorcerer of level 50 or higher are able to enter this portal"
local pacc = "You need to have Premium Account to enter this portal."
if item.actionid == 5000 then
if vocation == 2 or vocation == 6 then
if premium >= 1 then
if level >= needlevel then
doTeleportThing(cid, ice)
doSendMagicEffect(ice,10)
else
doPlayerSay(cid,lvldruid, 16)
doTeleportThing(cid, exit)
end
else
doPlayerSay(cid,pacc, 16)
doTeleportThing(cid, exit)
end
else
doPlayerSay(cid,lvldruid, 16)
doTeleportThing(cid, exit)
end
elseif item.actionid == 5001 then
if vocation == 1 or vocation == 5 then
if premium >= 1 then
if level >= needlevel then
doTeleportThing(cid, fire)
doSendMagicEffect(fire,10)
else
doPlayerSay(cid,lvlsorc, 16)
doTeleportThing(cid, exit)
end
else
doPlayerSay(cid,pacc, 16)
doTeleportThing(cid, exit)
end
else
doPlayerSay(cid,lvlsorc, 16)
doTeleportThing(cid, exit)
end
elseif item.actionid == 5002 then
if vocation == 2 or vocation == 6 then
if premium >= 1 then
if level >= needlevel then
doTeleportThing(cid, earth)
doSendMagicEffect(earth,10)
else
doPlayerSay(cid,lvldruid, 16)
doTeleportThing(cid, exit)
end
else
doPlayerSay(cid,pacc, 16)
doTeleportThing(cid, exit)
end
else
doPlayerSay(cid,lvldruid, 16)
doTeleportThing(cid, exit)
end
elseif item.actionid == 5003 then
if vocation == 1 or vocation == 5 then
if premium >= 1 then
if level >= needlevel then
doTeleportThing(cid, energy)
doSendMagicEffect(energy,10)
else
doPlayerSay(cid,lvlsorc, 16)
doTeleportThing(cid, exit)
end
else
doPlayerSay(cid,pacc, 16)
doTeleportThing(cid, exit)
end
else
doPlayerSay(cid,lvlsorc, 16)
doTeleportThing(cid, exit)
end
end
end