poderia colocar assim :
if PlayerVoc == 1 then, 5 then ,9 then ,
Por pedrizito15, 01 de mai. de 2014 em Scripts
info
Grupo: Campones
Registrado: 09/09/13
Posts: 38
Reputação: +11
Gênero: Masculino

poderia colocar assim :
if PlayerVoc == 1 then, 5 then ,9 then ,
info
Grupo: Cavaleiro
Registrado: 01/12/10
Posts: 158
Reputação: +4
Char no Tibia: Pedro Tacador De Bolt

[Error - LuaInterface::loadFile] data/actions/scripts/other/poi1.lua:4: unexpected symbol near ',' [Warning - Event::loadScript] Cannot load script (data/actions/scripts/other/poi1.lua) data/actions/scripts/other/poi1.lua:4: unexpected symbol near ','
Eu tentei de três outros jeitos :
if PlayerVoc == 1 then, 5 then ,9 then if PlayerVoc == 1 then, 5 then, 9 then , if PlayerVoc == 1 then, 5 then, 9 then
Mas ocorreu erros também.
info
Grupo: Visconde
Registrado: 04/01/13
Posts: 479
Reputação: +59
Char no Tibia: Lord Pau Listinha

Tenta assim amigo sou novato ainda mais tento ajudar
function onUse(cid, item, frompos, item2, topos)
PlayerVoc = getPlayerVocation(cid)
if PlayerVoc == 1 or if PlayerVoc == 5 or if PlayerVoc == 9 then
doTeleportThing(cid,{x=51, y=28, z=8})
else
doPlayerSendCancel(cid,"Only Master Sorcerers may open this door.")
return 1
end
end
info
Grupo: Campones
Registrado: 16/10/11
Posts: 82
Reputação: +10
Char no Tibia: No Have

---VocDoor-by Sky Hunter---
function onUse(cid, item, frompos, item2, topos)
PlayerVoc = getPlayerVocation(cid)
if PlayerVoc == 1,5,9 then
doTeleportThing(cid,{x=51, y=28, z=8})
else
doPlayerSendCancel(cid,"Only Master Sorcerers may open this door.")
return 1
end
end
info
Grupo: Cavaleiro
Registrado: 01/12/10
Posts: 158
Reputação: +4
Char no Tibia: Pedro Tacador De Bolt

Ambas deram erro ;/
info
Grupo: Visconde
Registrado: 04/01/13
Posts: 479
Reputação: +59
Char no Tibia: Lord Pau Listinha

Poste os erros amigo
info
Grupo: Conde
Registrado: 03/01/12
Posts: 884
Reputação: +233
Char no Tibia: Segredo

--config by uotl£
local playervoc = {1,5,9} -- vocations
--config by uotl£
function onUse(cid, item, frompos, item2, topos)
if isInArray(playervoc, getPlayerVocation(cid)) then
doTeleportThing(cid,{x=51, y=28, z=8})
else
doPlayerSendCancel(cid,"Only Master Sorcerers may open this door.")
return true
end
end
Editado Maio 2 por notle2012
info
Grupo: Cavaleiro
Registrado: 01/12/10
Posts: 158
Reputação: +4
Char no Tibia: Pedro Tacador De Bolt

notle2012 deu certo amigo, muito obrigado, já te dei uma curtida
info
Grupo: Cavaleiro
Registrado: 01/12/10
Posts: 158
Reputação: +4
Char no Tibia: Pedro Tacador De Bolt
Galera alguém pode corrigir esse Script aqui :
---VocDoor-by Sky Hunter--- function onUse(cid, item, frompos, item2, topos) PlayerVoc = getPlayerVocation(cid) if PlayerVoc == 5 then doTeleportThing(cid,{x=51, y=28, z=8}) else doPlayerSendCancel(cid,"Only Master Sorcerers may open this door.") return 1 end endO problema é o seguinte ele só deixa Masters Sorcerers passar pela porta, eu queria que sorcerer, master sorcerer e a second promotion entrasse pela porta...
ID das vocations :
Sorcerer = 1
Master Sorcerer = 5
Under Sorcerer = 9
Uso o Styller Yurots versão premium