Galera ja agradeço todos quem me ajudarem vamo direto ao assunto minha duvida é o seguinte,
eu tenho um script que quando eu puxo a alavanca sai as grades, eu queria que 1 hora depois as grades volta-rem tem como?
[Action]
Script:
function onUse(cid, item, pos)
pausa = 1000 --
-- posição das paredes - nao mexer na stackpos.
wall0pos = {x=33213, y=32247, z=7, stackpos=1}
wall1pos = {x=33214, y=32247, z=7, stackpos=1}
wall2pos = {x=33215, y=32247, z=7, stackpos=1}
wall3pos = {x=33216, y=32247, z=7, stackpos=1}
wall4pos = {x=33219, y=32247, z=7, stackpos=1}
wall5pos = {x=33220, y=32247, z=7, stackpos=1}
wall6pos = {x=33221, y=32247, z=7, stackpos=1}
wall7pos = {x=33222, y=32247, z=7, stackpos=1}
if item.itemid == 1945 then
doTransformItem(item.uid,1946)
wall0 = getThingfromPos(wall0pos)
if wall0.itemid ~= 0 then
doRemoveItem(wall0.uid,1)
addEvent(wait1,pausa,wall1pos)
end
else
doTransformItem(item.uid,1945)
end
return 1
end
function wait0(wall0pos)
coisa = getThingfromPos(wall0pos)
doRemoveItem(coisa.uid,1)
addEvent(wait1,pausa,wall1pos)
end
function wait1(wall1pos)
coisa = getThingfromPos(wall1pos)
doRemoveItem(coisa.uid,1)
addEvent(wait2,pausa,wall2pos)
end
function wait2(wall2pos)
coisa = getThingfromPos(wall2pos)
doRemoveItem(coisa.uid,1)
addEvent(wait3,pausa,wall3pos)
end
function wait3(wall3pos)
coisa = getThingfromPos(wall3pos)
doRemoveItem(coisa.uid,1)
addEvent(wait4,pausa,wall4pos)
end
function wait4(wall4pos)
coisa = getThingfromPos(wall4pos)
doRemoveItem(coisa.uid,1)
addEvent(wait5,pausa,wall5pos)
end
function wait5(wall5pos)
coisa = getThingfromPos(wall5pos)
doRemoveItem(coisa.uid,1)
addEvent(wait6,pausa,wall6pos)
end
function wait6(wall6pos)
coisa = getThingfromPos(wall6pos)
doRemoveItem(coisa.uid,1)
addEvent(wait7,pausa,wall7pos)
end
function wait7(wall7pos)
coisa = getThingfromPos(wall7pos)
doRemoveItem(coisa.uid,1)
-- se quizer mais paredes , é só continuar ponto addEvent
end



