function onUse(cid, item, frompos, item2, topos)
local config = {
tele = {x=98, y=43, z=10},
vocations = {1,2,5,6},
level = 30
}
if item.uid == 2133 then
if not isInArray(config.vocations, getPlayerVocation(cid)) then
return doPlayerSendCancel(cid, "Somente Druids e Sorcerers entram aqui.)
elseif getPlayerLevel(cid) < config.level then
return doPlayerSendCancel(cid, "Você precisa ter level ".. config.level .. " ou mais para pode usar o Shrines.")
end
doTeleportThing(cid,config.tele)
doPlayerSendTextMessage(cid,22,"Bem-vindo ao Shrine, onde voce pode encantar suas armas.")
end
return TRUE
end
- Forums
- xTibia - Notícias e Suporte
- Soluções
- Archived
- [Pedido] Shrinetele.lua - Tp Para A Salinha De Encantar Smeralds
[Pedido] Shrinetele.lua - Tp Para A Salinha De Encantar Smeralds
By buzurck, 20 de nov. de 2010 in Archived
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

info
Group: Campones
Joined: 09/05/09
Posts: 16
Reputation: +2
Tibia Character: Jon Keltera

ae Manu
é isso msm que eu quero, só que deu esse error depois do reload:
[22/11/2010 13:13:42] [Error - LuaScriptInterface::loadFile] data/actions/scripts/shrinetele.lua:11: unfinished string near '"Somente Druids e Sorcerers entram aqui.) ' [22/11/2010 13:13:42] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/shrinetele.lua) [22/11/2010 13:13:42] data/actions/scripts/shrinetele.lua:11: unfinished string near '"Somente Druids e Sorcerers entram aqui.) '
info
Group: Visconde
Joined: 03/02/09
Posts: 361
Reputation: +200
Tibia Character: Fearless Man

Tente assim:
function onUse(cid, item, frompos, item2, topos)
local config = {
tele = {x=98, y=43, z=10},
vocations = {1,2,5,6},
level = 30
}
if item.uid == 2133 then
if not isInArray(config.vocations, getPlayerVocation(cid)) then
return doPlayerSendCancel(cid, "Somente Druids e Sorcerers entram aqui.")
elseif getPlayerLevel(cid) < config.level then
return doPlayerSendCancel(cid, "Você precisa ter level ".. config.level .. " ou mais para pode usar o Shrines.")
end
doTeleportThing(cid,config.tele)
doPlayerSendTextMessage(cid,22,"Bem-vindo ao Shrine, onde voce pode encantar suas armas.")
end
return TRUE
end
O script é do vodkart. Só arrumei a string.
flw
info
Group: Campones
Joined: 09/05/09
Posts: 16
Reputation: +2
Tibia Character: Jon Keltera

isso é a mesma coisa que a do vodkart
Tem nada diferente ![]()
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

é porque no meu eu tinha esquecido de fechar a variavel que envia a mensagem --'
o do apocarai está funfando
info
Group: Campones
Joined: 09/05/09
Posts: 16
Reputation: +2
Tibia Character: Jon Keltera

do apocarai tbm não funfa
info
Group: Conde
Joined: 09/09/09
Posts: 528
Reputation: +424
Tibia Character: Emekalo Makalo

function onUse(cid, item, frompos, item2, topos)
if isInArray({1,2,5,6}, getPlayerVocation(cid)) then
if getPlayerLevel(cid) >= 30 then
doPlayerSendTextMessage(cid, 22, "Bem-vindo ao Shrine, onde voce pode encantar suas armas.")
doTeleportThing(cid, {x=98, y=43, z=10})
else
doPlayerSendCancel(cid, "Apenas players level 30 ou mais podem usar o shrine.")
end
else
doPlayerSendCancel(cid, "Apenas druids e sorcerers podem usar o shrine.")
end
return TRUE
end




info
Group: Campones
Joined: 09/05/09
Posts: 16
Reputation: +2
Tibia Character: Jon Keltera
O meu script que leva um mage para a sala de encantar pedras não está funcionando
Se alguem souber arrumar ajuda aí, eu vou postar aki pra vcs:
function onUse(cid, item, frompos, item2, topos) tele = {x=98, y=43, z=10} if item.uid ==2133 then vocation = getPlayerVocation(cid) if vocation == 1 and getPlayerLevel(cid) > 30 then doTeleportThing(cid,tele) doPlayerSendTextMessage(cid,22,"Bem-vindo ao Shrine, onde voce pode encantar suas armas.") elseif vocation == 2 and getPlayerLevel(cid) > 30 then doTeleportThing(cid,tele) doPlayerSendTextMessage(cid,22,"Bem-vindo ao Shrine, onde voce pode encantar suas armas.") elseif vocation == 5 and getPlayerLevel(cid) > 30 then doTeleportThing(cid,tele) doPlayerSendTextMessage(cid,22,"Bem-vindo ao Shrine,onde voce pode encantar suas armas.") elseif vocation == 6 and getPlayerLevel(cid) > 30 then doTeleportThing(cid,tele) doPlayerSendTextMessage(cid,22,"Bem-vindo ao Shrine, onde voce pode encantar suas armas.") else doPlayerSendTextMessage(cid,22,"Somente Druids e Sorcerers de level 30 ou mais podem usar os Shrines.") end return 0 end return 1 endTambém gostaria de um script de quando clicar no bau com tal uniqueid ser teletransportado pra tal position (com storage, msgtext e com SendCancelmsg, mas o mais importante é o primeiro pedido
vlw ^^