Hello elitepvpers
I have some problem with my quest!
I'm testing about the bonus
when i put the item give bonus
when i remove item remove bonus
[Only registered and activated users can see links. Click Here To Register...]
I need some help please :confused:
I have some problem with my quest!
I'm testing about the bonus
when i put the item give bonus
when i remove item remove bonus
PHP Code:
quest olimpico1 begin
state start begin
when 71158.use begin
cmdchat("buff7")
local time = get_time()
if pc.getqf("olimpico1") == 0 begin
affect.add_collect(apply.STEAL_HP, 10, 15*60)
affect.add_collect(apply.STEAL_SP, 10, 15*60)
affect.add_collect(apply.EXP_DOUBLE_BONUS, 50, 15*60)
affect.add_collect(apply.ATT_GRADE_BONUS, 30, 15*60)
affect.add_collect(apply.ATT_SPEED, 20, 15*60)
affect.add_collect(apply.CAST_SPEED, 10, 15*60)
pc.setqf("olimpico1", 1)
elseif pc.getqf("olimpico1") > time then
affect.remove_collect(apply.STEAL_HP, 10, 15*60)
affect.remove_collect(apply.STEAL_SP, 10, 15*60)
affect.remove_collect(apply.EXP_DOUBLE_BONUS, 50, 15*60)
affect.remove_collect(apply.ATT_GRADE_BONUS, 30, 15*60)
affect.remove_collect(apply.ATT_SPEED, 20, 15*60)
affect.remove_collect(apply.CAST_SPEED, 10, 15*60)
pc.setqf("olimpico1", 0)
end
end
when logout or login with pc.getqf("olimpico1") == 1 begin
affect.remove_collect(apply.STEAL_HP, 10, 15*60)
affect.remove_collect(apply.STEAL_SP, 10, 15*60)
affect.remove_collect(apply.EXP_DOUBLE_BONUS, 50, 15*60)
affect.remove_collect(apply.ATT_GRADE_BONUS, 30, 15*60)
affect.remove_collect(apply.ATT_SPEED, 20, 15*60)
affect.remove_collect(apply.CAST_SPEED, 10, 15*60)
pc.setqf("olimpico1", 0)
end
end
end
I need some help please :confused: