[Quest] Item error

09/22/2012 11:02 zunmt2#1
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

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_HP1015*60)
                    
affect.add_collect(apply.STEAL_SP1015*60)
                    
affect.add_collect(apply.EXP_DOUBLE_BONUS5015*60)
                    
affect.add_collect(apply.ATT_GRADE_BONUS3015*60)
                    
affect.add_collect(apply.ATT_SPEED2015*60)
                    
affect.add_collect(apply.CAST_SPEED1015*60)
                    
pc.setqf("olimpico1"1)
                elseif 
pc.getqf("olimpico1") > time then
                    affect
.remove_collect(apply.STEAL_HP1015*60)
                    
affect.remove_collect(apply.STEAL_SP1015*60)
                    
affect.remove_collect(apply.EXP_DOUBLE_BONUS5015*60)
                    
affect.remove_collect(apply.ATT_GRADE_BONUS3015*60)
                    
affect.remove_collect(apply.ATT_SPEED2015*60)
                    
affect.remove_collect(apply.CAST_SPEED1015*60)
                    
pc.setqf("olimpico1"0)
                
end
            end
            when logout 
or login with pc.getqf("olimpico1") == 1 begin
            affect
.remove_collect(apply.STEAL_HP1015*60)
            
affect.remove_collect(apply.STEAL_SP1015*60)
            
affect.remove_collect(apply.EXP_DOUBLE_BONUS5015*60)
            
affect.remove_collect(apply.ATT_GRADE_BONUS3015*60)
            
affect.remove_collect(apply.ATT_SPEED2015*60)
            
affect.remove_collect(apply.CAST_SPEED1015*60)
            
pc.setqf("olimpico1"0)
        
end
    end
end 
[Only registered and activated users can see links. Click Here To Register...]

I need some help please :confused:
09/22/2012 19:06 .Seriously#2
PHP Code:
quest olimpico1 begin
    state start begin
        when 71158.
use begin
            cmdchat
("buff7")
                
local time get_time()
                if 
pc.getqf("olimpico1") == 0 then
                    affect
.add_collect(apply.STEAL_HP1015*60)
                    
affect.add_collect(apply.STEAL_SP1015*60)
                    
affect.add_collect(apply.EXP_DOUBLE_BONUS5015*60)
                    
affect.add_collect(apply.ATT_GRADE_BONUS3015*60)
                    
affect.add_collect(apply.ATT_SPEED2015*60)
                    
affect.add_collect(apply.CAST_SPEED1015*60)
                    
pc.setqf("olimpico1"1)
                elseif 
pc.getqf("olimpico1") > time then
                    affect
.remove_collect(apply.STEAL_HP1015*60)
                    
affect.remove_collect(apply.STEAL_SP1015*60)
                    
affect.remove_collect(apply.EXP_DOUBLE_BONUS5015*60)
                    
affect.remove_collect(apply.ATT_GRADE_BONUS3015*60)
                    
affect.remove_collect(apply.ATT_SPEED2015*60)
                    
affect.remove_collect(apply.CAST_SPEED1015*60)
                    
pc.setqf("olimpico1"0)
                
end
            end
            when logout 
or login with pc.getqf("olimpico1") == 1 begin
            affect
.remove_collect(apply.STEAL_HP1015*60)
            
affect.remove_collect(apply.STEAL_SP1015*60)
            
affect.remove_collect(apply.EXP_DOUBLE_BONUS5015*60)
            
affect.remove_collect(apply.ATT_GRADE_BONUS3015*60)
            
affect.remove_collect(apply.ATT_SPEED2015*60)
            
affect.remove_collect(apply.CAST_SPEED1015*60)
            
pc.setqf("olimpico1"0)
        
end
    end
end 
09/22/2012 20:16 zunmt2#3
work but the effect dont remove! =/
01/17/2013 22:25 proestrela#4
quest olimpico1 begin
state start begin
when 71158.use begin
cmdchat("buff7")
local time = get_time()
if pc.getqf("olimpico1") == 0 then
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

Acho que assim já vai funcionar tenta
01/28/2013 18:21 sylwek080893#5
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
end
07/07/2019 20:13 pilisiqui#6
affect.remove_collect(apply.STEAL_HP, 10)
affect.remove_collect(apply.STEAL_SP, 10)
affect.remove_collect(apply.EXP_DOUBLE_BONUS, 50)
affect.remove_collect(apply.ATT_GRADE_BONUS, 30)
affect.remove_collect(apply.ATT_SPEED, 20)
affect.remove_collect(apply.CAST_SPEED, 10)

assim vai funcionar....