function onUse(cid, item, frompos, item2, topos)
local config = {
pz = "yes", -- players precisam estar em protection zone para usar? ("yes" or "no").
battle = "yes", -- players deve estar sem battle ("yes" or "no")
pos = {x=343, y=161, z=7}
}
if isVip(cid) == FALSE then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"voce nao e vip!.")
return TRUE
end
if(config.pz == "yes") and (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"você precisa estar em protection zone pra poder teleportar.")
return TRUE
end
if(config.battle == "yes") and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battler pra poder teleportar.")
return TRUE
end
if item.itemid == 8979 then
doPlayerSendTextMessage(cid,22,"Você Foi Teleportado Para O Templo!")
removeOnUse = "no" -- remover quando usar ("yes" or "no")
doTeleportThing(cid,config.pos)
doSendMagicEffect(getCreaturePosition(cid), 10)
doSendMagicEffect(frompos,6)
end
return 1
end
4
777
info
Grupo: Barão
Registrado: 05/08/10
Posts: 218
Reputação: +86
Gênero: Masculino

23 de dezembro de 2012 às 17:02
info
Grupo: Artesão
Registrado: 20/11/12
Posts: 142
Reputação: +19
Char no Tibia: Deleted

23 de dezembro de 2012 às 17:29
Funfo Direitin Vlwzão
Reputado
Pedido Resolvido Podem Mover !
info
Grupo: Herói
Registrado: 23/12/08
Posts: 2.4k
Reputação: +359
Gênero: Masculino
Char no Tibia: Gordo Warlike

23 de dezembro de 2012 às 17:55
movido!



info
Grupo: Artesão
Registrado: 20/11/12
Posts: 142
Reputação: +19
Char no Tibia: Deleted
Gostaria De Pedir Para Adicionarem A Este Script Para Somente Vips Poderem Usar
Obs: Uso Sistema De Vip By Account.
function onUse(cid, item, frompos, item2, topos)
local config = {
pz = "yes", -- players precisam estar em protection zone para usar? ("yes" or "no").
battle = "yes", -- players deve estar sem battle ("yes" or "no")
pos = {x=343, y=161, z=7}
}
if(config.pz == "yes") and (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"você precisa estar em protection zone pra poder teleportar.")
return TRUE
end
if(config.battle == "yes") and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battler pra poder teleportar.")
return TRUE
end
if item.itemid == 8979 then
doPlayerSendTextMessage(cid,22,"Você Foi Teleportado Para O Templo!")
removeOnUse = "no" -- remover quando usar ("yes" or "no")
doTeleportThing(cid,config.pos)
doSendMagicEffect(getCreaturePosition(cid), 10)
doSendMagicEffect(frompos,6)
end
return 1
end