local pos = {x=1051, y=1049, z=7} ------ Posiçao do Templo
local LimiteSto = 15569 ------ Storage Nao Mexa
local Quantia = 10 ------ Quantas vezes Pode Usar o Comando
function onSay(cid, words, param)
local tempo = 1
if getPlayerStorageValue(cid, 10333) > os.time() then
return doPlayerSendTextMessage(cid,19, "[bUG-TELEPORT] Aguarde "..getPlayerStorageValue(cid, 10333) - os.time().." Para usar o Comando Novamente!.")
end
if getPlayerStorageValue(cid, LimiteSto) >= Quantia then
doPlayerSendTextMessage((cid), 27, "[LIMITE] Voce ja Chegou no Limite ["..(getPlayerStorageValue((cid),LimiteSto) + 1).."/"..getPlayerStorageValue(cid,Quantia).."] Caso Esteja Preso Use [HELP/REPORT].")
return true
end
if getPlayerStorageValue(cid, 98797) >= 1 or getPlayerStorageValue(cid, 98796) >= 1 or getPlayerStorageValue(cid, 132132) >= 1 or getPlayerStorageValue(cid, 130130) >= 1 or getPlayerStorageValue(cid, 6598755) >= 1 or getPlayerStorageValue(cid, 6598754) >= 1 then
doPlayerSendTextMessage(cid, 22, "[bUG-TELEPORT] Nao Pode Usar o Comando Durante o [Duel 1x1/PVP Team/BattleField/Torneio/Saffari].")
doPlayerSendTextMessage(cid, 27, "[bUG-TELEPORT] Nao Pode Usar o Comando Durante o [Duel 1x1/PVP Team/BattleField/Torneio/Saffari].")
else
setPlayerStorageValue(cid, 10333, os.time() + tempo * 1200) ----- 600
setPlayerStorageValue(cid,LimiteSto,getPlayerStorageValue(cid,LimiteSto)+1)
doTeleportThing(cid,pos)
doSendMagicEffect(getPlayerPosition(cid),29)
doSendAnimatedText(getCreaturePosition(cid),"TELEPORT",math.random(1,255))
doPlayerSendTextMessage(cid,27,"[TELEPORT-BUG LIMITE] AVISO!! Quantas Vezes eu Posso Usar o Comando: ["..(getPlayerStorageValue(cid,LimiteSto) + 1).."/"..getPlayerStorageValue(cid,Quantia).."]")
return true
end
end