poderia colocar assim :
if PlayerVoc == 1 then, 5 then ,9 then ,
By pedrizito15, 01 de mai. de 2014 in Scripts
info
Group: Campones
Joined: 09/09/13
Posts: 38
Reputation: +11
Gender: Masculino

poderia colocar assim :
if PlayerVoc == 1 then, 5 then ,9 then ,
info
Group: Cavaleiro
Joined: 01/12/10
Posts: 158
Reputation: +4
Tibia Character: 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
Group: Visconde
Joined: 04/01/13
Posts: 479
Reputation: +59
Tibia Character: 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
Group: Campones
Joined: 16/10/11
Posts: 82
Reputation: +10
Tibia Character: 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
Group: Cavaleiro
Joined: 01/12/10
Posts: 158
Reputation: +4
Tibia Character: Pedro Tacador De Bolt

Ambas deram erro ;/
info
Group: Visconde
Joined: 04/01/13
Posts: 479
Reputation: +59
Tibia Character: Lord Pau Listinha

Poste os erros amigo
info
Group: Conde
Joined: 03/01/12
Posts: 884
Reputation: +233
Tibia Character: 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
Edited Maio 2 by notle2012
info
Group: Cavaleiro
Joined: 01/12/10
Posts: 158
Reputation: +4
Tibia Character: Pedro Tacador De Bolt

notle2012 deu certo amigo, muito obrigado, já te dei uma curtida
info
Group: Cavaleiro
Joined: 01/12/10
Posts: 158
Reputation: +4
Tibia Character: 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