Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. quest nieb_smierc begin
  2. state start begin
  3. when login with pc.get_map_index() == ID_mapy_z_index begin
  4. chat("Witaj na mapie niebieskiej śmierci.")
  5.  
  6. ---------------USTAWIENIA----------------
  7. local moob_id = ID mooba
  8. local ilosc_m = 1
  9. local kord_x = kord x spawnu
  10. local kord_y = kord y spawnu
  11. -----------------------------------------
  12.  
  13. if pc.getqf("spawn") == 0 then
  14. pc.setqf("spawn", 1)
  15. mob.spawn(moob_id, kord_x, kord_y, 0, 0, ilosc_m)
  16. else
  17. if pc.getqf("czas") <= get_time() then
  18. mob.spawn(moob_id, kord_x, kord_y, 0, 0, ilosc_m)
  19. else
  20. local roznica = pc.getqf("czas") - get_time()
  21. local podziel = roznica/60
  22. local minuty = math.floor(podziel)
  23. chat("Boss pojawi się za "..minuty.." min.")
  24. end
  25. end
  26. end
  27. when ID.kill with pc.get_map_index() == ID_mapy_z_index begin
  28. pc.setqf("czas", get_time()+60*30*1)
  29. end
  30. end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement