quest evento beginstate start beginwhen 20070.chat."Evento de Minerar Olympus Games" begin -- pones la id del npcsay_title("Evento de Minerar Olympus Games")say("")say("Olá "..pc.get_name().." Se você me trouxer 500 minérios")say("de qualquer um, lhe darei um item.")say("")say("Tem algum para mim?")say("")local eleg = select ("Sim","Não")if eleg == 1 thensay_title("Evento de Minerar Olympus Games")say("Que minério tem para mim?")local min = select ("Diamante" , "Ambar" , "Fóssil" , "Cobre" , "Prata" , "Ouro" . "Jade" , "Ébano","Pérola","Platina","Cristal","Ametista", "Safira", "Sair") -- ponle el nombre de cada unoif min == 1 thenif pc.count_item(50601) < 500 then -- pones la id del mineralchat("Desculpe, você não tem minério suficiente. 500")returnendpc.remove_item(50601, 500) -- pones la id del mineralpc.give_item2(50113, 1) -- pones la id del premio y la 1elseif min == 2 thenif pc.count_item(50602) < 500 then -- pones la id del mineralchat("Desculpe, você não tem minério suficiente. 500")returnendpc.remove_item(50602, 500) -- pones la id del mineralpc.give_item2(50113, 1) -- pones la id del premio y la 1elseif min == 3 thenif pc.count_item(50603) < 500 then -- pones la id del mineralchat("Desculpe, você não tem minério suficiente. 500")returnendpc.remove_item(50603, 500) -- pones la id del mineralpc.give_item2(50113, 1) -- pones la id del premio y la 1elseif min == 4 thenif pc.count_item(50604) < 500 then -- pones la id del mineralchat("Desculpe, você não tem minério suficiente. 500")returnendpc.remove_item(50604, 500) -- pones la id del mineralpc.give_item2(50113, 1) -- pones la id del premio y la 1elseif min == 5 thenif pc.count_item(50605) < 500 then -- pones la id del mineralchat("Desculpe, você não tem minério suficiente. 500")returnendpc.remove_item(50605, 500) -- pones la id del mineralpc.give_item2(50113, 1) -- pones la id del premio y la 1elseif min == 6 thenif pc.count_item(50606) < 500 then -- pones la id del mineralchat("Desculpe, você não tem minério suficiente. 500")returnendpc.remove_item(50606, 500) -- pones la id del mineralpc.give_item2(50113, 1) -- pones la id del premio y la 1elseif min == 7 thenif pc.count_item(50607) < 500 then -- pones la id del mineralchat("Desculpe, você não tem minério suficiente. 500")returnendpc.remove_item(50607, 500) -- pones la id del mineralpc.give_item2(50113, 1) -- pones la id del premio y la 1elseif min == 8 thenif pc.count_item(50608) < 500 then -- pones la id del mineralchat("Desculpe, você não tem minério suficiente. 500")returnendpc.remove_item(50608, 500) -- pones la id del mineralpc.give_item2(50113, 1) -- pones la id del premio y la 1elseif min == 9 thenif pc.count_item(50609) < 500 then -- pones la id del mineralchat("Desculpe, você não tem minério suficiente. 500")returnendpc.remove_item(50609, 500) -- pones la id del mineralpc.give_item2(50113, 1) -- pones la id del premio y la 1elseif min == 10 thenif pc.count_item(50610) < 500 then -- pones la id del mineralchat("Desculpe, você não tem minério suficiente. 500")returnendpc.remove_item(50610, 500) -- pones la id del mineralpc.give_item2(50113, 1) -- pones la id del premio y la 1elseif min == 11 thenif pc.count_item(50611) < 500 then -- pones la id del mineralchat("Desculpe, você não tem minério suficiente. 500")returnendpc.remove_item(50611, 500) -- pones la id del mineralpc.give_item2(50113, 1) -- pones la id del premio y la 1elseif min == 12 thenif pc.count_item(50612) < 500 then -- pones la id del mineralchat("Desculpe, você não tem minério suficiente. 500")returnendpc.remove_item(50612, 500) -- pones la id del mineralpc.give_item2(50113, 1) -- pones la id del premio y la 1elseif min == 13 thenif pc.count_item(50613) < 500 then -- pones la id del mineralchat("Desculpe, você não tem minério suficiente. 500")returnendpc.remove_item(50613, 500) -- pones la id del mineralpc.give_item2(50113, 1) -- pones la id del premio y la 1endendendendend
aparece esse erro: syntax error : [string "start"]:12: `)' expected near `.'
quando dou qc nessa quest:
aparece esse erro: syntax error : [string "start"]:12: `)' expected near `.'
Share this post
Link to post
Share on other sites