Postado Dezembro 28, 2015 9 anos Olá galera, uso um script e quero adiciona um tempo nele para ele usar uma ação. function onUse(cid, item, frompos, item2, topos) local go = "Rat" if getPlayerLevel(cid) >= 11 and getPlayerLevel(cid) <= 20 then go = "Monk" elseif getPlayerLevel(cid) >= 21 and getPlayerLevel(cid) <= 30 then go = "Dragon" elseif getPlayerLevel(cid) >= 31 and getPlayerLevel(cid) <= 40 then go = "Dragon Lord" end end local summon = getCreatureSummons(cid) --------------------------------------------------- if #summon >= 1 then for _, pid in ipairs(summon) do doRemoveCreature(pid) doCreatureSay(cid, "Can go rest ["..go.."]", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) doPlayerAddItem(cid, 1978, 1) doPlayerAddItem(cid, 1979, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You used the sacred book of the Necromancers , now wait 30 minutes to use again!.") end return true end doConvinceCreature(cid, doSummonCreature(go, getCreaturePosition(cid))) doCreatureSay(cid, "Let battle ["..go.."]", TALKTYPE_ORANGE_1) return true end Quero adicionar um tempo ali entre doPlayerAddItem(cid, 1978, 1) e doPlayerAddItem(cid, 1979, 1). Ele realiza a função doPlayerAddItem(cid, 1978, 1) e depois de 10 segundos realizara a doPlayerAddItem(cid, 1979, 1), podem me ajudar ? Obrigado
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.