Jump to content

Recommended Posts

Posted

necesito poner un items que solo se pueda usar maximo 2 veces 

 

que al usarlo mas de 2 veces diga lo siento ya no lo puedes usar por 10 minutos

 

when 715689.use begin
 affect.add_collect(apply.ATT_BONUS_TO_MONSTER,10,60*60*24*365*4)
                affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*30)
                affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*30)
                affect.add_collect(apply.MAX_HP, 1000, 60*30)
 
    end 
end
 
 
Posted
quest two_uses begin	state start begin		when 715689.use with pc.getqf("two_uses") < 2 begin			affect.add_collect(apply.ATT_BONUS_TO_MONSTER,10,60*10)			affect.add_collect(apply.ATT_GRADE_BONUS, 100, 60*10)			affect.add_collect(apply.DEF_GRADE_BONUS, 100, 60*10)			affect.add_collect(apply.MAX_HP, 1000, 60*10)						pc.setqf("two_uses", pc.getqf("two_uses")+1)		end 	endend

Aca esta, con eso solo se podrá usar por 10 minutos, les ajuste a todos los bonos un efecto de 10 minutos.

  • 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.