Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 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.                 affect.add_collect_point(POINT_MOUNT,iMount,60*iTime)
  14.                 pc.setqf("next_time_use",get_time()+iTime*60)
  15.                 affect.add(apply.DEF_GRADE_BONUS,100, iTime*60)
  16.                 timer('iTime',iTime*60)            
  17.                 end
  18.             end
  19.             if x==2 then
  20.                 pc.unmount
  21.             end
  22.             when iTime.timer begin
  23.             pc.unmount()
  24.         end
  25.     end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement