Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest buff begin
- state start begin
- when login with pc.get_map_index()== 41 and pc.getqf("primerbuff")== 0 begin
- pc.setqf("primerbuff",1)
- affect.add_collect(apply.bonus, cantidad, 60*60*1) -- En conjunto con el tiempo de aparicion del mob
- end
- when idmob.kill with pc.get_map_index()== 41 begin
- server_timer("checkbuff", 60*60*1) -- En conjunto con el tiempo de aparicion del mob
- game.set_event_flag("segundobuff",0)
- end
- when checkbuff.server_timer begin
- game.set_event_flag("segundobuff",1)
- end
- when login begin
- loop_timer("tercerbuff",5)
- end
- when tercerbuff.timer begin
- if game.get_event_flag("segundobuff")== 1 and pc.getqf("primerbuff")== 1 then
- affect.remove_collect(apply.bonus, cantidad, 60*60*1)
- pc.setqf("primerbuff",0)
- cleartimer("tercerbuff")
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement