Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. quest mounty4 begin
  2. state start begin
  3. when 71152.use  begin
  4. say_title("Menu:")
  5. local x = select("Tak", "Nie")
  6. if x==1 then
  7. if pc.getqf("next_time_use") > get_time() then
  8. local iRest = pc.getqf("next_time_use")-get_time()
  9. syschat("By użyć kolejnej pieczęci poczekaj "..iRest.." Sekund!")
  10. else
  11. local iTime = 1 -- Czas wierzchowca w Minutach!
  12. local iMount = 20120 -- Id Wierzchowca
  13. command("unmount")
  14. affect.add_collect_point(POINT_MOUNT,iMount,60*iTime)
  15. pc.setqf("next_time_use",get_time()+iTime*60)
  16. affect.add(apply.DEF_GRADE_BONUS,100, iTime*60)
  17. timer('iTime',iTime*60)
  18. end
  19. end
  20. if x==2 then
  21. pc.unmount
  22. end
  23. when iTime.timer begin
  24. pc.unmount()
  25. end
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement