vc usa site? se sim manda seu shopsystem!
info
Grupo: Artesão
Registrado: 04/09/13
Posts: 117
Reputação: +15

info
Grupo: Visconde
Registrado: 21/08/11
Posts: 470
Reputação: +5
Char no Tibia: ...

function onStepIn(cid, item, position, fromPosition) local storage = 5008 if getPlayerStorageValue(cid, storage) <= 0 or not isPremium(cid) then doPlayerSendTextMessage(cid,16, "Você não tem permissão.") doTeleportThing(cid, fromPosition, true) return true end return true end
info
Grupo: Herói
Registrado: 14/12/10
Posts: 3.6k
Reputação: +846
Gênero: Masculino

#KennyXD, está foi a que o Vodkart postou, e ele disse que não sanou a sua dúvida rs.
#Tente desta forma, eu mudei a storage para 10329, utilize ela no outro local que era 666.
function onSay(cid)
local storage, days, price = 10329, 3, 3000000
if getPlayerStorageValue(cid, storage) > os.time() then
doPlayerSendTextMessage(cid, 27,"Você ainda tem storage até "..os.date("%d %B %Y %X ", getPlayerStorageValue(cid, storage))..".")
return true
end
if getPlayerMoney(cid) < price then
doPlayerSendTextMessage(cid, 27, "Você precisa de "..price.." gps para comprar "..days.." dias de storage.")
return true
end
setPlayerStorageValue(cid, storage, os.time() + days * 86400)
doPlayerSendTextMessage(cid, 27,"Você comprou "..days.." dias de vip.")
return true
end
Editado Setembro 21 por Roksas
info
Grupo: Visconde
Registrado: 21/08/11
Posts: 470
Reputação: +5
Char no Tibia: ...

hum, postei denovo porque eu to usando esse script do vodkart como tile storagem, ele so deixa passar se o player tiver storage + não deixa passar se tiver premium aki funciono ai se ele quiser testar porque antes ele queria que passa-se quem tive-se estoragem e premium + agora ele falo que pudia ser so quem tive-se storage.
@Edit se quiser um tile que possa premium ta ae
function onStepIn(cid, item, position, fromPosition)
if not isPlayer(cid) then return end
local tileConfig = {
kickPos = fromPosition,
kickEffect = CONST_ME_POFF,
kickMsg = "Você não é VIP.",
}
if item.actionid == 13500 then
if isPremium(cid) then
else
doTeleportThing(cid, fromPosition)
doPlayerSendTextMessage(cid, 16, tileConfig.kickMsg)
end
return TRUE
end
end
Editado Setembro 21 por KennyxD
info
Grupo: Herói
Registrado: 14/12/10
Posts: 3.6k
Reputação: +846
Gênero: Masculino

Este script, o player passa se for premium rs. Não entendi essa parada da storage 15001.
info
Grupo: Artesão
Registrado: 21/05/13
Posts: 110
Reputação: +3

Vlw galera, mas creio q mudar o numero da storage n vai mudar nada, alguem me da uma solução provisoria, um tile q só passa com a storage 666 (sem a parada de premmy) pq antigamente eu usava essa storage pra vip tbm...
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

é pq vc está usando os.time() rsrsrs
function onStepIn(cid, item, position, fromPosition) local storage = 666 if getPlayerStorageValue(cid, storage) - os.time() <= 0 or not isPremium(cid) then doPlayerSendCancel(cid, 'n pode passa.') doTeleportThing(cid, fromPosition, true) return true end return true end
Editado Setembro 21 por Vodkart
info
Grupo: Artesão
Registrado: 21/05/13
Posts: 110
Reputação: +3

é pq vc está usando os.time() rsrsrs
function onStepIn(cid, item, position, fromPosition) local storage = 666 if getPlayerStorageValue(cid, storage) - os.time() <= 0 or not isPremium(cid) then doPlayerSendCancel(cid, 'n pode passa.') doTeleportThing(cid, fromPosition, true) return true end return true end
Nada n funcionoou :\
Se n conseguir tem como botar só pra storage?
info
Grupo: Visconde
Registrado: 21/08/11
Posts: 470
Reputação: +5
Char no Tibia: ...

é pq vc está usando os.time() rsrsrs
function onStepIn(cid, item, position, fromPosition) local storage = 666 if getPlayerStorageValue(cid, storage) - os.time() <= 0 or not isPremium(cid) then doPlayerSendCancel(cid, 'n pode passa.') doTeleportThing(cid, fromPosition, true) return true end return true end
Nada n funcionoou :\
Se n conseguir tem como botar só pra storage?
+ esse é so por storagem mano faz assim
vai em movements.xml
adicione essa tag
<movevent type="StepIn" actionid="666" event="script" value="tilestorage.lua"/>
function onStepIn(cid, item, position, fromPosition) local storage = 666 if getPlayerStorageValue(cid, storage) <= 0 or not isPremium(cid) then doPlayerSendTextMessage(cid,16, "Você não tem permissão.") doTeleportThing(cid, fromPosition, true) return true end return true end
e depois vai no remere map editor e coloca no piso a action 666.
Editado Setembro 21 por KennyxD
info
Grupo: Artesão
Registrado: 21/05/13
Posts: 110
Reputação: +3

é pq vc está usando os.time() rsrsrs
function onStepIn(cid, item, position, fromPosition) local storage = 666 if getPlayerStorageValue(cid, storage) - os.time() <= 0 or not isPremium(cid) then doPlayerSendCancel(cid, 'n pode passa.') doTeleportThing(cid, fromPosition, true) return true end return true end
Nada n funcionoou :\
Se n conseguir tem como botar só pra storage?
+ esse é so por storagem mano faz assim
vai em movements.xml
adicione essa tag
<movevent type="StepIn" actionid="666" event="script" value="tilestorage.lua"/>function onStepIn(cid, item, position, fromPosition) local storage = 666 if getPlayerStorageValue(cid, storage) <= 0 or not isPremium(cid) then doPlayerSendTextMessage(cid,16, "Você não tem permissão.") doTeleportThing(cid, fromPosition, true) return true end return true ende depois vai no remere map editor e coloca no piso a action 666.
2° vez q vc me manda o msm script q o vodkart mandou cara ;s
info
Grupo: Visconde
Registrado: 21/08/11
Posts: 470
Reputação: +5
Char no Tibia: ...

é pq vc está usando os.time() rsrsrs
function onStepIn(cid, item, position, fromPosition) local storage = 666 if getPlayerStorageValue(cid, storage) - os.time() <= 0 or not isPremium(cid) then doPlayerSendCancel(cid, 'n pode passa.') doTeleportThing(cid, fromPosition, true) return true end return true end
Nada n funcionoou :\
Se n conseguir tem como botar só pra storage?
+ esse é so por storagem mano faz assim
vai em movements.xml
adicione essa tag
<movevent type="StepIn" actionid="666" event="script" value="tilestorage.lua"/>function onStepIn(cid, item, position, fromPosition) local storage = 666 if getPlayerStorageValue(cid, storage) <= 0 or not isPremium(cid) then doPlayerSendTextMessage(cid,16, "Você não tem permissão.") doTeleportThing(cid, fromPosition, true) return true end return true ende depois vai no remere map editor e coloca no piso a action 666.
2° vez q vc me manda o msm script q o vodkart mandou cara ;s
+ você testo ?????? porque o vodkart também acabo de postar o mesmo script e você não diz se deu erro nen nada, eu uso esse script no meu ot como tile storage, e ele so deixa o player passar se ele tive storage to achando que você não tá sabendo instalar os scripts ai.
info
Grupo: Artesão
Registrado: 21/05/13
Posts: 110
Reputação: +3

é pq vc está usando os.time() rsrsrs
function onStepIn(cid, item, position, fromPosition) local storage = 666 if getPlayerStorageValue(cid, storage) - os.time() <= 0 or not isPremium(cid) then doPlayerSendCancel(cid, 'n pode passa.') doTeleportThing(cid, fromPosition, true) return true end return true end
Nada n funcionoou :\
Se n conseguir tem como botar só pra storage?
+ esse é so por storagem mano faz assim
vai em movements.xml
adicione essa tag
<movevent type="StepIn" actionid="666" event="script" value="tilestorage.lua"/>function onStepIn(cid, item, position, fromPosition) local storage = 666 if getPlayerStorageValue(cid, storage) <= 0 or not isPremium(cid) then doPlayerSendTextMessage(cid,16, "Você não tem permissão.") doTeleportThing(cid, fromPosition, true) return true end return true ende depois vai no remere map editor e coloca no piso a action 666.
2° vez q vc me manda o msm script q o vodkart mandou cara ;s
+ você testo ?????? porque o vodkart também acabo de postar o mesmo script e você não diz se deu erro nen nada, eu uso esse script no meu ot como tile storage, e ele so deixa o player passar se ele tive storage to achando que você não tá sabendo instalar os scripts ai.
Vc se quer tá lendo as postagens dos outros membros? O vodkart me falou que o meu n tava indo por causa da função timer, mas msm ele mudando não está indo, não teria como funcionar o meu q é on timer com o seu que é só storage, agora eu n sei pq n ta pegando




info
Grupo: Artesão
Registrado: 21/05/13
Posts: 110
Reputação: +3
A galera tava me ajudando, mas o beeki deu como sanada a duvida sendo q n tava sanda
http://www.xtibia.com/forum/topic/221294-so-passar-pelo-tile-se-tiver-storage/
Eu queria saber pq n ta funcionando! Eu compro a storage, mas msm assim n passa! Oq ta havendo? Se n tiver jeito msm alguem me passa um que só precisa ter a storage n precisa ter premmy pra passar
Ou será q meu bug é no meu buystorage?