Hello please someone help.me please
:confused:
PHP Code:
quest medalha begin
state start begin
when 71158.use begin
if pc.getqf("medalha_use") == 0 then
chat("Medalha do Herói Ativada!")
pc.setqf("medalha_use", 1)
pc.setqf("medalha", 1)
cmdchat("buff7")
affect.add_collect(apply.ATT_GRADE_BONUS, 30,60*60*24*365*60)
affect.add_collect(apply.MAX_HP, 10,60*60*24*365*60)
affect.add_collect(apply.ATT_SPEED, 20,60*60*24*365*60)
affect.add_collect(apply.CAST_SPEED, 20,60*60*24*365*60)
affect.add_collect(apply.EXP_DOUBLE_BONUS, 50,60*60*24*365*60)
affect.add_collect(apply.MAX_SP, 10,60*60*24*365*60)
else
chat("Medalha do Herói Desativada!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 30,60*60*24*365*60)
affect.remove_collect(apply.MAX_HP, 10,60*60*24*365*60)
affect.remove_collect(apply.ATT_SPEED, 20,60*60*24*365*60)
affect.remove_collect(apply.CAST_SPEED, 20,60*60*24*365*60)
affect.remove_collect(apply.EXP_DOUBLE_BONUS, 50,60*60*24*365*60)
affect.remove_collect(apply.MAX_SP, 10,60*60*24*365*60)
pc.setqf("medalha_use", 0)
pc.setqf("medalha", 0)
end
end
when logout or login with pc.getqf("medalha_use") == 1 begin
pc.setqf("medalha_use", 0)
pc.setqf("medalha", 0)
chat("Medalha do Herói Desativada!")
affect.remove_collect(apply.ATT_GRADE_BONUS, 100, 60*60*8)
affect.remove_collect(apply.MAX_HP, 1000, 60*60*8)
affect.remove_collect(apply.ATT_SPEED, 20,60*60*24*365*60)
affect.remove_collect(apply.CAST_SPEED, 20,60*60*24*365*60)
affect.remove_collect(apply.EXP_DOUBLE_BONUS, 50,60*60*24*365*60)
affect.remove_collect(apply.MAX_SP, 10,60*60*24*365*60)
end
end
end