[HELP] New mount atack quest

04/02/2012 09:23 genco15#1
hi epvp
i find atack quest but i want player move down to mount atacks removed i dont want wait 300 second help me
sory my english bad:)

PHP Code:
quest boar begin
    state start begin
        when 71114.
use begin
            
if pc.get_level() >= 70 then
                local time 
get_time()
                if 
pc.getqf("domuz") <= time then
                    pc
.mount(2011060*5)
                    
affect.add_collect(apply.ATT_GRADE_BONUS,120,300)
                    
affect.add_collect(apply.DEF_GRADE_BONUS,116,300)
                    
chat("5 Dakikalığına Domuza Bineceksin.")
                    
pc.setqf("domuz"get_time()+60*5)
                elseif 
pc.getqf("domuz") > time then
                    local remaining 
pc.getqf("domuz") - get_time()
                    
pc.unmount()
                    
affect.remove_collect(apply.ATT_GRADE_BONUS,120,300)
                    
affect.remove_collect(apply.DEF_GRADE_BONUS,116,300)
                    
pc.setqf("domuz"get_time()-remaining)
                
end
            
else
                
chat("Seviyen Domuza Binmek İçin Yeterli Değil!")
            
end
        end
        
--[[when logout with pc.getqf("domuz") > get_time() begin
            pc
.unmount()
            
affect.remove_collect(apply.ATT_GRADE_BONUS,120,1)
            
affect.remove_collect(apply.DEF_GRADE_BONUS,116,1)
            
local remaining pc.getqf("domuz") - get_time()
            
pc.setqf("domuz"get_time()-remaining)
        
end]]
    
end
end 
i found this quest but
How do I add descend to mount deletion the atacks
04/11/2012 10:46 ras_jack#2
Use pc.mount_bonus, no affect.remove_collect, something like this:

pc.mount_bonus(apply.ATT_GRADE_BONUS, 200, 5*60)

on this example, when u are mounting x mob (boar, lion....etc.), yo have 200 of attack bonus, by 5 minutes. When u unount, the bonus disappears.

Now i'm testing the value of the attack (200), i dont know if it means % or attack points.

Try it, my frien, sorry for my bad english, i'm from México.

Ciao.
04/11/2012 11:36 -Joshua-#3
Just use this ;
Quote:
affect.add(53, 150, 1000)
53 = Bonus ID
150 = % of Bonus
1000 = Time in seconds

Joshi
04/11/2012 14:30 Lеlouch#4
Your Quest is in turkish wroten. I think you are a turk
PN me and I want to help you, i'am a turk too.
04/15/2012 17:08 genco15#5
Thank you but my questlib.lua old and (pc.mount_bonus dont added ) pls
upload questlib.lua pc.mount_bonus added