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
820
info
Group: Barão
Joined: 05/08/10
Posts: 218
Reputation: +86
Gender: Masculino

23 de dezembro de 2012 às 17:02
info
Group: Artesão
Joined: 20/11/12
Posts: 142
Reputation: +19
Tibia Character: Deleted

23 de dezembro de 2012 às 17:29
Funfo Direitin Vlwzão
Reputado
Pedido Resolvido Podem Mover !
info
Group: Herói
Joined: 23/12/08
Posts: 2.4k
Reputation: +359
Gender: Masculino
Tibia Character: Gordo Warlike

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



info
Group: Artesão
Joined: 20/11/12
Posts: 142
Reputation: +19
Tibia Character: 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