Advertisement
Guest User

Untitled

a guest
Mar 13th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. quest buff begin
  2. state start begin
  3. when login with pc.get_map_index()== 41 and pc.getqf("primerbuff")== 0 begin
  4. pc.setqf("primerbuff",1)
  5. affect.add_collect(apply.bonus, cantidad, 60*60*1) -- En conjunto con el tiempo de aparicion del mob
  6. end
  7. when idmob.kill with pc.get_map_index()== 41 begin
  8. server_timer("checkbuff", 60*60*1) -- En conjunto con el tiempo de aparicion del mob
  9. game.set_event_flag("segundobuff",0)
  10. end
  11. when checkbuff.server_timer begin
  12. game.set_event_flag("segundobuff",1)
  13. end
  14. when login begin
  15. loop_timer("tercerbuff",5)
  16. end
  17. when tercerbuff.timer begin
  18. if game.get_event_flag("segundobuff")== 1 and pc.getqf("primerbuff")== 1 then
  19.     affect.remove_collect(apply.bonus, cantidad, 60*60*1)
  20.     pc.setqf("primerbuff",0)
  21.     cleartimer("tercerbuff")
  22. end
  23. end
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement