Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest medal_konny begin
- state start begin
- when 50050.use begin
- if pc.getqf("czas_uzycia") <= get_time() then
- if horse.get_level() >= 11 then
- chat("Potrzebujesz lepszego medalu konia!")
- return
- end
- if horse.get_level() <= 11 then
- local losowanie1 = math.random(2)
- if losowanie1 == 1 then
- horse.set_level(horse.get_level() + 1)
- chat("Szkolenie pomyślne")
- pc.setqf("czas_uzycia", get_time()+ 60*30)
- item.remove()
- else
- chat("Szkolenie niepomyślne")
- item.remove()
- end
- end
- else
- chat("Nie mineło 30 minut od ostatniego użycia.")
- end
- end
- ------------------------------------------------------------------------------------
- when 6004.use begin
- if pc.getqf("czas_uzycia") <= get_time() then
- if horse.get_level() >= 21 then
- chat("Potrzebujesz lepszego medalu konia!")
- return
- end
- if horse.get_level() <= 21 then
- local losowanie1 = math.random(2)
- if losowanie1 == 1 then
- horse.set_level(horse.get_level() + 1)
- chat("Szkolenie pomyślne")
- pc.setqf("czas_uzycia", get_time()+ 60*30)
- item.remove()
- else
- chat("Szkolenie niepomyślne ")
- item.remove()
- end
- end
- else
- chat("Nie mineło 30 minut od ostatniego użycia.")
- end
- end
- -----------------------------------------------------------------------------------
- when 6005.use begin
- if pc.getqf("czas_uzycia") <= get_time() then
- if horse.get_level() >= 30 then
- chat("Potrzebujesz lepszego medalu konia!")
- return
- end
- if horse.get_level() <= 30 then
- local losowanie1 = math.random(2)
- if losowanie1 == 1 then
- horse.set_level(horse.get_level() + 1)
- chat("Szkolenie pomyślne")
- pc.setqf("czas_uzycia", get_time()+ 60*30)
- item.remove()
- else
- chat("Szkolenie niepomyślne")
- item.remove()
- end
- end
- else
- chat("Nie mineło 30 minut od ostatniego użycia.")
- end
- end
- ---------------------------------------------------------------------------------
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment