Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest nieb_smierc begin
- state start begin
- when login with pc.get_map_index() == ID_mapy_z_index begin
- chat("Witaj na mapie niebieskiej śmierci.")
- ---------------USTAWIENIA----------------
- local moob_id = ID mooba
- local ilosc_m = 1
- local kord_x = kord x spawnu
- local kord_y = kord y spawnu
- -----------------------------------------
- if pc.getqf("spawn") == 0 then
- pc.setqf("spawn", 1)
- mob.spawn(moob_id, kord_x, kord_y, 0, 0, ilosc_m)
- else
- if pc.getqf("czas") <= get_time() then
- mob.spawn(moob_id, kord_x, kord_y, 0, 0, ilosc_m)
- else
- local roznica = pc.getqf("czas") - get_time()
- local podziel = roznica/60
- local minuty = math.floor(podziel)
- chat("Boss pojawi się za "..minuty.." min.")
- end
- end
- end
- when ID.kill with pc.get_map_index() == ID_mapy_z_index begin
- pc.setqf("czas", get_time()+60*30*1)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement