Guest User

Untitled

a guest
Nov 26th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. quest auto_pota begin
  2. state start begin
  3. when 70303.use begin
  4. local czas = 5 -- sekund
  5. if pc.getqf("auto_pota") == 0 then
  6. pc.setqf("auto_pota", 1)
  7. chat("leczenie aktywne.")
  8. loop_timer("auto_pota", czas)
  9. else
  10. pc.setqf("auto_pota", 0)
  11. chat("leczenie nieaktywne.")
  12. cleartimer("auto_pota")
  13. end
  14. end
  15.  
  16. when auto_pota.timer begin
  17. if pc.is_dead() then
  18. cleartimer("auto_pota")
  19. pc.setqf("auto_pota", 0)
  20. chat("leczenie nieaktywne.")
  21. else
  22. chat("leczenie aktywne.")
  23. end
  24. end
  25.  
  26. when logout with pc.getqf("auto_pota") != 0 begin
  27. pc.setqf("auto_pota", 0)
  28. cleartimer("auto_pota")
  29. end
  30. end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment