Sarck3Imperios Posted October 29, 2013 Report Share Posted October 29, 2013 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 Link to comment Share on other sites More sharing options...
Dextrok Posted October 29, 2013 Report Share Posted October 29, 2013 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. Link to comment Share on other sites More sharing options...
Sarck3Imperios Posted October 29, 2013 Author Report Share Posted October 29, 2013 asi se usara el items hasta que el efecto de los bonus se valla? Link to comment Share on other sites More sharing options...
Dextrok Posted October 29, 2013 Report Share Posted October 29, 2013 Si pero como dijiste arriba se va a los 10 minutos el efecto de cada bono. Link to comment Share on other sites More sharing options...
Recommended Posts