Jump to content

Recommended Posts

Posted
when 101.kill begin
game.drop_item(19, 1)
 
pc.setqf("perro", pc.getqf("perro") + 1)
if pc.getqf("perro") == 1 then
notice_all"Han matado 1 perro y quedan 9"
elseif pc.getqf("perro") == 2 then
notice_all"Han matado 2 perro y quedan 8"
elseif pc.getqf("perro") >= 3 then
notice_all"Han matado 3 perro y quedan 7"
elseif pc.getqf("perro") >= 3 then
notice_all"Han matado 4 perro y quedan 6"
elseif pc.getqf("perro") >= 3 then
notice_all"Han matado 5 perro y quedan 5"
elseif pc.getqf("perro") >= 3 then
notice_all"Han matado 6 perro y quedan 4"
elseif pc.getqf("perro") >= 3 then
notice_all"Han matado 7 perro y quedan 3"
elseif pc.getqf("perro") >= 3 then
notice_all"Han matado 8 perro y quedan 2"
elseif pc.getqf("perro") >= 3 then
notice_all"Han matado 9 perro y quedan 1"
elseif pc.getqf("perro") >= 3 then
notice_all"Han matado 10 perro y quedan 0"
pc.setqf("perro", 0)
Posted
when kill with npc.get_race() == 101 beginlocal n,over,calc = pc.getqf("perro"),10,0calc=over-nchat("Has matado "..n.." perros, te quedan "..calc.." perros.")if n > over thenpc.setqf("perro", 0)endend
No la e probado, probablemente este bien, han sido 2 min.

 

Te falta el pc.setqf("perro", calc)

Posted
when kill with npc.get_race() == 101 beginlocal n,over,calc = pc.getqf("perro"),10,0calc=over-nchat("Has matado "..n.." perros, te quedan "..calc.." perros.")if n > over thenpc.setqf("perro", 0)returnendpc.setqf("perro", calc)end

yo tengo una asi espero que te funcione:

when kill with npc.get_race() == 101 beginlocal count = pc.getqf("state") + 1chat("Has matado "..state.." perros, te quedan "..count.." perros.")if count <= 10 thenpc.setqf("state", count)q.set_counter("Matar perros feos:", 10 - count)endif count == 10 thenend

La modifiqué un poco, no sé si estará bien no soy tan pro como PACI ni pepineitor xD

Posted

Pruebala así xd

when kill with npc.get_race() == 101 beginlocal n,over,calc = pc.getqf("perro")+1,10,0calc=over-nchat("Has matado "..n.." perros, te quedan "..calc.." perros.")if n > over thenpc.setqf("perro", 0)returnendpc.setqf("perro", n)end
  • Dilong locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.