anime107 2 Posted June 13, 2016 Boa tarde a quest que quero upar fica aparecendo (Core Dumped) quest Level_Up begin state start begin when levelup begin if pc.get_level() == 10 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 10. Parabéns!" ) end if pc.get_level() == 20 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 20. Parabéns!" ) end if pc.get_level() == 30 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 30. Parabéns!" ) end if pc.get_level() == 40 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 40. Parabéns!" ) end if pc.get_level() == 50 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 50. Parabéns!" ) end if pc.get_level() == 60 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 60. Parabéns!" ) end if pc.get_level() == 70 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 70. Parabéns!" ) pc.give_item2(71153) end if pc.get_level() == 80 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 80. Parabéns!" ) pc.give_item2(71153) end if pc.get_level() == 90 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 90. Parabéns!" ) pc.give_item2(71153) end if pc.get_level() == 99 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 99. Será que estamos prestes a ver alguém se tornar um grande mito?" ) pc.give_item2(71153) end if pc.get_level() == 100 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 100. Será que estamos prestes a ver alguém se tornar um grande mito?" ) pc.give_item2(80008) end if pc.get_level() == 101 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 101. Será que estamos prestes a ver alguém se tornar um grande mito?" ) pc.give_item2(80008) end if pc.get_level() == 102 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 102. Será que estamos prestes a ver alguém se tornar um grande mito?" ) pc.give_item2(80008) end if pc.get_level() == 103 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 103. Será que estamos prestes a ver alguém se tornar um grande mito?" ) pc.give_item2(80008) end if pc.get_level() == 104 then notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 104. Será que estamos prestes a ver alguém se tornar um grande mito?" ) pc.give_item2(80008) end if pc.get_level() == 105 then notice_all ( "[Anúncio]: Os desafios foram vencidos e " .. pc . name .. " alcançou o nível 105! Parabéns!" ) pc.give_item2(80008) end end end end Poderiam me ajudar ? Share this post Link to post Share on other sites
0 NewWars 875 Posted June 13, 2016 Reformulei e corrigi a quest, não testei mas não deve estar nada errado. Já agora, não adicionei as falas. http://pastebin.com/Ats5qd0y Cumprimentos. 1 anime107 reacted to this Share this post Link to post Share on other sites
0 Mago_pt 27 Posted June 13, 2016 usa o levelup com o with inves de fazer levelup com if Share this post Link to post Share on other sites
0 anime107 2 Posted June 13, 2016 Obrigado funcionou Share this post Link to post Share on other sites
Boa tarde
a quest que quero upar fica aparecendo (Core Dumped)
quest Level_Up begin
state start begin
when levelup begin
if pc.get_level() == 10 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 10. Parabéns!" )
end
if pc.get_level() == 20 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 20. Parabéns!" )
end
if pc.get_level() == 30 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 30. Parabéns!" )
end
if pc.get_level() == 40 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 40. Parabéns!" )
end
if pc.get_level() == 50 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 50. Parabéns!" )
end
if pc.get_level() == 60 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 60. Parabéns!" )
end
if pc.get_level() == 70 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 70. Parabéns!" )
pc.give_item2(71153)
end
if pc.get_level() == 80 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 80. Parabéns!" )
pc.give_item2(71153)
end
if pc.get_level() == 90 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 90. Parabéns!" )
pc.give_item2(71153)
end
if pc.get_level() == 99 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 99. Será que estamos prestes a ver alguém se tornar um grande mito?" )
pc.give_item2(71153)
end
if pc.get_level() == 100 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 100. Será que estamos prestes a ver alguém se tornar um grande mito?" )
pc.give_item2(80008)
end
if pc.get_level() == 101 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 101. Será que estamos prestes a ver alguém se tornar um grande mito?" )
pc.give_item2(80008)
end
if pc.get_level() == 102 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 102. Será que estamos prestes a ver alguém se tornar um grande mito?" )
pc.give_item2(80008)
end
if pc.get_level() == 103 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 103. Será que estamos prestes a ver alguém se tornar um grande mito?" )
pc.give_item2(80008)
end
if pc.get_level() == 104 then
notice_all ( "[Anúncio]: " .. pc . name .. " alcançou o nível 104. Será que estamos prestes a ver alguém se tornar um grande mito?" )
pc.give_item2(80008)
end
if pc.get_level() == 105 then
notice_all ( "[Anúncio]: Os desafios foram vencidos e " .. pc . name .. " alcançou o nível 105! Parabéns!" )
pc.give_item2(80008)
end
end
end
end
Poderiam me ajudar ?
Share this post
Link to post
Share on other sites