Script:
Error:
Code:
--
function onUse(cid, item, frompos, item2, topos)
tele = {x=42, y=104, z=7}
if item.uid ==2133 then
vocation = getPlayerVocation(cid)
if vocation == 3 and getPlayerLevel(cid) > 30 then
doTeleportThing(cid,tele)
doPlayerSendTextMessage(cid, 22, "")
elseif vocation == 4 and getPlayerLevel(cid) > 30 then
doTeleportThing(cid,tele)
doPlayerSendTextMessage(cid, 22, "")
elseif vocation == 7 and getPlayerLevel(cid) > 30 then
doTeleportThing(cid,tele)
doPlayerSendTextMessage(cid, 22, "")
elseif vocation == 8 and getPlayerLevel(cid) > 30 then
doTeleportThing(cid,tele)
doPlayerSendTextMessage(cid, 22, "")
else
doPlayerSendCancel(cid,"Voce precisa ser Knight level 30 ou Paladin level 30 para passar.")
end
return TRUE
end
Error:
Last edited by a moderator: