Postado Agosto 27, 2019 5 anos Galera to querendo colocar um delay nesse script aki de 4 segundos alguém Spoiler --Action by Rogui-- function onUse(cid, item, frompos, item2, topos) if item.itemid == 1356 or 1357 or 1358 or 1359 then chaopos = {x=topos.x, y=topos.y, z=topos.z} msg = "Parabéns, você conseguiu minerar!" msg2 = "Você não conseguio minerar!" rand = math.random(1,30) if rand == 1 then doPlayerAddItem(cid,14030,1) doSendMagicEffect(topos,12) doPlayerSendTextMessage(cid, 22, msg) elseif rand == 2 then doPlayerAddItem(cid,14030,1) doSendMagicEffect(topos,12) doPlayerSendTextMessage(cid, 22, msg) elseif rand == 3 then doPlayerAddItem(cid,14030,1) doSendMagicEffect(topos,12) doPlayerSendTextMessage(cid, 22, msg) elseif rand == 4 then doPlayerAddItem(cid,14030,1) doSendMagicEffect(topos,12) doPlayerSendTextMessage(cid, 22, msg) elseif rand == 5 then doPlayerAddItem(cid,14030,1) doSendMagicEffect(topos,12) doPlayerSendTextMessage(cid, 22, msg) elseif rand == 6 then doPlayerAddItem(cid,14030,1) doSendMagicEffect(topos,12) doPlayerSendTextMessage(cid, 22, msg) elseif rand == 7 then doPlayerAddItem(cid,2159,1) doSendMagicEffect(topos,12) doPlayerSendTextMessage(cid, 22, msg) elseif rand == 8 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 22, msg2) elseif rand == 9 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 10 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 11 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 12 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 13 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 14 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 15 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 16 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 17 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 18 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 19 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 20 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 21 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 22 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 23 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 24 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 25 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 26 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 27 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 28 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 29 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) elseif rand == 30 then doSendMagicEffect(topos,2) doPlayerSendTextMessage(cid, 2, msg2) end end return 1 end pode ajudar? REP ++
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.