Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest auto_pota begin
- state start begin
- when 70303.use begin
- local czas = 5 -- sekund
- if pc.getqf("auto_pota") == 0 then
- pc.setqf("auto_pota", 1)
- chat("leczenie aktywne.")
- loop_timer("auto_pota", czas)
- else
- pc.setqf("auto_pota", 0)
- chat("leczenie nieaktywne.")
- cleartimer("auto_pota")
- end
- end
- when auto_pota.timer begin
- if pc.is_dead() then
- cleartimer("auto_pota")
- pc.setqf("auto_pota", 0)
- chat("leczenie nieaktywne.")
- else
- chat("leczenie aktywne.")
- end
- end
- when logout with pc.getqf("auto_pota") != 0 begin
- pc.setqf("auto_pota", 0)
- cleartimer("auto_pota")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment